Tonic-_- Posted May 20, 2011 Share Posted May 20, 2011 Tried browsing the web and didn't find much but what's an effective way to execute shell commands as root through php, I know there's exec but I couldn't get it to work the last time I tried. Link to comment https://forums.phpfreaks.com/topic/236922-an-effective-way-to-execute-root-shell-commands/ Share on other sites More sharing options...
trq Posted May 20, 2011 Share Posted May 20, 2011 You will need to configure sudo to allow the apache user to execute the specific commands you are after. Link to comment https://forums.phpfreaks.com/topic/236922-an-effective-way-to-execute-root-shell-commands/#findComment-1217889 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.