wilkesalex
July 18th, 2007, 05:20 AM
Hello, my current apache setup is like this (please ,any recommendations!)
I have the /var/www folder which serves my personal html
i have created a linux user for each of my family. this means that they can access thier own website
http://domain/~user/
tI have a problem with php scripts however - they cant do chmod or mkdir etc. this is the case if i run scripts form a /home/user/ dir or the /var/www dir
i don't really understand apache user and group permissions. my understanding is that i will need to set every folder to www-data 777 in all my /home/user/public_html and my /var/www/ folders. is that correct?
it's really annoying because I cant run any scripts any where on my server that require system operations (like mkdir)
is there an easy way to just make my apache run as root so it can do whatever?
I have the /var/www folder which serves my personal html
i have created a linux user for each of my family. this means that they can access thier own website
http://domain/~user/
tI have a problem with php scripts however - they cant do chmod or mkdir etc. this is the case if i run scripts form a /home/user/ dir or the /var/www dir
i don't really understand apache user and group permissions. my understanding is that i will need to set every folder to www-data 777 in all my /home/user/public_html and my /var/www/ folders. is that correct?
it's really annoying because I cant run any scripts any where on my server that require system operations (like mkdir)
is there an easy way to just make my apache run as root so it can do whatever?