1. 程式人生 > >WampServer出現You don’t have permission to access/on this server提示

WampServer出現You don’t have permission to access/on this server提示

ron 服務 mps all -m 如何 onf sta highlight

WampServer出現You don’t have permission to access/on this server提示

本地搭建WampServer,輸入http://127.0.0.1訪問正常,當輸入http://localhost/,apache出現You don‘t have permission to access/on this server的提示,如何解決?

找到httpd.conf,用記事本打開httpd.conf,有兩處需要修改:

  1. <Directory />
  2. Options FollowSymLinks
  3. AllowOverride None
  4. Order deny,allow
  5. Deny from all
  6. </Directory>

將Deny from all 改為:Allow from all ,然後重新啟動所有服務。

還有一處將下面

  1. # onlineoffline tag - don‘t remove
  2. Order Deny,Allow
  3. Deny from all
  4. Allow from 127.0.0.1
  5. </Directory>

將Deny from all 改為:Allow from all ,然後重新啟動所有服務。

現在打開localhost或127.0.0.1時發現可以訪問了,但訪問phpmyadmin時候,出現You don‘t have permission to access /phpmyadmin/ on this server的提示,如何解決?

打開如下文件:C:/wamp/alias/phpmyadmin.conf    //這個就是你的wamp的安裝目錄下的內容,用編輯器打開

修改成這樣:

  1. <Directory "c:/wamp/apps/phpmyadmin3.5.1/">
  2. Options Indexes FollowSymLinks MultiViews
  3. AllowOverride all
  4. Order Deny,Allow
  5. Allow from all
  6. Allow from 127.0.0.1
  7. </Directory>

修改保存後,重啟wamp

WampServer出現You don’t have permission to access/on this server提示