Cannot write files after upgrade
I'm experiencing a problem on my Centos 6.9 server. I've used EasyApache 4 to enable HTTP2 support, but to do this I've had to remove the mod_mpm_prefork and enable either mod_mpm_worker. The install went smoothly and all of my websites appear to be working fine, but all have lost the ability to write new files (e.g. WordPress updates, adding images etc).
I did some research and was told that the issue was SELinux, but what I don't understand it when I revert my changes and re-enable the prefork, it works fine again. Does anybody have any suggestions on what could be causing the issue? I did contact my server hosting company who provide support for my server, but all they did was chmod 777 my uploads directory which is not what I want at all.
Many thanks!
-
Hello, suPHP and/or PHP-FPM with the Event MPM is an alternative that will allow you to use HTTP2 and avoid using insecure permissions for PHP files. There's some discussion of the various options you can use at: Additionally, for information about file permission requirements for PHP handlers and MPM options, please see: Thank you. 0 -
That was my problem. I was still using CGI as my PHP handler. I've changed this globally to PHP-FPM and it is working perfectly. Many thanks for this fast response - it means a lot! 0 -
Hello, I'm glad to see that helped. Thank you for sharing the outcome. 0
Please sign in to leave a comment.
Comments
3 comments