1
vote
1answer
192 views

Allow normal user to run PHP script as root using SUDO

How can I allow a normal user on Ubuntu to run php scripts? sudo php /path/to/script/script.php Basically the script needs to be run as root but the users does not have root privileges on their ...
1
vote
2answers
369 views

Set different PHP UID for Apache VirtualHost

I have many VirtualHosts for different users. How can I set UID for PHP process per VirtualHosts?
0
votes
1answer
47 views

Figure out php user without shell access

Is there a way to figure out which user it is that executes a php-script in a webserver using php-commands? (I don't have shell access to the server running httpd, so I cant use ps.)