• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question php 7.2 default path

Shane O-Mac

New Pleskian
Hi,

We recently updated our client portal from php version 5.6 to 7.2 and our phpinfo file saying its in /opt/plesk/php/7.2 and when we set it we get the error it cant run the cron at all but on our old php 5.6 install its running fine.

any chance anyone could help me out with this please.
 
Try to run your cron task with using full path to PHP7.2 binary - /opt/plesk/php/7.2/bin/php your_script.php
 
Try to run your cron task with using full path to PHP7.2 binary - /opt/plesk/php/7.2/bin/php your_script.php
Hi,

When I try that I get this error

  • Task "/opt/plesk/php/7.2/bin/php -q /var/www/vhosts/mydentalportal.co.uk/httpdocs/index.php cron > /dev/null 2>&1" completed with error in 0 seconds.
 
Back
Top