LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-04-2012, 02:09 PM   #1
paul1107
LQ Newbie
 
Registered: Oct 2011
Posts: 10

Rep: Reputation: Disabled
permission settings for linux server using wordpress


I am running a linux server running apache with centOS

I almost exclusively run wordpress sites on the box, but have been frustrated that any time I want to add say a plugin that requires an folder or a file to be created, the default permission settings dictates that I need to manually create a new folder rather than the wordpress automatically creating one instead.


I know its a security thing, but as I already have a security plugin installed, the risk I think is minimal?

Anyway can anyone advice how I can change the permissions accordingly (i.e. to create files and folders automatically when required)

Thanks!
 
Old 04-04-2012, 02:45 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 207Reputation: 207Reputation: 207
On my Wordpress installations, I arrange for the parent folders to be owned by the www-data group. This way, the web server can create and modify content when it needs to.

As you note, this is also a security hole. It is quite feasible to imagine a simple PHP script which could trash the entire directory by means of the www-data access.

So, be sure to take other precautions, and to limit the www-data ownership to the absolute minimum to accomplish the functionality you are requesting.
 
1 members found this post helpful.
  


Reply

Tags
linux, wordpress


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wordpress permissions on Linux server. peterson.julia Linux - Newbie 3 03-10-2011 09:15 PM
Apache: You don't have permission to access /wordpress/ on this server. IKT Linux - Server 18 08-20-2009 07:41 AM
Permission problem with Wordpress Datakraft Linux - Server 7 06-24-2009 04:06 AM


All times are GMT -5. The time now is 09:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration