Skip to content

PHP interpreter locations

The PHP interpreter path for cron jobs and scripts is:

/usr/local/bin/php

For example, to execute a PHP script in a cron job:

Terminal window
/usr/local/bin/php /home/username/public_html/cron.php

Replace username with your cPanel username.