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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.