Skip to main content

PHP 5.4.4 not working under IHS 8.5.5.9

  • April 15, 2016
  • 5 replies
  • 0 views

I’m testing php 5.4.4 to replace the ibm ported php 5.1.2 under IBM HTTP server 8.5.5.9.

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?

Thanks,
Peter

5 replies

  • 0 replies
  • April 18, 2016

I’m testing php 5.4.4 to replace the ibm ported php 5.1.2 under IBM HTTP server 8.5.5.9.

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?

Thanks,
Peter

Hi Peter,

Is it possible to share following files:

  • http.conf
  • php.ini
  • your shell script that executes the php cgi

Thanks,
Andrey


  • 0 replies
  • April 19, 2016

I’m testing php 5.4.4 to replace the ibm ported php 5.1.2 under IBM HTTP server 8.5.5.9.

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?

Thanks,
Peter

Here you goRocket.tar (107 KB)


  • 0 replies
  • April 20, 2016

I’m testing php 5.4.4 to replace the ibm ported php 5.1.2 under IBM HTTP server 8.5.5.9.

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?

Thanks,
Peter

Hi Peter,

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 “;”.
like:
cgi.fix_pathinfo=0

We met this problem previously. Please inform us about your results.

Thanks,
Andrey


  • 0 replies
  • April 20, 2016

I’m testing php 5.4.4 to replace the ibm ported php 5.1.2 under IBM HTTP server 8.5.5.9.

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?

Thanks,
Peter

That took care of the issue.

Thanks,
Peter


  • 0 replies
  • May 6, 2016

I’m testing php 5.4.4 to replace the ibm ported php 5.1.2 under IBM HTTP server 8.5.5.9.

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?

Thanks,
Peter

Hi Peter

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
<IfModule mod_fastcgi.c>
  AddHandler fastcgi-script .fcgi
  FastCgiIpcDir /local/basepro/httpserv/fastcgi
  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/"
  <Directory "/local/basepro/outdev/php">
    Options +ExecCGI
    SetHandler fastcgi-script
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
  </Directory>
</IfModule>

php.fcgi script :

#!/bin/sh
_CEE_RUNOPTS="$_CEE_RUNOPTS,HEAP(,,,FREE)"
export _CEE_RUNOPTS
PHP_FCGI_CHILDREN=5
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=1000
export PHP_FCGI_MAX_REQUESTS
PHPRC=/local/basepro/outdev/php/php.ini
export PHPRC
exec /sysplex/produit/php/bin/php-cgi

Kind regards

Denis