Apache和php5.3.5的整合问题

Apache的整合,如图1:

具体代码如下:

出现问题  

一,整合后apache启动不了,logs日志报错AddType requires at least two arguments, a mime type followed by one or more file extensions,如图3

解决:AddType application/x-httpd-php .php .html中间加一个空格

,logs报错:httpd.exe: Syntax error on line 132 of D:/software/PHP/PHPenv/conf/httpd.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from,如图4:

解决方案:  LoadModule php5_module "D:softwarePHPphpphp5apache2_2.dll"  多半是因为未加引号导致,加上引号即可。

原文地址:https://www.cnblogs.com/Logic09/p/3971736.html