• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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