From: <jbo...@li...> - 2006-05-29 16:54:07
|
Author: jfr...@jb... Date: 2006-05-29 12:53:58 -0400 (Mon, 29 May 2006) New Revision: 4466 Modified: labs/jbossweb/trunk/xdocs/modules/php/index.xml Log: Arrange the doc... setenv.sh description was missing. Modified: labs/jbossweb/trunk/xdocs/modules/php/index.xml =================================================================== --- labs/jbossweb/trunk/xdocs/modules/php/index.xml 2006-05-29 16:00:06 UTC (rev 4465) +++ labs/jbossweb/trunk/xdocs/modules/php/index.xml 2006-05-29 16:53:58 UTC (rev 4466) @@ -31,8 +31,8 @@ </section> <section name="Installing"> -After extracting the tarball corresponding to you platform do the following: -Edit in the <Server/> of <code>$CATALINA_BASE/conf/server.xml</code> and add the following: +After extracting the tarball corresponding to you platform in $CATALINA_BASE do the following: +Edit in the <Server/> of <code>$CATALINA_BASE/conf/server.xml</code> and add a Listener following: <source> <Listener className="org.apache.catalina.servlets.php.LifecycleListener"/> </source> @@ -61,11 +61,22 @@ <url-pattern>*.phps</url-pattern> </servlet-mapping> </source> -The war file of the tarball contains some php demos script they are deployed under /php-examples -Try <code>http://localhost:8080/php-examples/index.php</code> to test them -<todo>Work in progress</todo> +Edit the <code>$CATALINA_BASE/bin/setenv.sh</code> add the <code>LD_LIBRARY_PATH</code> variable and modify/add +the java.library.path parameter of the JVM: +<source> +CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=$CATALINA_HOME/PHP/lib" +LD_LIBRARY_PATH=$CATALINA_HOME/PHP/lib +export LD_LIBRARY_PATH +</source> </section> -<section name="Additing extension libraies"> +<section name="Using the php demo scripts"> +The <code>php-examples.war</code> warfile of the tarball contains some php demo scripts. +They are deployed under /php-examples to use them you only need to modify the <code>$CATALINA_BASE/bin/setenv.sh</code> as described above. You don't have to modify the <code>$CATALINA_BASE/conf/web.xml</code> +nor the <code>$CATALINA_BASE/conf/server.xml</code> files. +You have to start and restart the servlet container because of the environment modifications. +To use the examples, try <code>http://localhost:8080/php-examples/index.php</code>. +</section> +<section name="Additing extension libraries"> For the moment this feature is only supported on Solaris. Edit the <code>php.ini</code> file and add your library extensions as in the following example: <source> @@ -74,7 +85,6 @@ extension=pdo_pgsql.so extension=pgsql.so </source> -<todo>Work in progress</todo> </section> </body> </document> |