note 36616 added to function.getmyuid

From: Date: Thu, 16 Oct 2003 13:14:59 +0000
Subject: note 36616 added to function.getmyuid
Groups: php.notes 
Request: Send a blank email to php-notes+get-58691@lists.php.net to get a copy of this message
You may find that when you are creating your directory you aren't giving yourself write permission, check out the umask command. You'll find commands like umask, chgrp and chown are part of php's filesystem module and can be run without superuser access, but you will only be able to modify files if php has the correct permission to access them. We've found the best way to solve problems like this is to run php as a binary and use apache's suexec feature.. This allows us to do virtual hosting where everyone of our customers php scripts runs with their users uid, disk quota, etc. This not only solves problems with file permissions but increases our general level of security. Although this method does have a few disadvantages in terms of speed, etc we haven't had any complaints from customers and are happy that customer's code wont break our servers. ---- Manual Page -- http://www.php.net/manual/en/function.getmyuid.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36616 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36616&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36616&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#58691) next »