As what I have stated from the title,
I need to install the newest laravel 5.3 in 14.04 server, the composer cannot run because it need PHP 5.6 but in my own server they have 5.5. Either, I have to upgrade the PHP (which I have stuck because I cannot find the right tutorials) or I use Laravel 5.2 which I cannot do it because I have 5.3 in my locals and my GIT repository.
Can anybody help me?
1 Answer
To install PHP 5.6 in Ubuntu 14.04 open the terminal and type:
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php5.6 Install Composer
sudo apt install curl
curl -sS | php
sudo mv composer.phar /usr/local/bin/composer In Ubuntu 16.04 and later composer can be installed from the default Ubuntu repositories. Open the terminal and type:
sudo apt install composer Create Laravel application:
composer create-project laravel/laravel [foldername] Replace [foldername] with the name of the directory you want your new Laravel application installed to. It must not exist before installation. You may also need to add the Composer executable to your system path.
Run Laravel application:
php artisan serve References:
• Laravel 5.3 Installation Documentation
• Laravel 5.3 Homestead Documentation - Laravel Homestead is an official, prepackaged Vagrant box that provides a development environment without requiring you to install PHP, a web server, and any other server software on your local machine.