Quercus: Drupal
From Resin 3.0
Line 1: | Line 1: | ||
[[Category:Quercus]] | [[Category:Quercus]] | ||
− | + | ==Download Resin 3.1.1+== | |
+ | The newest Resin versions have several bug fixes for Drupal. | ||
− | == | + | ==Download Drupal== |
+ | Download [http://drupal.org/download Drupal] into $resin_home/webapps/ROOT/drupal. | ||
− | + | ==Download MySQL JDBC Driver== | |
+ | Download [http://www.mysql.com/products/connector/j/ MySQL Connector/J JDBC Driver] into $resin_home/lib. Any version is fine. | ||
− | + | ==Add resin-web.xml== | |
+ | Add the following resin-web.xml file to $resin_home/webapps/ROOT/drupal/WEB-INF. Customize email settings to allow the sending of emails from PHP. Anything not in <b>bold</b> is optional. | ||
− | + | The resin-web.xml needs to have the QuercusServlet mapped to *.php. Optionally, it can have a <[[database]]> as PHP's database. Quercus can automatically create database pools if you omit the <[[database]]> configuration, but it's better to configure it explicitly. | |
− | * | + | |
− | + | ||
− | + | <b><web-app xmlns="http://caucho.com/ns/resin"></b> | |
− | + | <database jndi-name='jdbc/drupal'> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | <database jndi-name= | + | |
<driver type="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"> | <driver type="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"> | ||
<url>jdbc:mysql://localhost:3306/drupal</url> | <url>jdbc:mysql://localhost:3306/drupal</url> | ||
− | <user> | + | <user></user> |
<password></password> | <password></password> | ||
</driver> | </driver> | ||
</database> | </database> | ||
− | <servlet | + | <b><servlet-mapping url-pattern="*.php" |
− | + | servlet-class="com.caucho.quercus.servlet.QuercusServlet"> | |
− | <init> | + | <init></b> |
<database>jdbc/drupal</database> | <database>jdbc/drupal</database> | ||
− | < | + | <compile>true</compile> |
− | <php-ini> | + | <b><php-ini> |
<sendmail_from>my_email_address</sendmail_from> | <sendmail_from>my_email_address</sendmail_from> | ||
<smtp_username>my_email_username</smtp_username> | <smtp_username>my_email_username</smtp_username> | ||
Line 41: | Line 35: | ||
</php-ini> | </php-ini> | ||
</init> | </init> | ||
− | </servlet> | + | </servlet-mapping></b> |
− | < | + | <b><welcome-file-list>index.php</welcome-file-list> |
− | + | </web-app></b> | |
− | + | ||
− | + | ==Finish== | |
− | + | Run Drupal's installation. That's it! | |
− | + | ||
− | + | ==Known Issues== | |
− | + | 1. Rapid queries made by the user from the search module may cause subsequent database search queries from the same user to fail. |
Revision as of 21:10, 15 February 2007
Contents |
Download Resin 3.1.1+
The newest Resin versions have several bug fixes for Drupal.
Download Drupal
Download Drupal into $resin_home/webapps/ROOT/drupal.
Download MySQL JDBC Driver
Download MySQL Connector/J JDBC Driver into $resin_home/lib. Any version is fine.
Add resin-web.xml
Add the following resin-web.xml file to $resin_home/webapps/ROOT/drupal/WEB-INF. Customize email settings to allow the sending of emails from PHP. Anything not in bold is optional.
The resin-web.xml needs to have the QuercusServlet mapped to *.php. Optionally, it can have a <database> as PHP's database. Quercus can automatically create database pools if you omit the <database> configuration, but it's better to configure it explicitly.
<web-app xmlns="http://caucho.com/ns/resin"> <database jndi-name='jdbc/drupal'> <driver type="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"> <url>jdbc:mysql://localhost:3306/drupal</url> <user></user> <password></password> </driver> </database> <servlet-mapping url-pattern="*.php" servlet-class="com.caucho.quercus.servlet.QuercusServlet"> <init> <database>jdbc/drupal</database> <compile>true</compile> <php-ini> <sendmail_from>my_email_address</sendmail_from> <smtp_username>my_email_username</smtp_username> <smtp_password>my_email_password</smtp_password> </php-ini> </init> </servlet-mapping> <welcome-file-list>index.php</welcome-file-list> </web-app>
Finish
Run Drupal's installation. That's it!
Known Issues
1. Rapid queries made by the user from the search module may cause subsequent database search queries from the same user to fail.