I have PHP5 in my localhost (windows) environment .. for development.
And using phpservlet.war (in java) I have been able to run PHP5 in cgi mode on my local tomcat 5.0.29 server.
I use PHP on tomcat to run with some other tomcat webapps, so an Apache+PHP5 installation is not what I need (although I have that working too on a different port in my localhost).
...
I'm trying to mirror this localhost Tomcat+PHP5 setup on a hosted server which also has PHP installed .. but this is a linux hosted/shared server.
The WEB-INF\web.xml file for phpservlet says this
<init-param>
<param-name>php.executable</param-name>
<!--
Enter the full qualified path to your php executable here
e.g. c:/Programme/php/php.exe
For php5 on windows please use the php-cgi.exe!
-->
<param-value>c/php/php-cgi.exe</param-value>
</init-param>
...
but the server administrator gives the linux path to php as this
<param-value>/usr/local/bin/php</param-value></init-param>
...
This path does not work when phpservlet is deployed in tomcat. This is the error message when running phpinfo.php ..
type Status report
message Not Found: /phpservlet/phpinfo.php
description The requested resource (Not Found: /phpservlet/phpinfo.php) is not available.
My question is .. where/how to map to php.exe in a linux server?
Is there a php.exe in linux? (I am unfamiliar with linux installation).
Comparing my PHP5 installation in my c:\php\ with the php files in linux server
These are the files I can see in the linux tomcat server ..
/usr/local/bin/pear 666 bytes
/usr/local/bin/php 8.28 Mbytes
/usr/local/bin/php-config 709 bytes
/usr/local/bin/phpextdist 593 bytes
and in
/usr/local/lib/php.ini 40.06 KB
....
but I am not sure what that php file is .. size 8.28 Mbytes .. with no extension.
My localhost windows installation in c:\php\ has
dev
ext
extras
PEAR
...
...
php.exe
php-cgi.exe
Where are the equivalents to the above windows files in linux?
What path to php should I use in phpservlet\WEB-INF\web.xml?
Thanks