简体   繁体   English

将php5模块添加到Apache时出现httpd错误

[英]httpd error when adding php5 module to Apache

I am trying to install the php5 64bits version in my apache 2.4 server. 我想在我的apache 2.4服务器上安装php5 64bits版本。 I added the following code to my httpd file: 我将以下代码添加到我的httpd文件中:

#PHP
LoadModule php5_module C:/php/php5phpdbg.dll
AddType application/x-httpd-php .php
PHPIniDir C:/php

The server is showing an error message when I restart it. 重新启动服务器时,服务器显示错误消息。 How can I solve this? 我怎么解决这个问题?

Try to surround the file paths with double quotes: 尝试使用双引号括起文件路径:

#PHP
LoadModule php5_module "C:/php/php5phpdbg.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM