Configure EasyPHP to use CGI

I am trying to change my EasyPHP to run in CGI mode.

From this link: http://www.easyvitools.com/phpserial/php_ser_reference.html I have to add to this line: LoadModule php5_module "C: / Program Files / EasyPHP 2.0b1 / php5 / php5apache2.dll" in httpd.conf

However, every time I do this, EasyPHP gives me this error:

Error in Apache configuration file:

"apache.exe: syntax error on line 126 of .... / apache / conf / httpd.conf. API modular structure" php5_module "to file C: .... / php5 / php5apache2.dll distorted - maybe it's not APache DSO module? " "

I checked that the php5apache2.dll file exists and that it is correct in the configuration file. Does anyone know what might cause this problem, or am I doing something wrong to change it in CGI mode instead of using the default APache handler?

+3
source share
1 answer

I believe you might need to re-read the instructions:

Comment this line:

#LoadModule php5_module "c:/Php/php5apache2.dll"

And add two new lines:

ScriptAlias ​​/ php / "c: / php /"
Application-Application / x-httpd-php "/php/php-cgi.exe"

So, it seems that the line being added should be commented out / deleted. And you need to use these alternative directives in httpd.conf.

+5
source

Source: https://habr.com/ru/post/1698701/


All Articles