iluv8250 Posted August 1, 2009 Share Posted August 1, 2009 I want to execute shell command via php. I using fc9. I set up user apache to run php as root. But I can't execute iptables command (ex start iptables or add rules).what's problem? In /ect/sudoers file has line apache ALL=NOPASSWD: /sbin/iptables. What does it mean? please reply soon. thks all! Quote Link to comment https://forums.phpfreaks.com/topic/168354-how-to-execute-shell-command-on-php/ Share on other sites More sharing options...
corbin Posted August 1, 2009 Share Posted August 1, 2009 Double posting doesn't make people answer more quickly. Quote Link to comment https://forums.phpfreaks.com/topic/168354-how-to-execute-shell-command-on-php/#findComment-888097 Share on other sites More sharing options...
iluv8250 Posted August 1, 2009 Author Share Posted August 1, 2009 Double posting doesn't make people answer more quickly. oh sorry. I thought that my old topic was deleted. Quote Link to comment https://forums.phpfreaks.com/topic/168354-how-to-execute-shell-command-on-php/#findComment-888199 Share on other sites More sharing options...
roopurt18 Posted August 28, 2009 Share Posted August 28, 2009 You have apache running as root, eh? Probably not a good idea to tell anyone which site you administer then. Quote Link to comment https://forums.phpfreaks.com/topic/168354-how-to-execute-shell-command-on-php/#findComment-908090 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.