I am making a system call from php which is
`sudo /usr/bin/perl -pi -e 's/foo/bar/g' /tmp/newxml.xml`;
which works fine in php cli. But would not work in php via browser, because apache does not have required execution permissions. How do I make apache a sudoer to allow to run only /usr/bin/perl ?
I understand that will have to edit /etc/sudoers to do this, but I am not sure how its to be done. Any pointers?
I am running RHEL 5.5