Hello all!
I'm trying to restart a service in my fedora installation, from a php local file. So i discovered the shell_exec command, and tried:
shell_exec('service nagios restart')
I also tried shell_exec('sudo restart.sh') where restart.sh has the line "service nagios restart" in it.
The first time i did it, i didn't know about permissions problems, so i discovered then the sudoers file and, using the command shell_exec('whoami'), it returned "apache". Then i added the apache permission line in suoders.
The problem is still the same, i can't seem to restart this service, or any other. Can you help me? Thanks.