vote up 0 vote down star

I just recently setup apache, I'm setting up a basic site and right now I'm having permissions issues. Firstly,

/www/ /www/sitename_com

are owned by meder:meder

and the permissions are 755 recursively ( or so I think ).

I setup a virtualhost, now in sitename_com there's a 'foo.php' and I'm trying to fopen ( create a new file ) within that directory.. it would be at

/www/sitename_com/en/file.xml

However Apache complains with:

Warning: fopen(en/file.xml) [function.fopen]: failed to open stream: Permission denied

www-user is Apache right? I need to give it permissions to my user group ( meder:meder .. not really a "group" )..

Thanks in advance.

flag

79% accept rate
This is a question for serverfault – Ciaran Aug 15 at 1:11

migrated to serverfault.com by Diago, splattne Aug 15 at 7:52

This question is server or system administration related, and is a better fit for Server Fault.