I'm currently running a shared server with the multi PHP manager cPanel extension, so I'm trying to install Laravel 5.7, but I get the following exception:
Could not find package laravel/laravel with version 5.7.* in a version installable using your PHP version 5.6.38.
But when I run php -v
, it outputs the following:
PHP 7.2.11 (cli) (built: Oct 30 2018 20:57:09) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.4, Copyright (c) 2002-2018, by ionCube Ltd.
And if I do a phpinfo()
, I get the following version:
PHP Version 7.0.32
So, as you can see all 3 versions are different and I don't know what is going on, any ideas?
NOTE: I don't have super user permissions, when I run commands with sudo I get the following : sudo: effective uid is not 0, is sudo installed setuid root?