PHP error: Forbidden You don't have permission to access/on this server., permissiontoaccess
The configuration file httpd. conf of php.
Find the configuration section in the original location file
<Directory/>
Options FollowSymLinks
AllowOverride None
Order deny, allow
Deny from all
Satisfy all
</Directory>
Modify
<Directory/>
Options FollowSymLinks
AllowOverride None
Order deny, allow
# Deny from all
Allow from all
# Allow all access
Satisfy all
</Directory>
And
<Directory "D:/Wamp5/www">
#
# Possible values for the Options directive are "None", "All ",
# Or any combination:
# 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
</Directory>
Modify
<Directory "D:/Wamp5/www">
#
# Possible values for the Options directive are "None", "All ",
# Or any combination:
# 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
</Directory>
Save and restart the service. The problem is solved during access.