Entry
How can I run php script with my own user permission?
May 23rd, 2002 13:13
Jens Clasen, Min-gyu Cho,
The only way to do this is to change the default-user in Apache's
http.conf. (This does not make much sense)
PHP-Scripts are "executed" using Apache's permissions, this principle is
something you can not change.
If you need to take some action e.g. as SU or admin you could still use
sudo (look at the manual for more information), for anything else you
have to adjust permissions of your files to suit Apache.