Chown-Rwww.www/-php Tutorial

Source: Internet
Author: User
Chown-Rwww.www with git push, then pulled to the site directory to write the error, chown-R www. www/, and then run chown-R root. root/, then many services can not run.
Then I asked someone to help me change the service owner and all groups. it looks good on the surface.
How can we fix this problem as much as possible?


Reply to discussion (solution)

Chown-R www: www/home/wwwroot/default
/Home/wwwroot/default is your website directory

Chown-R root. root/
In this way, you can only execute all files with the root permission, which may cause other users to be unable to run their own services. find a new one, such as mysql and nginx.

Chown-R www: www/home/wwwroot/default
/Home/wwwroot/default is your website directory

Chown-R root. root/
In this way, you can only execute all files with the root permission, which may cause other users to be unable to run their own services. find a new one, such as mysql and nginx.


Will this cause machine failure?

It should not, but it is not that serious. if the service cannot be run, you just need to change the owner.

Set the directory to read the www account.

Change the owner of the file group to be the same as that of nginx php. If you try to run the command as root, it is a slave. High security risks

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.