The apache website in centOS has insufficient permissions to generate folders or files.

Source: Internet
Author: User
Tags centos


In fact, this problem is more like a Linux user problem. Apache automatically generates permissions for using apache users and apache user groups to operate on things in Linux by default. If this permission is used, you cannot delete or edit files through ftp. I am always looking for the place where the authorization is located ,. In fact, this problem can be found in the apache configuration file httpd. conf.

There are apache execution users and user groups in httpd. conf,

The code is as follows: Copy code
<IfModule! Mpm_netware_module>
#
# If you wish httpd to run as a different user or group, you must run
# Httpd as root initially and it will switch.
#
# User/Group: The name (or # number) of the user/group to run httpd.
# It is usually good practice to create a dedicated user and group
# Running httpd, as with most system services.
#
User nobody
Group nobody
</IfModule>

The above highlighted area is the owner of the directory or file generated by the website. If it is changed to nobody (generic) or the owner of the website, you can ..

Related Article

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.