CENTOS7 Troubleshooting FTP and Apache run Directory permissions conflict issues

Source: Internet
Author: User

1. Adding an FTP user to the Apache user group

USERMOD-A-G Apache Ftpadmin

Ftpadmin for FTP users

2. Set the site root directory/var/www all the groups to Apache

Chown-r: apache/var/www

3, set the permissions of the site root directory for the user group has read and write permissions

Chmod-r g+rw/var/www

It's still not working after the change.


User Apacher

Group Apacher

Revision changed to

User Ftpadmin

Group Apacher

OK run in Browser

It is much easier to change the Apacher user and user group to FTP users and user groups directly.

Reference: http://www.2cto.com/os/201112/115709.html

CENTOS7 Troubleshooting FTP and Apache run Directory permissions conflict issues

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.