配置 EasyPHP 以使用 CGI
我正在尝试修改我的 EasyPHP 以在 CGI 模式下运行。
但是,每次我这样做时,EasyPHP 都会给我这个错误:
Apache 配置文件错误:
""apache.exe: 第 126 行有语法错误 ..../apache/conf/httpd.conf。 应用程序编程接口 模块结构'php5_module'中 文件 C:..../php5/php5apache2.dll 是 乱码 - 也许这不是一个 APache 模块 DSO?""
我已检查文件 php5apache2.dll 是否存在并且在配置文件中是否正确。 有谁知道什么可能会导致这个问题,或者我是否做错了什么将其更改为 CGI 模式而不是使用默认的 APache 处理程序?
I'm trying to modify my EasyPHP to run in CGI mode.
According to this link: http://www.easyvitools.com/phpserial/php_ser_reference.html
I have to add in this line:
LoadModule php5_module "C:/Program Files/EasyPHP 2.0b1/php5/php5apache2.dll" to httpd.conf
However, everytime I do that, EasyPHP gives me this error:
Error in Apache configuration file:
""apache.exe: syntax error on line 126
of ..../apache/conf/httpd.conf. API
module structure 'php5_module' in the
file C:..../php5/php5apache2.dll is
garbled - perhaps this is not an
APache module DSO?""
I've checked that the file php5apache2.dll exists and that it is correct in the config file. Does anybody know what could cause this problem or am I doing something wrong to change it to CGI mode instead of using the default APache handler?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您可能需要重新阅读说明:
注释这一行:
并添加 2 个新行:
ScriptAlias /php/ "c:/php/"
Action application/x-httpd-php "/php/php-cgi.exe"
因此看来您要添加的行实际上需要注释掉/删除。 您需要在 httpd.conf 中使用这些替代指令。
I believe that you may need to re-read the instructions:
Comment this line:
And add 2 new lines:
ScriptAlias /php/ "c:/php/"
Action application/x-httpd-php "/php/php-cgi.exe"
So it appears that the line you are adding actually needs to be commented out / removed. And you need to use these alternative directives in httpd.conf.