Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
What are the best linux permissions to use for my website?

I'm having an issue that I can't seem to find an answer for, i've already scoured Google & SF and haven't found an answer, i've fixed this before by changing ownership, but i'm not sure how I did it in the past.

I am doing my WordPress development in a Kubuntu VM, where I have a LAMP setup (installed through tasksel for ease of installation). When I go to try to update/install any plugins (or presumably themes), it does the thing that it asks for the FTP credentials.

All of my production servers run NGINX, so this isn't a huge deal as I know how to set up an LEMP environment to run all of the WP functionality that I need.

I also changed ownership before of the /var/www directory to me (admin user), so I didn't have to type 'sudo' every time that I edited a file, as that is an unnecessary inconvenience.

I'm not completely sure how to fix this, and would REALLY appreciate everyone's help on this.

Thanks in advance

share|improve this question

marked as duplicate by Michael Hampton, mdpc, Ward, John Gardeniers, Khaled Jan 13 '13 at 7:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
If your production server runs nginx, perhaps you should run nginx on your development server as well. –  Michael Hampton Jan 12 '13 at 21:54
    
It really makes no difference for WordPress's purposes, and it takes significantly longer to set up NGINX that the "tasksel" command. Which is why I use apache2 on my local environment, then I move to my NGINX QA environment. Also, I dont think anything there answers my qustion, I am fine with WP permissions, I think it has to do with groups and who apache is running as. –  Zach Russell Jan 12 '13 at 21:56
    
I figured it out sudo chown www-data mysite –  Zach Russell Jan 13 '13 at 0:11

1 Answer 1

You'll need to give the Apache user access to the Wordpress install's directory so it can write to it.

sudo chown www-data (your site dir)

I had the same issue recently and this was the fix.

EDIT: Doh, you've answered your own question already :)

share|improve this answer
    
Yea, Thanks for your help though! I appreciate the answer (confirming I did it right) –  Zach Russell Jan 13 '13 at 3:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.