Right now my code is:
nice php /home/user/public_html/process.php
I need to run it as the user "nobody"
If I was at the shell, I'd do su -s /bin/bash nobody first to act as that user.
However, I don't know how to do it inside of the Cpanel CRON jobs... please help!
And to add: The reason I need this is because all of the sudden (after some updates to CentOS) I now am receiving this error on all CRON jobs:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so' - /usr/lib64/php/modules/ssh2.so: cannot open shared object file: No such file or directory in Unknown on line 0
And PHP Functions are not being recognized (like mysql_connect and require_once)
I have tried entering the command to be the direct path to PHP, and still no luck.
Of course, if somebody knows how to rectify this problem in the first place, I'll take that as well!
UPDATE: All errors of php process file when ran from CRON, as requested:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so' - /usr/lib64/php/modules/ssh2.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so' - /usr/lib64/php/modules/ssh2.so: cannot open shared object file: No such file or directory in Unknown on line 0
Warning: require_once(../users/config/application_top.php): failed to open stream: No such file or directory in /home/username/process.php on line 34
Fatal error: require_once(): Failed opening required '../users/config/application_top.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/username/process.php on line 34
The files noted inside require_once() are indeed there, so I have no idea why it's saying this. And, it's worked for months already... Not sure if it was yum update that killed me or what?