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:\software\PHP\php\php5apache2_2.dll" 多半是因为未加引号导致,加上引号即可。
时间: 2024-10-13 19:18:30