Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server

Source: Internet
Author: User
Tags readable

For a long time not to get Apache and PHP, suddenly encountered this wonderful problem, would like to directly on the Internet to find ready-made solutions, the results of online search took a lot of effort, also did not find the reason.

Later read the log file: Apache\logs\error.log found clues.

[Core:error] [PID 200:tid 1704] (20024) The given path is misformatted or contained invalid characters: [client 127.0.0.1:51040] ah00127:cannot map GET/.../%3c? %20echo%20$url%20?%3e http/1.1 to file, Referer:

After talking about%3c?%20echo%20$url%20?%3e decoding, I have a few in mind.

<? echo $url?>

It's probably not PHP-enabled Short_open_tag.

Open Php\php.ini Modify Short_open_tag = On, restart Apache, the test is no problem.


Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the 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.