zoukankan      html  css  js  c++  java
  • WAMP2.5 Forbidden

    Forbidden

    You don't have permission to access /DuoLamPHP/index.php on this server.


    Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
     
    记得WAMP2.2安装之后不需要设置什么,这次总是爆出Forbidden错误
     
    修改C:wampinapacheapache2.4.9confhttpd.conf文件

    <Directory />
    AllowOverride none
    Require all denied
    </Directory>

    修改成:

    <Directory />
    AllowOverride none
    Require all granted
    </Directory>

    重启Apache

    如果还是不行,注意检查一下

    C:WindowsSystem32driversetchosts文件

    看看里面是否有

    #127.0.0.1       localhost

    有的话,放开注释

    ------------------------------------------------------------------------

    如果想从别的机器访问服务器

    打开C:wampinapacheapache2.4.9confhttpd.conf文件

    和C:wampinapacheapache2.4.18confextrahttpd-vhosts.conf

    <Directory "c:/wamp/www/">

    。。。
    Require local
    </Directory>

    修改成:

    <Directory "c:/wamp/www/">

    。。。
    Require all granted
    </Directory>

  • 相关阅读:
    oracle与DB2
    oracle ORA-01427: 单行子查询返回多个行
    mysql开发总结
    mysql show profile基本详解
    mysql批量插入数据
    mysql索引详解
    mysql性能调优
    MySQL优化
    mysql主从调优
    mysql主从复制
  • 原文地址:https://www.cnblogs.com/coolbear/p/3875099.html
Copyright © 2011-2022 走看看