1

Could you please tell me how to install PHP on IBM Http Server?

I have copied all php7 files into C:/php folder and added the following code to http.conf:

LoadModule php7_module "C:/php/php7apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "C:/php/"

But when I start the server I get the following error:

"Windows could not start IBM HTTP Server V8.5 on Local Computer. For more information review the System Event Log."

In the event log I get the following:

"The IBM HTTP Server V8.5 service terminated with service-specific error Incorrect function.." Event ID is 7024.

Alvin Mahmudov
  • 103
  • 1
  • 11

1 Answers1

2

You should use fastcgi to connect IHS with PHP for this exact reason, you really want the isolation between the two processes. Most users of IHS or Apache on windows do not have the skills/resources to debug native crashes to find the incompatibility and these things are simply not tested together.

IHS prior to V9 includes mod_fastcgi. IHS V9 and later includes mod_proxy_fcgi. There's no shortage of guides on these on the web.

covener
  • 17,402
  • 2
  • 31
  • 45
  • Exactly, like Apache web server, it requires to have listed installed modules in apache.conf, I suppose there is somewhat config on your web server that you should point your php installation. Moving from php5 to php7 is a bit tricky – The Bumpaster Jan 26 '18 at 12:52
  • Thanks. I am trying to use fastcgi, but apaches configurations are different than IHMs. LoadModule fastcgi_module modules/mod_fastcgi.so #AllowOverride NoneOptions +ExecCGI FastCGIServer "c:/php/php-cgi.exe" SetHandler .php Now I see the content of index.php in my browser. It is not executing. Could you tell me what is the problem? – Alvin Mahmudov Jan 26 '18 at 13:33