Skip to main content

Installing Laravel in Linux Operating System


To install Laravel in your Linux Operating System you need to follow these steps:
  • First you need to install composer. https://getcomposer.org/download/ 
php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php
php -r "if (hash('SHA384', file_get_contents('composer-setup.php')) === '41e71d86b40f28e771d4bb662b997f79625196afcca95a5abf44391188c695c6c1456e16154c75a211d238cc3bc5cb47') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

  • Download the Laravel installer using Composer:
composer global require "laravel/installer"
  • The setup PATH:
 export PATH="~/.composer/vendor/bin:$PATH"

Once installed, the laravel new command will create a fresh Laravel installation in the directory you specify. For instance, laravel new blog will create a directory named blog containing a fresh Laravel installation with all of Laravel's dependencies already installed. This method of installation is much faster than installing via Composer:
 laravel new blog or sudo laravel new blog

After making your first application run your application by tying this command: php artisan serve

You can also see the laravel documentation here: https://laravel.com/docs/5.2#installing-laravel 




Comments

  1. simple and easy steps to setup Laravel on Windows, check it out here,
    http://justwebcode.blogspot.com/2017/07/how-to-setup-laravel-on-windows.html

    ReplyDelete

Post a Comment

Popular posts from this blog

Document Layout Analysis

Document Layout Analysis is our second exercise. Using the three images above our program needs to do the following: Individual characters are boxed Individual words are boxed Lines are boxed Paragraphs are boxed The paragraphs with margins I used a bottom-up approach for this exercise. It means that I started detecting and boxing the letters to words to line to paragraph and lastly to the paragraph with margin. I created a function for each of the objectives. I used a trial and error approach for determining the appropriate kernel size for the specific function. I have a very simple step for every objectives: Load the images. Assigning of output images Convert images to grayscale Cleaning the images using Otsu's Thresholding method. (with the inversed binarized image) Assigning kernel size (1 or 2 kernels depending in the objective) Morphological Operations (Dilation, Erosion, Closing and Opening) Find the Contours Box the contours (I added some offs

Installation of Windows Subsystem for Linux

Disclaimer: This is the first release of Bash in Windows. It is in "Beta" version meaning it is not complete. Some things will work and some things will not. Prerequisites: Your PC must be running a 64-bit version of Windows 10 Anniversary Update build 14393 or later. To find your PC's CPU architecture and Windows version/build number, open Settings>System>About . Look for the OS Build and System Type fields. If your build is below 14393, try checking for updates Installation In order to run Bash on Windows, you will need to manually: Turn-on Developer Mode Enable the "Windows Subsystem for Linux (beta)" feature via the GUI or the command-line: Turn-on Developer Mode Open Settings -> Update and Security -> For developers Select the Developer Mode radio button This will take a while depending on the speed of you internet connection. Enable the Windows Subsystem for Linux feature (GUI) From Start, search

Upgrading your LAMP Stack to PHP 7 plus PHPMyAdmin Installation

First install python-software-properties package on your system which provides add-apt-repository command then use the following set of commands to add PPA for PHP 7 in your Ubuntu system and install it. sudo apt-get install python-software-properties sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php Then, remove PHP 5 and install PHP 7. sudo apt-get update sudo apt-get purge php5-common -y sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y sudo apt-get --purge autoremove -y You may also need to install modules like PHP7-MySQL, libapache2-mod-php7.0 etc based on your application requirements. Use the following command to find our available php 7 modules. sudo apt-cache search php7-* Above command will list all available PHP7 modules for installation, Let’s begin installation of modules. sudo apt-get install libapache2-mod-php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-mbstring php7.0-mcrypt php7.0-gd *Installing  PHPMyAdmin Change directory to /usr/sha