05-11-2021, 07:13 PM
I believe the username and usergroup that Apache / httpd is running as is actually www-data (both user and group). Or maybe just www? I honestly don't remember what it was on CentOS.
You can identify it via multiple ways: https://www.cyberciti.biz/faq/unix-osx-l...ache-user/
It's been like ages since I used Apache / httpd. Usually using nginx all the way. Much faster and uses less resources.
If you find out the user you need to chown -R username:group /path/to/wp-installation-folder at your WP installation. That should be plenty enough. Always was at least. Works this way fine on Debian / Ubuntu with Nginx.
You will most likely have to run that chown command everytime you upload new stuff manually into the WP directory (through SFTP) to ensure ownership of all files and folders is correct.
You can identify it via multiple ways: https://www.cyberciti.biz/faq/unix-osx-l...ache-user/
It's been like ages since I used Apache / httpd. Usually using nginx all the way. Much faster and uses less resources.
If you find out the user you need to chown -R username:group /path/to/wp-installation-folder at your WP installation. That should be plenty enough. Always was at least. Works this way fine on Debian / Ubuntu with Nginx.
You will most likely have to run that chown command everytime you upload new stuff manually into the WP directory (through SFTP) to ensure ownership of all files and folders is correct.