亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

How to install laravel on ubuntu lamp

發布時間:2020-09-29 08:30:44 來源:網絡 閱讀:556 作者:_Mr_Computer_ 欄目:開發技術


http://tutsnare.com/how-to-install-laravel-on-ubuntu-lamp/

How to install laravel on ubuntu lamp (via laravel installer, composer)

Now time of frameworks in php like laravel, codeigniter etc and easy to install php frameworks on local server like lamp, xampp etc. Below we will see installation steps of a php framework laravel on ubuntu lamp. Let’s see How to install laravel on ubuntu lamp via laravel installer and via composer. for this we need some server requirements, some of software installation. Really a fast and handy installation of this new php framework. you will get this in few minutes. In this article (How to install laravel on ubuntu lamp) we are discussing all laravel installation different method need to give some hands and got installed.
We need some system requirements to install laravel framework :

PHP >= 5.4
Mcrypt PHP Extension
OpenSSL PHP Extension
Mbstring PHP Extension

Below are the steps of installing laravel on ubuntu lamp using composer and laravel installer :- first we need to install latest update and upgrade of unbuntu server. so for this run below command at your terminal

sudo apt-get update
sudo apt-get upgrade

After update we need to install php, apche, mysql (if not already installed)

Install php mysql and apache

sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install mysql-server
sudo apt-get install php5-mysql

Now we need to install some of require extension (json, curl, mcrypt etc.) to run and download laravel framework. and then restart apache server to setup all extension.

#installing json extension
sudo apt-get install php5-json
#installing unzip extension
sudo apt-get install unzip
#installing curl extension
sudo apt-get install curl
#installing openssl extension
sudo apt-get install openssl
#installing mcrypt extension
sudo apt-get install php5-mcrypt
#enable mcrypt extension
sudo php5enmod mcrypt
#installing git
sudo apt-get install -y git-core
#enable mod rewrite extension
sudo a2enmod rewrite
#restarting apache
sudo service apache2 restart

After successfully configure all php setup and require extension we need to install composer to download laravel from remote server. for this first command will be for download composer using curl then second one move composer to local user directory for make composer globally use.

# installing composer
curl -sS https://getcomposer.org/installer | php
# move composer globally
sudo mv composer.phar /usr/local/bin/composer
# check composer working
sudo composer

How to install laravel on ubuntu lamp

Now we composer installed successfully on our ubuntu. and then there are two method to install laravel on ubuntu lamp.

1. Via Laravel Installer

2. Via composer

a. create project command.
b. manually download and install(via commands)

I am sharing steps below with terminal command run screenshots that how to install laravel on unbuntu lamp.

1. Via Laravel Installer :-

laravel installer is a new method to install added for laravel 5. it’s much faster method than installing via Composer.

# download installer
  sudo composer global require "laravel/installer=~1.1"
#setting up path
export PATH="~/.composer/vendor/bin:$PATH" 
# change dir where to install
 sudo cd /var/www/html/
# download and installing
sudo laravel new laravelnew
# giving permission
sudo chmod -R 777 laravelnew

How to install laravel on ubuntu lamp

2. Via Composer :-

A. create project command :-

after install composer you can directly install laravel by create-project command and give your destination path where you want to install laravel.

# checking composer is successfully installed
sudo composer
# downloading and install via composer
#composer create-project laravel/laravel --prefer-dist
sudo composer create-project laravel/laravel /var/www/html/laravel3
# setting up writable permission
sudo chmod -R 777 /var/www/html/laravel3

How to install laravel on ubuntu lamp

B. manually download and install(via commands) :-

this is a long method to install laravel in this method we need to download laravel files then extract then move then apply permission and then we need composer install command.

# change directory to /var/www/html/(where i want to create laravel project)
sudo cd /var/www/html/ 
# downloading from github
sudo wget https://github.com/laravel/laravel/archive/master.zip
# unzip downloaded zip
sudo unzip master.zip 
# giving a new name to extract directrory
sudo mv /var/www/html/laravel-master /var/www/html/laravel2
# giving writable permission
sudo chmod -R 777 laravel2
# removing zip file
sudo rm master.zip
# getting project directory where i need to install project
sudo cd laravel2
# installing using composer
sudo composer install

How to install laravel on ubuntu lamp

How to install laravel on ubuntu lamp

Now you are done with how to install laravel on ubuntu lamp. and open url on

http://localhost/yourlaravel and bam.

Now you can enjoy today’s fast php framework. you can get more about this on official site of laravel and see how fast and how many features you are getting. you will really enjoy this php framework.

How to install laravel on ubuntu lamp


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

牡丹江市| 阜南县| 庆阳市| 黔东| 延吉市| 珠海市| 砀山县| 丹东市| 卓尼县| 揭西县| 四子王旗| 玛纳斯县| 卫辉市| 江津市| 太和县| 古蔺县| 大余县| 麻栗坡县| 泰宁县| 错那县| 天津市| 石门县| 精河县| 论坛| 苏尼特右旗| 久治县| 尼玛县| 双牌县| 德化县| 潞城市| 正安县| 钟山县| 兰考县| 石景山区| 延长县| 宁远县| 无极县| 波密县| 许昌县| 綦江县| 和静县|