目錄
PHP错误:Forbidden You don't have permission to access / on this server.,permissiontoaccess
首頁 後端開發 php教程 PHP错误:Forbidden You don't have permission to access / on this server.,permissiontoaccess_PHP教程

PHP错误:Forbidden You don't have permission to access / on this server.,permissiontoaccess_PHP教程

Jul 13, 2016 am 09:49 AM
apache

PHP错误:Forbidden You don't have permission to access / on this server.,permissiontoaccess

php的配置文件httpd.conf。

在原有的位置文件中找到配置节


    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all

修改成


    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
#    Deny from all
    Allow from all

#允许所有访问
    Satisfy all

 

还有

 

    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #
#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1

修改成

 

    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #
#   onlineoffline tag - don't remove
    Order Deny,Allow
#    Deny from all

#  Allow from 127.0.0.1
    Allow from all

然后保存,重启服务,在访问就解决了这个问题。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1020125.htmlTechArticlePHP错误:Forbidden You dont have permission to access / on this server.,permissiontoaccess php的配置文件httpd.conf。 在原有的位置文件中找到配置节 Directory...
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

AI Hentai Generator

AI Hentai Generator

免費產生 AI 無盡。

熱門文章

R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
2 週前 By 尊渡假赌尊渡假赌尊渡假赌
倉庫:如何復興隊友
4 週前 By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒險:如何獲得巨型種子
3 週前 By 尊渡假赌尊渡假赌尊渡假赌

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

c++屬於前端還是後端 c++屬於前端還是後端 Apr 22, 2024 pm 05:33 PM

c++屬於前端還是後端

PHP 框架效能比較:速度與效率的終極對決 PHP 框架效能比較:速度與效率的終極對決 Apr 30, 2024 pm 12:27 PM

PHP 框架效能比較:速度與效率的終極對決

golang函數並發控制與第三方函式庫的整合與擴展 golang函數並發控制與第三方函式庫的整合與擴展 Apr 25, 2024 am 09:27 AM

golang函數並發控制與第三方函式庫的整合與擴展

evasive 模組保護您的網站免受應用程式層 DOS 攻擊 evasive 模組保護您的網站免受應用程式層 DOS 攻擊 Apr 30, 2024 pm 05:34 PM

evasive 模組保護您的網站免受應用程式層 DOS 攻擊

Java 並發程式設計如何進行並發測試與除錯? Java 並發程式設計如何進行並發測試與除錯? May 09, 2024 am 09:33 AM

Java 並發程式設計如何進行並發測試與除錯?

eclipse如何新增伺服器 eclipse如何新增伺服器 May 05, 2024 pm 07:27 PM

eclipse如何新增伺服器

演算法在 58 畫像平台建置中的應用 演算法在 58 畫像平台建置中的應用 May 09, 2024 am 09:01 AM

演算法在 58 畫像平台建置中的應用

如何使用 PHP 部署和維護網站 如何使用 PHP 部署和維護網站 May 03, 2024 am 08:54 AM

如何使用 PHP 部署和維護網站

See all articles