I am running CentOS 6.4 and I have installed Wordpress on it. (along with LAMP)
Now the problem is, that I cannot make any write changes to any files in the wordpress editor: eg. header.php, style.css etc. Wordpress says the following where the 'update' button is suppose to be: You need to make this file writable before you can save your changes.
- Now Apache is running as the root user (default)
Here are the permissions on the themes folder where all the above mentioned files lie:
drwxrwxr-x. 5 root bluegig 4096 Jul 7 17:32 themes
drwxrwxr-x. 3 root apache 4096 Jul 7 23:15 uploads
I ran the chmod 775 command on both 'themes' and 'uploads', Now doing a chmod 777 gets me write permissions, but I don't believe that is very safe... Is there any other/better way of doing it?
(bluegig is the name of my domain, don't know why that is there...)
What I can do:
- I can read and execute in Wordpress
- I can upload files into the uploads folder from within wordpress
- Make any changes to files within wordpress (via the editor)
- How do I enable write permissions so that I can modify files in wordpress?
Note, I did not log into an ftp account from within WP.