Quercus: Mediawiki
From Resin 3.0
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Quercus]] | [[Category:Quercus]] | ||
− | =Download Resin 3.1. | + | ==Download Resin 3.1.5+== |
− | + | We suggest using the most recent release of Resin as several | |
+ | MediaWiki related bugs have been fixed recently. | ||
− | =Download MediaWiki= | + | ==Download MediaWiki 1.11.1 or newer== |
Download [http://www.mediawiki.org/wiki/Download MediaWiki] into $resin_home/webapps/ROOT/mediawiki. | Download [http://www.mediawiki.org/wiki/Download MediaWiki] into $resin_home/webapps/ROOT/mediawiki. | ||
− | =Download MySQL JDBC Driver= | + | ==Download MySQL JDBC Driver== |
− | Download [http://www.mysql.com/products/connector/j/ MySQL Connector/J JDBC Driver] | + | Download [http://www.mysql.com/products/connector/j/ MySQL Connector/J JDBC Driver] |
+ | version 3.1.14 or newer. Save the mysql-connector-java-3.1.14-bin.jar Jar file | ||
+ | in $resin_home/lib. | ||
− | =Add resin-web.xml= | + | ==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. | 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 | + | 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> | <b><web-app xmlns="http://caucho.com/ns/resin"></b> | ||
<database jndi-name='jdbc/mediawiki'> | <database jndi-name='jdbc/mediawiki'> | ||
− | <driver type="com.mysql.jdbc. | + | <driver type="com.mysql.jdbc.Driver"> |
<url>jdbc:mysql://localhost:3306/mediawiki</url> | <url>jdbc:mysql://localhost:3306/mediawiki</url> | ||
<user></user> | <user></user> | ||
Line 28: | Line 31: | ||
<init></b> | <init></b> | ||
<database>jdbc/mediawiki</database> | <database>jdbc/mediawiki</database> | ||
− | <compile>true | + | <compile>true</compile> |
− | <b><php-ini> | + | <b><script-encoding>ISO-8859-1</script-encoding> |
− | <sendmail_from>foo@bar.com</ | + | <php-ini> |
− | + | <sendmail_from>foo@bar.com</sendmail_from> | |
</php-ini> | </php-ini> | ||
</init> | </init> | ||
Line 39: | Line 42: | ||
</web-app></b> | </web-app></b> | ||
− | =Finish= | + | ==Finish== |
Run MediaWiki's installation. That's it! | Run MediaWiki's installation. That's it! | ||
+ | |||
+ | |||
+ | ==Quercus on Sun Java System Application Server== | ||
+ | Please see the detail on discussion tab. Thanks |
Latest revision as of 13:48, 26 July 2008
Contents |
[edit] Download Resin 3.1.5+
We suggest using the most recent release of Resin as several MediaWiki related bugs have been fixed recently.
[edit] Download MediaWiki 1.11.1 or newer
Download MediaWiki into $resin_home/webapps/ROOT/mediawiki.
[edit] Download MySQL JDBC Driver
Download MySQL Connector/J JDBC Driver version 3.1.14 or newer. Save the mysql-connector-java-3.1.14-bin.jar Jar file in $resin_home/lib.
[edit] 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.Driver"> <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>
[edit] Finish
Run MediaWiki's installation. That's it!
[edit] Quercus on Sun Java System Application Server
Please see the detail on discussion tab. Thanks