I'd like to be able to run PHP scripts without needing to use sudo in every command. My user is not root obviously. How can I accomplish this feat? I'm new to Linux, and I have a little knowledge of permissions, but assume I don't.
I thought PHP scripts would be sent to the background and run under a different user that does have root permissions, and the user kicking those scripts off wouldn't need to have the same access. In any case, the PHP scripts will need database read/write access, will need to be able to read/write files, will need access to start/stop the apache web server, and any other task that a typical PHP script does.
If I'm scheduling these scripts with anacron, do I need to do anything differently?