Win10下wamp的配置

错误集锦:

  1. 加载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)配置虚拟主机目录控制


    allow from all
    AllowOverride all
    options +indexes
    Require all granted
 

你可能感兴趣的:(Win10下wamp的配置)