I’m testing php 5.4.4 to replace the ibm ported php 5.1.2 under IBM HTTP server 184.108.40.206.
with the IBM ported php, i have a cgi called php, which is a shell script that then executes the php cgi program, with the php script name from the url. With php 5.1.2, I can run a php script that does the print phpinfo() and I get the proper html page back.
When i change my php shell script to use the 5.4.4 php_cgi, I don’t get any output back. Instead I get a 404 error page in my browser, but neither the web or php error logs show any problem.
Have you run into this issue? What do I need to do in order to get this working with the 5.4.4?
Is it possible to share following files:
Here you goRocket.tar (107 KB)
One of possible problems is “cgi.fix_pathinfo”. Please check the “cgi.fix_pathinfo” parameter(php.ini). It should be set to 0 and without “;”.
We met this problem previously. Please inform us about your results.
That took care of the issue.
I had the same problem in the same configuration.
I replaced CGI by FastCGI which in the end should also improve performance.
httpd.conf (extract) :
LoadModule fastcgi_module modules/mod_fastcgi.so
AddHandler fastcgi-script .fcgi
FastCgiConfig -autoUpdate -singleThreshold 100 -killInterval 300 -maxProcesses 10 -maxClassProcesses 1
AddType application/x-httpd-php .php
AddHandler php-fcgi .php
Action php-fcgi /php/php.fcgi
ScriptAlias /php/ "/local/basepro/outdev/php/"
Allow from all
php.fcgi script :