错误集锦:
- 加载php模块
LoadModule php5_module "d:/wamp/PHP/php7apache2_4.dll"
出现报警:
1)httpd: Syntax error on line 181 of D:/wamp/Apache/Apache24/conf/httpd.conf: Can't locate API module structure `php5_module' in file D:/wamp/PHP/php7apache2_4.dll: No error
原因:
因为现在模块是php7而加载模块写的是php5 造成错误
解决方法:
LoadModule php7_module "d:/wamp/PHP/php7apache2_4.dll"
2.使用虚拟主机
出现错误
You don't have permission to access /index.php on this server.
1)在httpd.conf中必须打开
Include conf/extra/httpd-vhosts.conf
2)配置虚拟主机目录控制
<Directory "d:/wamp/www">
allow from all
AllowOverride all
options +indexes
Require all granted
</Directory>
网友评论