Sun Java Sytem Web Server 7.0 blogs Amit's Weblog

Wednesday Jul 30, 2008

After running drupal on Web Server 7.0 in a matter of few minutes, I was very excited to run other PHP applications as well. I picked up mediawiki this time and downloaded the tar ball from mediawiki.org. Since I have already configured PHP with Web Server 7.0, I simply extracted the mediawiki tar ball into the Web Server instance document root and set index.php as a welcome file using the administration GUI. That is all it takes to run mediawiki on Web Server 7.0

In case you want to use CLI instead of administration GUI, you could invoke the following wadm commands after extracting the mediawiki tar ball into the Web Server instance document root-

wadm> get-index-files --config <config-name> --vs <vs-name>
index-files=index.html,home.html,index.jsp

wadm> set-index-files --config <config-name> --vs <vs-name> index.html,home.html,index.jsp,index.php
CLI201 Command 'set-index-files' ran successfully

wadm> deploy-config <config-name>
CLI201 Command 'deploy-config' ran successfully

wadm> start-instance --config <config-name>
CLI204 Successfully started the server instance

Now access the mediawiki by typing in the URL - http://<host>:<port>/<name_of_the_extracted_mediawiki_directory> in the browser and complete the mediawiki installation by following the instructions in the INSTALL file which can be located directly under the extracted mediawiki directory.

You can see how easy it is to run mediawiki on Web Server 7.0 in the following screen cast. This demonstration assumes that you have already configured PHP with Web Server 7.0 (Watch the "Using PHP with Sun Java System Web Server 7.0" screen cast if you haven't configured PHP with Web Server 7.0 as yet)
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed