Temporarily running PHP as root
I want to run some PHP scripts to do some server setup and package install, but want to do it through a browser rather than through SSH.
Does anyone know how to temporarily run PHP as root?
- I tried running apache as root while I run the scripts, but it won't let me.
- I tried sudo from PHP, but it won't let me either.
Other ideas?
If I can't figure it out then I just have to SSH and do a php myscript.php --param1=foo -param2=bar, but I would prefer to do it thought a browser if possible.
|