Quercus: Mediawiki

From Resin 3.0

Revision as of 19:39, 25 February 2006 by Ferg (Talk | contribs)
Jump to: navigation, search


Steps:

  1. unpack mediawiki in webapps/wiki
  2. add resin-web.xml
  3. start Resin and browse to http://localhost:8080/wiki

resin-web.xml

The resin-web.xml needs to add the QuercusServlet and map it to *.php. Optionally, it configures 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.

resin-web.xml

<web-app xmlns="http://caucho.com/ns/resin">
    <database jndi-name='jdbc/wiki'>
      <driver type="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource">
        <url>jdbc:mysql://localhost:3306/test_wiki2</url>
        <user></user>
        <password></password>
      </driver>
    </database>

  <servlet-mapping url-pattern="*.php"
                   servlet-class="com.caucho.quercus.servlet.QuercusServlet">
     <init compile="true" database="jdbc/wiki"/>
  </servlet-mapping>

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