Click to See Complete Forum and Search --> : PHP+Tomcat without Apache needs php.ini?


Anon
03-06-2002, 11:47 PM
Hello everybody,
I'm new to php with Java. I got the Sun
J2SE 1.4 installed in my RedHat Linux 7.2 box. And I have downloaded and compiled the 4.1.2 php. after make install. I found the
phpsrvlt.jar shown in my /usr/local/lib/php directory. I follow the step described to add
the jar file to my CLASSPATH and the libphp4.so directory to LD_LIBRARY_PATH.
and merge the web.xml with my original tomcat
one. And I copied the jinfo.php to my webapps/examples/ directory. After restart tomcat, I tried to access the jinfo.php but I got the error message as follows:

javax.servlet.ServletException: Wrapper cannot find servlet class net.php.servlet or a class it depends on

does anyone knows this should be related to php.ini ? I didn't see any php.ini installed in my /usr/local/lib/php directory or tomcat directory. How to fix this problem?

dannys
03-07-2002, 08:54 AM
have you tried 'locate php.ini' ?

FYI my php.ini is in /usr/local/lib/

Anon
03-12-2002, 10:24 PM
Dear kybosh,
I tried your method, but I didn't find it.
Can you show me how to do next?

dannys
03-13-2002, 06:10 AM
There should be a copy of php.ini somewhere in the PHP source directory.

Anon
03-13-2002, 06:59 AM
Yes, I found one under the pear/tests directory. Should I copy it to the /usr/local/lib as you said? or to some other place?

dannys
03-13-2002, 07:32 AM
You can try there, that's where it is on my system. I know some installations have PHP set to look for the file in other places though, some have it set to look in /etc/ for the file.

Try making a php file with just <? phpinfo(); ?> in it and run that - you should get lots of info - including the config file path.

HTH