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

How to install Laravel in WHM/cPanel server

1003

Installing Laravel in a WHM/cPanel server

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 in cPanel is explained in this manual.

To install Laravel dependencies

Before starting with the installation, enable the shell access in the cPanel. Run the following command to download the Composer and also change the directory to bin.

[root@linuxhelp ~]# cd /bin
[root@linuxhelp /bin]# wget https://getcomposer.org/installer 
--2016-09-21 14:20:16--  https://getcomposer.org/installer
Resolving getcomposer.org... 87.98.253.108, 2001:41d0:a:7b19::2
Connecting to getcomposer.org|87.98.253.108|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 293630 (287K) [application/octet-stream]
Saving to: “ installer” 

100%[=================================================================================================> ] 293,630      321K/s   in 0.9s    

2016-09-21 14:20:20 (321 KB/s) - “ installer”  saved [293630/293630]


Now check the compatibility of the installer by running the following command.

[root@linuxhelp /bin]# php installer --check 
All settings correct for using Composer


Once the compatibilty is successfully verified, download the php installer.

[root@linuxhelp /bin]# php installer 
Downloading...
.
.
.
Composer successfully installed to: /bin/composer.phar
Use it: php composer.phar
[root@linuxhelp /bin]# rm -f installer 

After installing the composer, continue as user to proceed further.

Navigate to the cPanel user’ s directory and run the following command to install Laravel.

[user@linuxhelp ~]$ php /bin/composer.phar create-project laravel/laravel --prefer-dist 


After installing the Laravel, point Laravel’ s public directory to public_html directory as a symbolic link as shown below.Before you point it to the public_html directory remove the public_html directory.

[user@linuxhelp /home/user]$ rm -rf public_html
[user@linuxhelp /home/user]$ ln -s laravel/public/ public_html 

Once all the setup is done, open the browser and navigate to the respective domain. In my case " laravel.linuxhelp.com" .

Tags:
ethan
Author: 

Comments ( 3 )

ryandeschaine
Navigate to Software -> EasyApache4
Click the button that says Customize next to Currently Installed Packages
Click PHP Extensions
Search for Fileinfo in the search bar and select the extensions you would like to install
oliverusselldev
Isn't a vps or cloud better than cPanel based shared hosting, especially for Laravel? Shared server are not good for the security and performance of a Laravel app. Whereas, a dedicated server on cloud gives all the resources to your app only, which means better performance and security. If someone who doesn't have sysadmin skill to setup a cloud server, then they can use tools, like Cloudways Laravel hosting platform, to host their app quickly on a cloud server.
jagannatharumugam
Is the download got completed without any interrupt right??
Add a comment

Frequently asked questions ( 5 )

Q

Do I have two domains and two different web hosts on the same cPanel account?

A

No, because the accounts are on different web servers.

You can have multiple domains on one cPanel account if you use addon domains or aliases.

Q

How do I log in to my cPanel interface?

A

How do I log in to my cPanel interface?
To log in to your cPanel interface, enter one of the following URLs in your address bar:

http://example.com:2082

Q

Why the need the Laravel installation on WHM and Cpanel?

A

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 all

Q

Does I change the root user’s default shell?

A

cPanel requires the root user to use the bash shell by default. Other users can use shells that are not bash if the system administrator wishes to make this an option.

Q

How do I log in to my cPanel interface with SSL certificate?

A

To log in to your cPanel interface, enter one of the following URLs in your address bar:
for SSL (more security):
https://example.com:2083

Related Tutorials in How to install Laravel in WHM/cPanel server

Related Tutorials in How to install Laravel in WHM/cPanel server

How to install and configure Zimbra mail server
How to install and configure Zimbra mail server
Jul 1, 2016
How to install Laravel in WHM/cPanel server
How to install Laravel in WHM/cPanel server
Oct 8, 2016
How to check server status in WHM/cPanel
How to check server status in WHM/cPanel
May 25, 2016
How to create and modify a database in WHM/cPanel server
How to create and modify a database in WHM/cPanel server
May 12, 2016
How to Block an IP address in WHM/cPanel
How to Block an IP address in WHM/cPanel
May 6, 2016
How to use Host Access Control in WHM/cPanel
How to use Host Access Control in WHM/cPanel
May 25, 2016
How to backup and restore it through WHM/cPanel
How to backup and restore it through WHM/cPanel
Jul 15, 2016
How to check system health through WHM/cPanel
How to check system health through WHM/cPanel
Jun 25, 2016

Related Forums in How to install Laravel in WHM/cPanel server

Related Forums in How to install Laravel in WHM/cPanel server

WHM cPanel
jayce class=
*WARNING* The option "WHM > Tweak Settings > Restrict outgoing SMTP to root, exim, and mailman (FKA SMTP Tweak)"
May 18, 2017
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
WHM cPanel
hobbs class=
CPanel Update failed
Jun 19, 2018
CentOS
RONY class=
Mysql causes high load on server
Sep 18, 2019
WHM cPanel
andrew class=
Graphical tool for file manager in cpanel
Apr 1, 2017
WHM cPanel
john class=
phpmyadmin is not working in cpanel server
Apr 21, 2017
WHM cPanel
MikeFarr class=
Need help with Apache to serve my websites
May 11, 2020
WHM cPanel
jackson class=
spamd failed : not running in cpanel
Aug 30, 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 David Lopez Guillen ?
Ayuda urgente instale SSL para servidor Opensuse y ahora no funciona tengo servicio web

hola segui este tutorial para tener un certificado ssl y ahora no se ve mi app en la red, espero alguien pueda ayudarme, tengo M9oodle en3.5 en un servidor open suse y ahora no funciona por favor ayuda.

https://www.linuxhelp.com/how-to-create-ssl-certificate-in-opensuse

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.