I run Linux Mint, with Apache2, PHP and MySQL. I've activated modules for Apache so that users'
public_html can be used and that PHP-scripts can be run from them. I installed WordPress in my
~/public_html/wordpress), but it didn't work fully.
When I tried to change the background image or the header image, I got an error message that stated that a directory (either year/month or month/year) - where uploads are stored - could not be created.
Obviously my web server doesn't have permission to create directories - and probably not to create files - in
public_html or its subdirectories (like some directories under
I'm therefore wondering what my options are here. Is there some module I must add or some config file I must fix, so that the web server can write? Or must I perhaps change the owner and/or group of
public_html - and its subdirectories (is there a way to ensure that subdirectories belong to the same owner/group)? ...obviously without locking me out from making changes to my webpage. Suggestions, advice and best practices very welcome.
I know I probably would get less trouble if I installed WordPress as root under
/var/www, but I would prefer to avoid that solution.