Hello,
We are trying to integrate PHP with Java and Tomcat on Linux Red Hat 8 System.
We have installed Tomcat 4.1 along with PHP 4.3.9 and Java JDK 1.4.2_05.

After building the stuff and running a test.php page with phpinfo();
in it, Tomcat prints out a bunch of errors with a link error about not
finding "ap_loaded_modules", have I missed some step here? Or is there
a known problem with PHP/Java/Tomcat.

The steps we followed for integration are -

1.      Build the PHP 4 Java Servlet SAPI Module
Add servlet.jar to your CLASSPATH.
./configure --with-servlet --with-java. Apache options
Added directory containing libphp4.so to LD_LIBRARY_PATH.
2.      Copy the generated phpsrvlt.jar into your $CATALINA_HOME/lib directory
3.      Merge the configuration directives from web.xml file that comes
with the Java Servlet SAPI Module into your Tomcat/conf/web.xml
configuration file. Element ordering of the web.xml should be legal
with Tomcat and put all the <servlet> declarations first, followed by
all the <servlet-mapping> declarations.
Add 
<welcome-file>index.php</welcome-file>
to the
<welcome-file-list>
...
</welcome-file-list>

block of your Tomcat/conf/web.xml configuration file.

Please  suggest any modification required or mail the proper document
for installation

Thanking You,

Regards
Yogesh A

Reply via email to