Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Dec 04, 2012 9:26 am 
Offline
Newbie

Joined: Tue Dec 04, 2012 9:22 am
Posts: 2
So, in a nutshell wordpress requires certain permissions, and this has changed over time so the online tutorials are contradicting each other.
I'm on centos 6.3 with the latest wordpress.

I ended up doing
chown apache:apache /var/www/html/.htaccess (so it can insert the code for mod_rewrite)

and

chown apache:apache /var/www/html/wp-content/ -R (so it can upload content, pretty useful feature on a CMS :)

All the other permissions are set to what they were prior, ie chmod 755 /var/www/html/

Question: is this 'bad' or 'insecure' and if so why.
I can't for the love of everything that's good figure out a way to make wordpress behave without the above.

Thank you.


Top
   
PostPosted: Wed Dec 05, 2012 5:23 pm 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
In order to upload files via your content management system, the CMS needs write-access to the directory where the files are to be stored. There's no way around that.

Is it secure? It depends on your CMS. If you're running the latest version of Wordpress then you're probably OK... until the next Wordpress exploit is discovered. If you're not, then a malicious person could use a known exploit to upload their content to your server, or do something else perhaps worse.

Kepp your Wordpress up-to-date.

_________________
sleddog


Top
   
PostPosted: Wed Dec 05, 2012 7:35 pm 
Offline
Newbie

Joined: Tue Dec 04, 2012 9:22 am
Posts: 2
Many thanks!


Top
   
PostPosted: Thu Dec 06, 2012 12:45 am 
Offline
Senior Member

Joined: Tue Feb 19, 2008 10:55 am
Posts: 164
to upgrade wordpress, you can use sftp, so you need to set up a user that can sftp in and write to all the wordpress files.

the other way was to have all the wordpress files writeable by apache, but this isn't desirable, so use sftp.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group