I'm running CentOS 6 with Plesk 12.5, and I've installed PHP 5.5.30 for my domains within Plesk... but when connecting to the server via SSH, the PHP version that's being used is 5.4.13
So, naturally, when I run "composer update" , artisan complains and tells me:
Error Output: PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/vhosts/mywebsite.com/platform/artisan on line 31
How can I get around the fact that bash is using a different version of PHP? I've been tinkering with this for over a week...
Thanks!
I think it's because Laravel 5.1 requires PHP >= 5.5.9. This newer version of php supports ::class stuff, and laravel 5.1 uses this for example in the config/app.php to register service providers and facades if i'm not mistaken.
You need to use Laravel 5, i was in the same situation.
I'm trying to install LV5, that's exactly my problem. I just don't know how to get around the fact that I basically can't use SSH...
And I'm not nearly comfortable enough with updating the version of PHP that CentOS is using. This has been such a roadblock for me, and such a time waster. I just want to use LV!
This saved my life:
yum install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum update --enablerepo remi --enablerepo remi-php55
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community