Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a ubuntu vps I am working on. And I am using the default /var/www/ domain, I am also hosting a SMF forum, None of the Packages are installing and such. I was just wondering what I should chown and chgrp everything so that PHP can modify files in a Apache2 WebServer?

share|improve this question

You're looking at major security issues with this. PHP would require shell access to reboot apache which I don't think it can do considering it would run a restart command in the middle of the page execution. It sounds like you need to look at other alternative.

share|improve this answer
Doesnt pertain to my question? – cdog5000 Nov 10 '10 at 21:38
Ah, I see your question more. It all depends on your user group structure and things. Have you tried temporarily modifying the files to chmod 777 to see if your scripts will run. I'd also check for any errors that might be generated by the installation script. – Webnet Nov 11 '10 at 2:02
Well I came to find out that www-data is the user that apache runs under. – cdog5000 Nov 13 '10 at 17:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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