Do you have a question? Post it now! No Registration Necessary. Now with pictures!
August 18, 2004, 6:15 am
rate this thread
I'm trying to get PHP running as a CGI app on Tomcat. I've managed to
do sufficent Tomcat setup to get it to invoke the PHP interpreter,
but all I get is the feared "No input file specified."
Looking aroung the php site, it seems this is caused by PHP-cgi really
wanting to be passed SCRIPT_FILENAME. Looking at the Tomcat logs, it
seems this is not being passed. I'm investigating how to get Tomcat to
pass this variable, but in case that dosn't work, can anyone answer
* does SCRIPT_FILENAME cause this in other webservers?
* if (and how) can I get php to be less hung up on seeing this
PHP 5.0.1 (cgi-fcgi) (built: Aug 12 2004 23:30:44)
Apache Tomcat 5.0.27 Server
Windows XP (I don't like it either, but these hands are tied)
I used the php.ini-dist from the package and have changed the
* I had to set [cgi.force_redirect = 0] to get this far.
* I've tried changing doc_root to the directory where my php files are
(C:\Tomcat5\webapps\ROOT\WEB-INF\cgi), without any luck.
Env vars being passed via CGI:
HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7) Gecko/20040626 Firefox/0.9.1
- » Apache 2.0.50 failed to start after installing PHP 5.0.1
- — Previous thread in » PHP Scripting Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum