cd ~
$ sudo curl -sS https://getcomposer.org/installer | sudo php
$ sudo mv composer.phar /usr/local/bin/composer
2) create softlink in usr/bin to access it from any where
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer
3) Upgrade php version to 7.1
4) Install laravel using composer.
composer global require "laravel/installer"
sudo yum install -y php70-zip //ext-zip was missing after php7.0 installed.
5) create softlink of laravel command to access it from any directory
$ sudo ln -s /root/.composer/vendor/bin/laravel usr/bin/laravel
6) create laravel test project blog
7) Install sudo apt-get install php-xml. in case dom extension is enable but composer gives error as not installed and retry.
8) to run laravel under apache rename the file server.php to index.php
9) copy .htaccess file from public to laravel application folder eg: $under_app_dir> sudo cp public/.htaccess ./
10) give write permission to storage and bootstrap/cache folder in your laravel project.
11) Start xamp if not running and load the app URL.
12) Note: Laravel5.3.x has route file in laravel application /route folder as web.php earlier it was under app/Http/route.php
13) go to project directory and run composer require guzzlehttp/guzzle:~6.0 to download guzzle lib used for REST API.
No comments:
Post a Comment