Skip to content

Instantly share code, notes, and snippets.

@milon
Last active May 23, 2017 04:52
Show Gist options
  • Save milon/07633d6bb4e94175721c to your computer and use it in GitHub Desktop.
Save milon/07633d6bb4e94175721c to your computer and use it in GitHub Desktop.
Set Up Server for Running Laravel PHP Framework 4.2.16

Set Up Server for Running Laravel PHP Framework 4.2.16


Operating System : Ubuntu 14.04.1

Web Server : Apache 2.4.7

Application Server : PHP 5.5.9

Database Server : Mysql 5.5.40


Update ubuntu repository

sudo apt-get update

Install Apache2

sudo apt-get install apache2

Install OpenSSH

sudo apt-get install openssh-server openssh-client

Install Mysql Server

sudo apt-get install mysql-server-5.6

Install PHP and its modules

sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.0
sudo apt-get install php7.0-mysql

Install Composer

sudo apt-get install curl
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
sudo chmod +x /usr/local/bin/composer

Install Git

sudo apt-get install git

Enable php5-mcrypt

sudo php5enmod mcrypt
sudo service apache2 restart

Enable mod_rewrite module

sudo a2enmod rewrite
sudo service apache2 restart

then edit /etc/apache2/apache2.conf file and change like following

<Directory /var/www/>
	Options Indexes FollowSymLinks
	AllowOverride All
	Require all granted
</Directory>

Install PHPMyAdmin

sudo apt-get install phpmyadmin

Add this lines to /etc/apache2/apache2.conf file.

#Include phpmyadmin
Include /etc/phpmyadmin/apache.conf

Install Laravel

composer create-project laravel/laravel "project-name" --prefer-dist

Install NodeJS and NPM

sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get update
sudo apt-get install nodejs -y

Install bower

npm install -g bower

Install gulp

npm install --global gulp
@waqas-mehmood-pk
Copy link

please update with php7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment