Changing File Permissions for Uploads folder (chown and chmod)
I am currently unable to upload images through WordPress without having to change the ‘Uploads’ folder permission to ‘777’.
Obviously this is a security risk, so I’ve just been using FTP to upload images in the meanwhile.
From reading these forums, I think I need to change ownership of the uploads directory to apache and also change permissions so that apache can read, write and execute there too.
However, I have no idea how to do this! (from URL at the bottom of this post), it states that I should:
Log into a terminal as the root user.
Navigate to the folder just above where your WP is installed. Mine is installed to the root directory (httpdocs), so it was at var/www/vhosts/mydomain.com
Type chown -R (your the username from earlier) (your wp directory)/ – for me, chown -R apache httpdocs/. This changes the ownership of the directory to apache.
Navigate to your wp-content folder: httpdocs/wp-content/
Type chmod -R 766 uploads/. This changes permissions so that apache can read, write, and execute there.
How do I “Log into a terminal as the root user.”????????
From Googling, I’ve gathered it has something to do with linux and shell something???? please explain simply, in layman’s terms.
Thanks for your help
- The topic ‘Changing File Permissions for Uploads folder (chown and chmod)’ is closed to new replies.