• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Issue Site is on php 5.6 according to WebGui, but cron runs @ 5.3.3

stoooormie

New Pleskian
Hi, so I have setup Plesk Web Admin edition on my server ( 12.0.18 Update #99 )

I have added my domain XXX.com, and under Hosting settings I have set :
PHP support ( Run PHP as FastCGI Application , PHP version 5.6.30 )

Now everything works dandily fine, but I use Blesta ( a billing portal software ), however, when I run the cron command, I get this error :
( PHP Parse error: syntax error, unexpected '[' in /var/www/vhosts/XXX.com/httpdocs/clients/config/services.php on line 3 )

After chatting with their support, they diagnosed its because my cron job uses PHP 5.3.3 which does not accept that syntax. When I use the command line PHP -i , it shows my server is still using PHP 5.3.3.

From what I understand, my server currently has 2 PHP versions from MultiPHP manager ( 5.3.3 ) & 5.6 .
I have set my domain XXX.com to use 5.6 , and I have set up a scheduled task to run, however it runs with the PHP 5.3.3.

I require some guidance from you gurus.
Thank you in advance !
 
Just use

# /opt/plesk/php/5.6/bin/php

instead of system php:

# /opt/plesk/php/5.6/bin/php -v
PHP 5.6.31 (cli) (built: Sep 1 2017 17:23:26)

# php -v
PHP 5.3.3 (cli) (built: Mar 22 2017 12:17:33)
 
Back
Top