Access controls mean my website runs as a user that can’t create a directory that is writable by the server; here’s how I fixed it with reference to Updraftplus plugin for WordPress. This fix should work generally.
When apache can’t write to your folders it can often be a permission problem. Usually that means setting the folder to be world-writable – which if you’re like me will make you justifiably nervous, as if you left your car unlocked and your wallet on the seat. In this case – setting up the Updraftplus plugin for WordPress I couldn’t create a directory that the plugin could create files for. See all controls I have direct access to make folders/dir that are owned by my username and group. Apache is running under the username apache in the apache group (pretty normal). Here’s how I worked around it fixing this issue …
A little PHP jigger-pokery means that I can temporarily allow the server, as user:apache, to create a directory. Then one can rescind permissions leaving a directory that the server can still write to:
There we have it. In my specific case the server running as user apache was still able to access the folder created (with owner and group “apache”). If this works for you too, let us know in the comments.
Sorry, comments are closed.