配置 EasyPHP 以使用 CGI

发布于 2024-07-07 16:41:07 字数 723 浏览 4 评论 0原文

我正在尝试修改我的 EasyPHP 以在 CGI 模式下运行。

根据此链接: http://www.easyvitools.com/phpserial/php_ser_reference.html 我必须在这一行添加: LoadModule php5_module "C:/Program Files/EasyPHP 2.0b1/php5/php5apache2.dll" 到 httpd.conf

但是,每次我这样做时,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梓梦 2024-07-14 16:41:07

我相信您可能需要重新阅读说明:

注释这一行:

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

并添加 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:

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

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文