I Need To Run A Shell Script With A PHP Script As Root
- Linux Hosting
- I Need To Run A Shell Script With A PHP Script As Root
i was wondering if there is a way to run a php script at root, if there is please show me how i can run a PHP file as root for all my websites? , Last Updated: Tue Feb 07, 2023
Sat Mar 15, 2008
i was wondering if there is a way to run a php script at root?
im getting an error when i try to create a file or make a directory it keeps telling me i dont have permission to do it
can you help?
//first change the owner of the script file to root:
# chown root scriptname
//then change the permission on the script file to suid with execute permissions for all users:
# chmod 4755 scriptname