⛄ Winter Sale — Up to 70% discount for hosting and domains⛄ Winter Sale — Up to 70%
Discover the offer
Frequently Asked Questions • Dev

I need to set up a PHP cronjob. What are the paths to the PHP interpreter?

Learn how to set up a PHP cronjob and the paths to the PHP interpreter on cPanel/WHM and Plesk. Find quick and efficient solutions for VPSs.

Views 929Updated 19 orePublished on 09/02/2019by Sebastian S.

The PHP interpreters that can be used for creating cron jobs are located at the paths:

In the case of the cPanel/WHM (VPS):
/usr/bin/php
/usr/local/bin/php
/opt/cpanel/ea-phpXX/root/usr/bin/php
***XX = PHP version, without a point, example php56

In the case of the Plesk (VPS):
/usr/bin/php
/opt/plesk/php/X.X/bin/php
*** X.X = PHP version, with a point, example php5.6

In the case of the cPanel/WHM (Shared):
/usr/bin/php
/usr/local/bin/php
/opt/alt/phpXX/usr/bin/php
***XX = PHP version, without a point, example php56

Except for special cases (the PHP script explicitly requires a different path than the standard one), it is recommended to use /usr/bin/php

Similar Articles

Views 929
Updated 19 hours ago

Learn how to set up a PHP cronjob and the paths to the PHP interpreter on cPanel/WHM and Plesk. Find quick and efficient solutions for VPSs.

Views 835
Updated 6 years ago

In this article, you will learn the procedure by which .html files are interpreted as .php files by the server.

Views 1,440
Updated 1 year ago

The migration procedure can be a complex one. This article provides you with all the information you need.