RE: [PHP] rename problem...

From: Date: Thu, 09 Aug 2001 16:25:15 +0000
Subject: RE: [PHP] rename problem...
Groups: php.general 
Request: Send a blank email to php-general+get-62008@lists.php.net to get a copy of this message
Hi Martin, Question: who actually OWNS the document? Does it have your logname and group? If you're trying to do a rename from the server, remember that the server generally runs as "apache" or "nobody"... and to coin a phrase, "nobody" owns nothing. If you're trying to manipulate files in your own home directory (or http_docs or whatever suffices as your servable area), you have just about two choices. Either make the documents you're working with owned by nobody (not really a good idea) or make a virtual web server in Apache that has the appropriate User and Group directives to make that virtual server run "as" you on your behalf. About 5 minutes of httpd.conf configuration and a quick DNS trick. We've all tripped-up on this one at one time or another. It's not much setup either way, but whatever you do, make sure that YOUR security and the security of your server come before all other considerations. Best regards, Bill -----Original Message----- From: Martin [mailto:martin.sandin@plus.idg.se] Sent: Thursday, August 09, 2001 7:20 AM To: php-general@lists.php.net Subject: [PHP] rename problem... Hi! When i'm trying to run this script: <? rename("document.htm", "testing.htm"); ?> I get this error: Warning: Rename failed (Permission denied) in C:\Inetpub\WEBS\mysko\uploads\rename.php on line 4 The directoy has change permissions. What am i donig wrong...? /martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#62008) next »