Quercus: Drupal

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
Line 42: Line 42:
 
==Finish==
 
==Finish==
 
Run Drupal's installation.  That's it!
 
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 22:05, 14 February 2008


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!

Personal tools