🍁 Autumn Sale — Up to 70% discount for hosting and domains
activate now
Frequently Asked Questions • Dev

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

Learn how to set a PHP cron job and the paths to the PHP interpreter on Webuzo, cPanel/WHM, and Plesk. Find quick and effective solutions for VPS.

Views 921Updated 7 aniPublished on 09/02/2019by Sebastian S.

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

In the case of the Webuzo (VPS) panel:
/usr/bin/php
/usr/local/apps/phpXX/bin/php
***XX = the PHP version, without a dot, for example php56
***The PHP version installed on Webuzo can be found by using the phpinfo() function in a PHP script.

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

In the case of the Plesk (VPS):
/usr/bin/php
/opt/plesk/php/X.X/bin/php
*** X.X = the PHP version, with a dot, for 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 = the PHP version, without a dot, for example php56

Apart from 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 921
Updated 7 years ago

Learn how to set a PHP cron job and the paths to the PHP interpreter on Webuzo, cPanel/WHM, and Plesk. Find quick and effective solutions for VPS.

Views 830
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,044
Updated 7 years ago

Improve your website speed by setting leverage browser caching in the .htaccess file for Apache servers, using expiration rules for images, video, and static files.