I Need To Run A Shell Script With A PHP Script As Root
- Forums
- 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? [484], Last Updated: Sat May 18, 2024
wallpaperama
Sat Mar 15, 2008
1 Comments
2820 Visits
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
greetz