PHP Error: Forbidden you had permission to access/on the this server.

Source: Internet
Author: User
Tags php error

Original: PHP Error: Forbidden You do have permission to access/on the this server.

Today boss let in XP build an FTP server, twists, finally finally in the boss's help to fix ...

Which is accessed via IP when prompted Forbidden you do not have permission to access/on the this server.

To find a workaround, hereby record

PHP configuration file httpd.conf.

Locate the configuration section in the original location file

<directory/>    Options followsymlinks    allowoverride None    Order deny,allow    from  all    Satisfy</Directory>

Modified into

<directory/>    Options followsymlinks    allowoverride None    Order deny,allow#    from all from  all# allows all access to    Satisfy all</Directory>     

And also

<directory"d:/wamp5/www"># # Possible Values forThe 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 isboth complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options# forMore information. # Options Indexes followsymlinks # # AllowOverride Controls what directives could be placedinch. htaccess files. # It can be" All","None", or any combination of the keywords: # Options FileInfo authconfig Limit # allowoverride All # # Con Trols who canGetStuff from  Thisserver. # # Onlineoffline Tag-Don'T RemoveOrder Deny,allow Deny from all allow from 127.0.0.1</Directory>

Modified into

<directory"d:/wamp5/www"># # Possible Values forThe 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 isboth complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options# forMore information. # Options Indexes followsymlinks # # AllowOverride Controls what directives could be placedinch. htaccess files. # It can be" All","None", or any combination of the keywords: # Options FileInfo authconfig Limit # allowoverride All # # Con Trols who canGetStuff from  Thisserver. # # Onlineoffline Tag-Don'T RemoveOrder deny,allow# Deny fromall# 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.