How we handle abuse on web hosting

How to update your domain's nameservers

Use MySQL externally

Script Output: user_create_pre.sh

How to setup cron with a different PHP version

I can't connect to DirectAdmin due to error message

How we handle abuse on web hosting

How to update your domain's nameservers

Use MySQL externally

Script Output: user_create_pre.sh

How to setup cron with a different PHP version

I can't connect to DirectAdmin due to error message

How to setup cron with a different PHP version

Noah M.
Last Updated:

Issue

Your script requires a PHP version other than the latest PHP version. Even after changing the PHP version with the PHP Version Selector your cron still runs with the native PHP version (typically the latest).

Solution

Replace /usr/bin/php with the appropriate PHP version below:

/opt/alt/php44/usr/bin/php
/opt/alt/php51/usr/bin/php
/opt/alt/php52/usr/bin/php
/opt/alt/php53/usr/bin/php
/opt/alt/php54/usr/bin/php
/opt/alt/php55/usr/bin/php
/opt/alt/php56/usr/bin/php
/opt/alt/php70/usr/bin/php
/opt/alt/php71/usr/bin/php
/opt/alt/php72/usr/bin/php
/opt/alt/php73/usr/bin/php
/opt/alt/php74/usr/bin/php
/opt/alt/php80/usr/bin/php
/opt/alt/php81/usr/bin/php
/opt/alt/php82/usr/bin/php

Was this article helpful?