Osx-An error occurred while deleting the file in the PHP + APACHE environment set up in the MACOSX system.

Source: Internet
Author: User
We started using the MACOX system and set up the apache + php environment. When you use the unlink and fopen methods in the program to operate files, the system prompts that you do not have permission. When you use the command chmod-R755systemcache to set the file to be operated to-rwxr-xr-x, the system still prompts that access is denied. The correct way is to use the mac ox system and set up an apache + php environment. When you use the unlink and fopen methods in the program to operate files, the system prompts that you do not have permission. After the command chmod-R 755 system/cache is run to set the file to be operated to-rwxr-xr-x, the system still prompts that access is denied. What is the correct method?

----------------------
Using the command chmod-R 777 system/cache seems to have solved the problem...

Reply content:

At the beginning, the mac ox system was used to set up the apache + php environment. When you use the unlink and fopen methods in the program to operate files, the system prompts that you do not have permission. After the command chmod-R 755 system/cache is run to set the file to be operated to-rwxr-xr-x, the system still prompts that access is denied. What is the correct method?

----------------------
Using the command chmod-R 777 system/cache seems to have solved the problem...

Chown-R _ web./system/cachechmod-R 755./system/cache

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.