• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Install Laravel in Debian

970

To Install Laravel in Debian

Laravel is a PHP framework used to develop PHP based applications in Linux systems. Laravel is especially designed for easy development of web applications. It supports multi-platform and allows the users to develop the MVC web applications. Installation of Laravel Framework in Ubuntu is discussed in this manual.

Installation of Laravel

Before the start installation process, you need to configure the LAMP with the following link.

https://www.linuxhelp.com/how-to-install-lamp-setup-in-ubuntu-15-10/

Install the curl by using the apt-get install command.

root@linuxhelp:~# apt-get install curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libcurl3

The following NEW packages will be installed:
  curl libcurl3
0 upgraded, 2 newly installed, 0 to remove and 27 not upgraded.
Need to get 460 kB of archives.
After this operation, 933 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.debian.org/ jessie/updates/main libcurl3 amd64 7.38.0-4+deb8u5 [259 kB]
Get:2 http://security.debian.org/ jessie/updates/main curl amd64 7.38.0-4+deb8u5 [200 kB]
.
.
.
Unpacking libcurl3:amd64 (7.38.0-4+deb8u5) ...
Selecting previously unselected package curl.
Preparing to unpack .../curl_7.38.0-4+deb8u5_amd64.deb ...
Unpacking curl (7.38.0-4+deb8u5) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libcurl3:amd64 (7.38.0-4+deb8u5) ...
Setting up curl (7.38.0-4+deb8u5) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
root@linuxhelp:~#
next download the composer installer by using curl command
root@linuxhelp:~# curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
Downloading 1.2.2...

Composer successfully installed to: /root/composer.phar
Use it: php composer.phar


Move the composer.phar file to the ' /usr/local/bin/composer' .

root@linuxhelp:~# mv composer.phar /usr/local/bin/composer


Set permission to execute that composer.

root@linuxhelp:~# chmod +x /usr/local/bin/composer


Now move to html directory to install git.

root@linuxhelp:~# cd /var/www/html


Run the following command to install the git.

root@linuxhelp:/var/www/html# apt-get install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  git-man liberror-perl rsync
Suggested packages:
  git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-arch git-cvs git-mediawiki git-svn openssh-server
The following NEW packages will be installed:
  git git-man liberror-perl rsync
0 upgraded, 4 newly installed, 0 to remove and 27 not upgraded.
Need to get 4,942 kB of archives.
After this operation, 24.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.org/debian/ stable/main liberror-perl all 0.17-1.1 [22.4 kB]
Get:2 http://security.debian.org/ jessie/updates/main git-man all 1:2.1.4-2.1+deb8u2 [1,267 kB]
Get:3 http://ftp.debian.org/debian/ stable/main rsync amd64 3.1.1-3 [390 kB]
Get:4 http://security.debian.org/ jessie/updates/main git amd64 1:2.1.4-2.1+deb8u2 [3,262 kB]
Fetched 4,942 kB in 20s (244 kB/s)                                             
Selecting previously unselected package liberror-perl.
(Reading database ... 145620 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.1.4-2.1+deb8u2_all.deb ...
Unpacking git-man (1:2.1.4-2.1+deb8u2) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.1.4-2.1+deb8u2_amd64.deb ...
Unpacking git (1:2.1.4-2.1+deb8u2) ...
Selecting previously unselected package rsync.
Preparing to unpack .../rsync_3.1.1-3_amd64.deb ...
Unpacking rsync (3.1.1-3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u5) ...
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:2.1.4-2.1+deb8u2) ...
Setting up git (1:2.1.4-2.1+deb8u2) ...
Setting up rsync (3.1.1-3) ...
Processing triggers for systemd (215-17+deb8u5) ...
root@linuxhelp:/var/www/html#

Now its time to download the Laravel with the ' git clone'  command.

root@linuxhelp:/var/www/html# git clone https://github.com/laravel/laravel.git
Cloning into ' laravel' ...
remote: Counting objects: 27618, done.
remote: Total 27618 (delta 0), reused 0 (delta 0), pack-reused 27618
Receiving objects: 100% (27618/27618), 7.79 MiB | 147.00 KiB/s, done.
Resolving deltas: 100% (16770/16770), done.
Checking connectivity... done.


Once the git clone is installed, move to the Laravel directory.

root@linuxhelp:/var/www/html# cd laravel/


Run the composer install command to install composer.

root@linuxhelp:/var/www/html/laravel# composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing vlucas/phpdotenv (v2.4.0)
    Downloading: 100%         

  - Installing symfony/polyfill-mbstring (v1.3.0)
    Downloading: 100%         

  - Installing symfony/var-dumper (v3.1.7)
    Downloading: 100%         

  - Installing symfony/translation (v3.1.7)
    Downloading: 100%         

  - Installing symfony/routing (v3.1.7)
    Downloading: 100%         

  - Installing symfony/process (v3.1.7)
    Downloading: 100%         

  - Installing psr/log (1.0.2)
    Downloading: 100%         

.
.
.
laravel/framework suggests installing predis/predis (Required to use the redis cache and queue drivers (~1.0).)
laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (~2.0).)
laravel/framework suggests installing symfony/psr-http-message-bridge (Required to use psr7 bridging features (0.2.*).)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (> =2.4.0)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
phpunit/phpunit suggests installing ext-xdebug (*)
Writing lock file
Generating autoload files
>  IlluminateFoundationComposerScripts::postUpdate
>  php artisan optimize
Generating optimized class loader
Compiling common classes
root@linuxhelp:/var/www/html/laravel#


Immediately, change the owner permission to that Laravel directory.

root@linuxhelp:/var/www/html/laravel# chown -R www-data.www-data /var/www/html/laravel


Set permission to execute that laravel directory.

root@linuxhelp:/var/www/html/laravel# chmod -R 755 /var/www/html/laravel


Rename or copy the .env.example file to .env file.

root@linuxhelp:/var/www/html/laravel# cp .env.example .env
root@linuxhelp:/var/www/html/laravel# chown -R www-data.www-data .env


Create the key file with the php artisan command.

root@linuxhelp:/var/www/html/laravel# php artisan key:generate
Application key [base64:EFk4kXxStK9MYj3W+q/oF7hPnHm6loK5nsmfOMWd/qg=] set successfully.


Restart the Apache service to take effect.

root@linuxhelp:/var/www/html# service apache2 restart


Once the above process is completed, open the browser with IP address to access it.

Laravel

Tags:
isaac
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How to resolve the following error
"composer could not find a composer.json file in /root" during Laravel setup?

A

Please remove and reinstall Composer properly to overcome this error in laravel.

Q

what is the required php modules for Laravel setting?

A

For Laravel setting,
# apt-get install php-cli php-gd php-mbstring php-mcrypt php-zip php-opcache php-xml.

Q

The Laravel View is Not Working On Linux Server?

A

Go to your server.php, and comment this line :
//require_once __DIR__.'/public/index.php';
and make it as

require_once __DIR__.'/index.php';
Now your URL should look like www.linuxhelp.com

Q

What is Laravel?

A

Laravel is a PHP framework used to develop PHP based applications in Linux systems. Laravel is specially designed for easy development of web applications.

Q

Is Laravel platform dependent?

A

Laravel supports multi-platform and allows the users to develop the MVC web applications.

Related Tutorials in How to Install Laravel in Debian

Related Tutorials in How to Install Laravel in Debian

How to install Gparted on Debian 9.0
How to install Gparted on Debian 9.0
Sep 13, 2017
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Sep 19, 2018
How to install and update OpenSSL on Debian 11.3
How to install and update OpenSSL on Debian 11.3
Oct 21, 2022
How to install qBittorrent on Debian 9.0
How to install qBittorrent on Debian 9.0
Sep 8, 2017
How to Install FileZilla in Debian
How to Install FileZilla in Debian
Nov 29, 2016
How to install Nmap on Debian 9.0
How to install Nmap on Debian 9.0
Sep 9, 2017
How to Install Laravel in Debian
How to Install Laravel in Debian
Dec 7, 2016
How to install Wireshark in Debian
How to install Wireshark in Debian
Mar 18, 2017

Related Forums in How to Install Laravel in Debian

Related Forums in How to Install Laravel in Debian

Linux
andrew class=
laravel.log could not be opened: failed to open stream: Permission denied
Apr 28, 2017
Linux
liam class=
[ErrorException] file_get_contents(/var/www/laravel/.env): failed to open stream: No such file or directory
May 2, 2017
MariaDB
ryan class=
E: Unable to locate package mariadb-server
Sep 18, 2017
Php
liam class=
The process /usr/local/bin/php artisan queue:work exceeded the timeout of 60 seconds
Jan 31, 2017
Linux
AadrikaAnshu class=
How to add timestamps to history On Any Linux Machine
Jun 18, 2019
WHM cPanel
victorsamuel class=
[proxy_fcgi:error] [pid 14811:tid 47224278607616] [client 192.168.1.1:50709] AH01071: Got error 'Unable to open primary script: /home/ffmpegdevpnetaxi/ffmpegdevprepo/public/index.php (No such
May 9, 2019
vim
jacob class=
Change true vi-compatible editor from Debian Vim-compatible
Nov 8, 2021
Laravel
jayden class=
laravel command is not found
Feb 16, 2017

Related News in How to Install Laravel in Debian

Related News in How to Install Laravel in Debian

Debian IceDove kicks the bucket after Thunderbird revisits Debian Repositories
Debian IceDove kicks the bucket after Thunderbird revisits Debian Repositories
Feb 28, 2017
Mass update of Jessie - A better alternative to new version?
Mass update of Jessie - A better alternative to new version?
May 8, 2017
750 plus websites exposed due to Laravel debug mode
750 plus websites exposed due to Laravel debug mode
Oct 26, 2019
Debian 9.2 ‘Stretch’ OS is here, download distro now
Debian 9.2 ‘Stretch’ OS is here, download distro now
Oct 9, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help legeek ?
Installation of the call center module

hello

I wish to install a call center in virtual with issabel, I downloaded the latest version of it , but I don' t arrive to install the call center module in issabel. please help me

thanks!

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.