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 ..