WordPress Permission on Fedora
-
(I realize this might be a bit long, but I am trying to understand what is going on. )
I am migrating an existing WP 5.8.12 installing on Fedora to a new server with WP 6.9. I used the WP Close plugin to create a backup. When trying to restore the backup on the traget system, I kept getting permissions errors, but basically nothing more that that. No information was displayed about what file or directory.
All of the files and have ownership wwwrun:wwwrun. andas far as I can see permissions on files are rw(664) and for directory rwx(775). Since httpd is running as wwrun, I figure that would be sufficient. Apparently not. I was able to track down a logfile (I forgot which one) which pointed me to a directoy where a discovered that the apache user was having the problems. This was the first time I heard anything about the apache user needing access. Years ago that was the user httpd ran on as it was the Apache package (later Apache2). Changing the group on all of the WP files and directories to apache I was able to restore the backup.From what I have able to see, it seems that php-fpm uses apache. However, ps shows that php-fpm is running as wwwrun. Looking at /etc/php-fpm.d/www.conf, I see the line “group = apache”. So, I think that at least some of the files and directories need the group to be apache, which seems to be confirmed by it working when ichanged the group to apache.
I understand everything at the OS level and know what to do in principle to make it work, but changing the persmission on all of the WP file seems to me to be overkill. Wo the question is what should the permission be, as the default don’t seem to work?
Thanks in advance.
You must be logged in to reply to this topic.