crazyheart_1233 Posted September 20, 2011 Share Posted September 20, 2011 Hey all ... I'm trying to develop a certain php interface to configure Cent OS servers but the problem is when i'm trying to execute some commands from PHP such as service network restart i'm getting a return value of 1 the exact same command is returning 0 when executing from the terminal directly i tried to change the sudoer file and to add the apache user to the wheel group and the problem still there need help urgent pls Quote Link to comment https://forums.phpfreaks.com/topic/247502-exec-returning-1-value-urgent/ Share on other sites More sharing options...
gizmola Posted September 23, 2011 Share Posted September 23, 2011 Try redirecting output to a file so you can see what the operating system is reporting. If your server is configured with selinux enabled, sudo will most probably not ever work. Quote Link to comment https://forums.phpfreaks.com/topic/247502-exec-returning-1-value-urgent/#findComment-1272136 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.