What am I missing? Why can I not run this command-line script?
sudo -u apache php scheduled_task.php --help
ls -l
-rw-r--r-- 1 root root 6335 Mar 28 09:32 schedule_task.php
apache can run php without specifying the full path.
I have run this scheduled_task.php script in the past.
I've tried changing the permissions/ownership on the script to no effect.
I've tried specifying the full path to both php and the script to no effect.
I've launched the interactive php (php -a) as the apache user successfully.
sudo -u apache less scheduled_task.php <-- This works.
What am I missing???