So I've set up a Wordpress site on my server. The problem I'm having is that Wordpress creates new folders to sort content uploaded from the Dashboard by day. But, somehow the server doesn't have permission to create new folders. How can I set the permissions so that the server will have full creation/read/write permissions in the directory?Also, how can I set it so that the server will automatically have the same permissions over any future subdirectories created in Wordpresses's folder?
Permissions help?
permissions;raspberry pi;raspbian;wordpress
The easiest way to accomplish what you want is to setup the directory where Wordpress was installed like so:$ chmod u+rwx,g+rwxs,o-rwx wordpress$ chown apache.apache wordpressThe above will make sure that any new files or directories that are created under wordpress are always accessible by group apache. You'll want to substitute whatever user/group is being used on your system here. Some distros use user/group www-data instead.To repair any existing directories + files you can use these commands to do that.permissions$ find wordpress -type d -exec chmod ug+rwx,g+s,o-rwx {} \;$ find wordpress -type f -exec chmod ug+rw,o-rwx {} \;ownership$ chown -Rf apache.apache wordpressNOTE: Again you'll want to use your user/group in the chown command above. www-data & www-data are often used on some Linux distros' Apache packages.ReferencesChanging File Permissions