View Single Post
  #1  
Old 17th March 2011, 15:12
trexen trexen is offline
Senior Member
 
Join Date: Jun 2008
Location: Stockholm
Posts: 169
Thanks: 15
Thanked 3 Times in 2 Posts
Exclamation problem whit rights in /web/

Hi,
Got a customer that complain that his PHP script, se below:

"<?
copy('textfile.php', 'textfile_copy.php');
?>"

then i got this error in webbrowser:

"Warning: copy(textfile_copy.php) [function.copy]: failed to open stream: Permission denied in /var/www/web38/web/copy.php on line 2"

Webroot permission is:

"drwxrwxr-x 11 web38_admin web38 4096 2011-03-17 14:03 web"

If i make a new dir under /wweb/prov/ anf make it chmod 777 it works and the new file getting the following permission and user

"-rw-r--r-- 1 www-data www-data 17 2011-03-17 14:05 textfile_copy.php"


My question is how i can change this so i dont need to use chmod 777?


regards
Marcus Lindberg



Is this tread the solution om my problem also?
http://www.howtoforge.com/forums/showthread.php?t=51782
if it is how would it effect the websites under the installation, and hpw do i revert the installation if it fail?

Last edited by trexen; 17th March 2011 at 15:48.
Reply With Quote
Sponsored Links