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

WBOY
Release: 2016-07-13 09:49:24
Original
1118 people have browsed it

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

php configuration file httpd.conf.

Find the configuration section in the original location file


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

was changed to


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

#Allow all access
Satisfy all

Also

#
# 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

was changed to

#
# 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

Then save, restart the service, and the problem will be solved when accessing.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1020125.htmlTechArticlePHP error: Forbidden You dont have permission to access / on this server., permissiontoaccess php configuration file httpd.conf . Find the configuration section Directory...
in the original location file
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!