Quercus: Mediawiki

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(Download Resin 3.1.1+)
Line 2: Line 2:
  
 
==Download Resin 3.1.1+==
 
==Download Resin 3.1.1+==
The newest Resin versions have several bug fixes for MediaWiki.  We also release snapshot releases that contain the newest fixes.
+
The newest Resin versions have several bug fixes for MediaWiki.
  
====Download MySQL JDBC Driver==
+
==Download MediaWiki==
 +
Download [http://www.mediawiki.org/wiki/Download MediaWiki] into $resin_home/webapps/ROOT/mediawiki.
  
====Add resin-web.xml======Finish====
+
==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/mediawiki/WEB-INF.  Customize email settings to allow the sending of emails from PHP.  Anything not in bold is optional.
 +
 
 +
The resin-web.xml has the QuercusServlet mapped to *.php.  Optionally, it has 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/mediawiki'>
 +
    <driver type="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource">
 +
      <url>jdbc:mysql://localhost:3306/mediawiki</url>
 +
      <user></user>
 +
      <password></password>
 +
    </driver>
 +
  </database>
 +
 +
  <b><servlet-mapping url-pattern="*.php"
 +
                    servlet-class="com.caucho.quercus.servlet.QuercusServlet">
 +
    <init></b>
 +
      <database>jdbc/mediawiki</database>
 +
      <compile>true</compile>
 +
      <b><script-encoding>ISO-8859-1</script-encoding>
 +
      <php-ini>
 +
        <sendmail_from>foo@bar.com</sendmail_from>
 +
      </php-ini>
 +
    </init>
 +
  </servlet-mapping></b>
 +
 +
  <b><welcome-file-list>index.php</welcome-file-list>
 +
</web-app></b>
 +
 
 +
==Finish==
 +
Run MediaWiki's installation.  That's it!

Revision as of 05:07, 13 March 2007


Contents

Download Resin 3.1.1+

The newest Resin versions have several bug fixes for MediaWiki.

Download MediaWiki

Download MediaWiki into $resin_home/webapps/ROOT/mediawiki.

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/mediawiki/WEB-INF. Customize email settings to allow the sending of emails from PHP. Anything not in bold is optional.

The resin-web.xml has the QuercusServlet mapped to *.php. Optionally, it has 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/mediawiki'>
    <driver type="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource">
      <url>jdbc:mysql://localhost:3306/mediawiki</url>
      <user></user>
      <password></password>
    </driver>
  </database>

  <servlet-mapping url-pattern="*.php"
                   servlet-class="com.caucho.quercus.servlet.QuercusServlet">
    <init>
      <database>jdbc/mediawiki</database>
      <compile>true</compile>
      <script-encoding>ISO-8859-1</script-encoding>
      <php-ini>
        <sendmail_from>foo@bar.com</sendmail_from>
      </php-ini>
    </init>
  </servlet-mapping>

  <welcome-file-list>index.php</welcome-file-list>
</web-app>

Finish

Run MediaWiki's installation. That's it!

Personal tools