🌼 Spring Sale — Up to 60% discount for hosting and domains
Frequently Asked QuestionsDev

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 428Updated 6 aniPublished on 09/02/2019by Sebastian Szlivka

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

What do IPV4 and IPV6 mean, and what is the difference between them?Frequently Asked Questions /Dev

IPv4 and IPv6 are protocols for identifying devices on networks. IPv4, with 32 bits, faces address exhaustion, while IPv6, with 128 bits, offers many more options.

34
by Sebastian Szlivka
Views 19656
Updated 6 months ago
Published on 24/04/2019
How do I access cPanel?Frequently Asked Questions /cPanel

Learn how to access cPanel: through direct links or the account's IP, depending on the nameserver settings.

10
by Cătălin Adrian
Views 4584
Updated 1 year ago
Published on 28/01/2019
Do you offer SSH access?Frequently Asked Questions /Dev

SSH access is available on certain hosting packages. Find out what the types of access are and the requirements for activating it on Shared and VPS packages.

10
by Sebastian Szlivka
Views 2682
Updated 1 year ago
Published on 06/07/2018
Where can I find out how many visitors my website has had?Frequently Asked Questions /Random

Find out how many visitors your site has through Hostico modules, cPanel, or Webuzo, or use Google Analytics for detailed statistics.

7
by Sebastian Szlivka
Views 3615
Updated 1 year ago
Published on 09/07/2018
How do I check if my IP is listed on a blacklist?Frequently Asked Questions /Dev

Check if your IP is listed on a blacklist to avoid issues with sending emails. Visit https://iblacklist.ro/ for details and assistance.

7
by Cătălin Adrian
Views 3183
Updated 1 year ago
Published on 11/09/2018