[Solution] 'failed' to open stream: Permission denied in ...... 'Summary of php usage

Source: Internet
Author: User

1. the file to be opened does not exist

Ii. Permission issues:

1.This PHP application is generally intended for general users in linux. The directory should be readable, writable, and executable (that is, 777). The file is assigned the corresponding permissions of general users according to the corresponding operations.

Eg: Put the file under/usr/local/a/. The file name is a.txt and the file operation is 'r +'

Directory a permission: chmod 777

The permission for file a.txt should at least be: chmod 006 a.txt

2.If the file is under/root/, even if the file and Its Directory have 777 permissions, the Permission denied error message will appear.

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.