简体   繁体   中英

httpd error when adding php5 module to Apache

I am trying to install the php5 64bits version in my apache 2.4 server. I added the following code to my httpd file:

#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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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