PHP configuration file httpd.conf.
Locate the configuration section in the original location file
<directory/>
Options FollowSymLinks
AllowOverride None
Order Deny,allow
Deny from all
Satisfy All
</Directory>
Modified into
<directory/>
Options FollowSymLinks
AllowOverride None
Order Deny,allow
# Deny from all
Allow from all
#允许所有访问
Satisfy All
</Directory>
And also
<directory "D:/wamp5/www" >
#
# Possible values for the Options directive is "None", "All",
&nb sp; # or any combination of:
# Indexes includes followsymlinks SymLinksIfOwnerMatch execcgi multiviews
#
# Note that ' multiviews ' must be Named *explicitly*---"Options all"
# doesn ' t give it for you.
#
# The Options directive is both complicated and important. I see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more Information.
#
Options Indexes followsymlinks
#
# AllowOverride Controls What directives is 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 the this server.
#
# onlineoffline Tag-don ' t remove
Order Deny,allow
Deny from all
Allow from 127.0.0.1
</Directory>
Modified into
<directory "D:/wamp5/www" >
#
# Possible values for the Options directive is "None", "All",
&nb sp; # or any combination of:
# Indexes includes followsymlinks SymLinksIfOwnerMatch execcgi multiviews
#
# Note that ' multiviews ' must be Named *explicitly*---"Options all"
# doesn ' t give it for you.
#
# The Options directive is both complicated and important. I see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more Information.
#
Options Indexes followsymlinks
#
# AllowOverride Controls What directives is 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 the this server.
#
# onlineoffline Tag-don ' t remove
Order Deny,allow
# Deny from all
# Allow from 127.0.0.1
Allow from all
</Directory>
Then save, restart the service, and fix the problem on the access.
PHP Error: Forbidden you had permission to access/on the this server.