Reputation: 13
I am running a self-administrated 1and1 dedicated server:
CentOS 6.10 (Final)
Linux 2.6.32-504.30.3.el6.x86_64
and getting the following error: "PHP Fatal error: Your PHP version must be equal or higher than 5.6.0 to use CakePHP". My initial thought is I have missed setting the path for PHP somewhere. I have tried checking/changing the following things, and I'm not sure what else to try.
phpinfo()
shows:
PHP Version 7.3.7
php -v
shows:
PHP 7.3.7 (cli) (built: Jul 5 2019 12:52:53) ( NTS )
bin/cake
produces:
PHP Fatal error: Your PHP version must be equal or higher than 5.6.0 to use CakePHP.
Removing from requirements.php:
if (version_compare(PHP_VERSION, '5.6.0') < 0) {
trigger_error('Your PHP version must be equal or higher than 5.6.0 to use CakePHP.' . PHP_EOL, E_USER_ERROR);
}
bin/cake
again after that line removed:
PHP Fatal error: Class 'DateTimeImmutable' not found in /var/www/vhosts/xxxxxxxxxx.com/app/vendor/cakephp/chronos/src/Chronos.php on line 50
which php
shows:
alias php='/opt/plesk/php/7.3/bin/php' /opt/plesk/php/7.3/bin/php
Upvotes: 1
Views: 1050