Fixing permissions problems?

cix

Well-Known Member
Nov 6, 2003
74
0
156
Hi,

I´ve removed PHPSUEXEC from one of my servers, but now I´m having permission problems with phpscripts:


Basically:
Warning: fopen(galeria.php) [function.fopen]: failed to open stream: Permission denied in /home/fdf/public_html/crnl/fdf.php on line 56

My file:
-rw-r--r-- 1 fdf nobody 3163 Sep 26 03:47 fdf.php

How can I fix that? if I chmod 777 will open, but I think its not needed?

Thanks for any help;
 

cix

Well-Known Member
Nov 6, 2003
74
0
156
1. Using fopen, fwrite to a file, need I to chmod 777?
2. What would be the correct permissions for the folder that will receive new files? 777 too?

Yet, when a file is uploaded on pure-ftpd, it gets user.user, is that correct?

Thanks
 

cix

Well-Known Member
Nov 6, 2003
74
0
156
But the apache is not working correctly with files chowned user.user (sent from ftp).

Its making me crazy!