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?

    have you tried 'locate php.ini' ?

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

      6 days later

      Dear kybosh,
      I tried your method, but I didn't find it.
      Can you show me how to do next?

        There should be a copy of php.ini somewhere in the PHP source directory.

          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?

            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

              Write a Reply...