Installing Laravel 5.3 on ubuntu server 14.04.5 [closed]

0

Running the composer create-project --prefer-dist laravel/laravel blog command installs Laravel 5.2. My machine is installed with php 5.5.9 but php 5.6.26 is installed on the site. Why is laravel 5.3 not installed?

    
asked by anonymous 27.09.2016 / 18:37

1 answer

3

You are not installing because the Laravel 5.3 documentation makes it very clear:

  

Laravel 5.3 requires PHP 5.6.4 or higher. HHVM is no longer officially supported as it does not contain the same language as PHP 5.6 +.

That is, you need to have a version of PHP 5.6.4 or higher on your machine for Laravel 5.3 to be installed.

Update

I chatted with the AP in the chat and solved the problem. The problem was that the php command was recognizing the PHP version as 5.5.9 , but in fact, since it installed via plesk , it was necessary to run php that was in the Plesk folder, which was /opt/plesk/php/5.6/bin/php . It seems that Plesk is a tool to facilitate the installation of multiple versions of PHP, so it did not affect PHP that was installed by apt-get Linux.

We ran the command below to perform the installation:

/opt/plesk/php/5.6/bin/php composer.phar create-project --prefer-dist laravel/laravel blog

And so, the problem has been solved.

    
27.09.2016 / 19:04