-
Notifications
You must be signed in to change notification settings - Fork 10
Developer Guide
If you're looking to improve, modify or even just try our web page, you will need to install a few tools on your computer.
- Tomcat 6
- [PHP5 .zip] (http://windows.php.net/download/#php-5.4)
- [JavaBridge6.2.1 .war] (http://sourceforge.net/projects/php-java-bridge/files/Binary%20package/php-java-bridge_6.2.1/JavaBridgeTemplate621.war/download)
- [wamp (any version)] (http://www.wampserver.com/)
- Java JDK7
-
Install Java JDK on your computer. In this example, the installation is done in "C:\Program Files\Java\jdk1.7.0_07" and Java JRE is located in "C:\Program Files\Java\jre7";
-
Add the following environment variables so that Java works properly (if you don't know how to add environment variables, [click here] (http://www.java.com/en/download/help/path.xml)) :
JAVA_HOME : C:\Program Files\Java\jdk1.7.0_07
JAVA_BIN : C:\Program Files\Java\jdk1.7.0_07/bin
JAVA_JRE : C:\Program Files\Java\jre7
-
Unzip tomcat files in some folder. For this example, let's say we used "C:\tomcat".
-
Add the following environment variable so that Tomcat works properly:
CATALINA_HOME: C:\tomcat
-
Test your tomcat installation by starting up the server. Execute %CATALINA_HOME%\bin\startup.bat. Once started, open your web browser and enter the following address: http://localhost:8080.
-
Rename the JavaBridgeTemplate621.war package for JavaBridge.war.
-
Copy the JavaBridge.war file and paste it into "%CATALINA_HOME%\webapps".
-
Restart your tomcat server by using the following scripts %CATALINA_HOME%\bin\shutdown.bat and %CATALINA_HOME%\bin\startup.bat
-
After startup, a JavaBridge folder should have been created in **%CATALINA_HOME%\webapps**.
-
Add the following environment variable:
PATH : C:\php (If "path" already exists, simply add your repertory at the end of the one that's already set up by separating them with a semi-colon ( ;))
-
Copiez le fichier MediaWikiScanner.jar dans le dossier %CATALINA_HOME%\webapps\JavaBridge\WEB-INF\lib.
-
Redémarrez le serveur tomcat en utilisant les scripts %CATALINA_HOME%\bin\shutdown.bat et %CATALINA_HOME%\bin\startup.bat. Tomcat devrait ouvrir sans erreur.
-
Testez votre installation en ouvrant votre navigateur et en allant sur la page: http://localhost:8080/JavaBridge/test.php
-
Installez WAMP sur votre ordinateur. Pour cette démonstration, je l'ai installé dans "C:\wamp".
-
Ouvrez le fichier php.ini dans C:\wamp\bin\php\php5.4.3\php.ini et modifiez la valeur suivante:
allow_url_include = On
Note: Votre serveur Apache doit fonctionner sur le port 80 ou n'importe quel port qui vous semble logique SAUF 8080 qui est utilisé par le serveur Tomcat.
Pour modifier le port d'écoute du serveur Apache, ouvrez le fichier C:\wamp\bin\apache\apache2.2.22\conf\httpd.conf. Modifiez les lignes:
Listen 80
ServerName localhost:80