logo
  • मेजबानी
    Web Hostingवेब होस्टिंग Web Hostingवर्डप्रेस होस्टिंग Reseller hostingमेजबानी को दुबारा बेचने वाला
  • वीपीएस
    vpsलिनक्स वीपीएस aapanel vpsएएपैनल वीपीएस
  • विंडोज वीपीएस
    windows rdpविंडोज वीपीएस trading vpsट्रेडिंग वीपीएस
  • डोमेन
    domain registerडोमेन रजिस्टर domain transferडोमेन स्थानांतरण domain whoisडोमेन हूइस
  • के बारे में
    contact usसंपर्क करें about usहमारे बारे में blogब्लॉग
  • लॉग इन करें
  • Hindi
    EnglishEnglish arabicArabic KurdishKurdish ItalyItaly TurkishTurkish
  1. Home
  2. Blog
  3. How to deploy laravel project on cpanel

How to deploy laravel project on cpanel

Rozhgur Rozhgur, 01 Apr 2022 | time 6 minutes read | 95 Views
How to deploy laravel project on cpanel

How to deploy Laravel project on cPanel



Table of Contents



  • How to deploy Laravel project on cPanel

  • 19-  After checking your website see shows this error, Because Laravel 9 requires PHP version 8 

  • IF YOUR PROJECT HAS A DATABASE? STILL FOLLOW ME!



Deploy a Laravel application on a shared hosting Cpanel, for example. This article will teach you how to install a Laravel project on shared hosting Cpanel from the ground up. Shared hosting is a form of Web hosting service that allows numerous websites to share the same physical Web server and its resources. This article on how to deploy a laravel app on shared hosting will walk you through the process of deploying a laravel project on shared hosting or Cpanel.


 


1- Select all the files have inside the Laravel project folder, Then compress them into a ZIP


2-  Login to cPanel, Go to File manager


3- Go inside to Public_html 


4- Press Upload from the top list


5-  Click Select file


6- Select the file compressed ZIP of the Laravel project


7- Extract the file uploaded


8- Click Extract files


9- Click Close


10- After extracting you need to remove the ZIP folder uploaded due to visitors not downloading your project folder


11- Press Confirm


12- Click File from the left side of the top


13- Write from the name input, Copy the text below & Then click create a new file

.htaccess


14- Click Settings from the right side top


15- Tick on the Show hidden Files, Then press save


16- Right-click on the .htaccess file and press edit


17- Copy the codes below and paste them to your .htaccess

RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]


18- Press Save changes


19-  After checking your website see shows this error, Because Laravel 9 requires PHP version 8 



20- Go to cPanel first page and find the " Select PHP Version "


21- Change the current version of PHP to 8.0


22- Set version 8.0 as current


23- Check your website now should work!


 


IF YOUR PROJECT HAS A DATABASE? STILL FOLLOW ME!


 


24- Go to Mysql database wizard


25- Write the name of the database


26- when you fill all inputs, Press create user


27-Tick All privileges, Then press make changes after that click the next step


28-  Go back to file manager / Public_html / find the .env file and click right on it then press edit


29- Enter the database information and you have done.

https://www.regxa.com/laravel-hosting


Conclusion


Congratulations! Your Laravel project has been successfully deployed to Cpanel. Try laravel now with REGXA's Laravel hosting.

Popular Posts
How to Install / Uninstall ConfigServer eXploit Scanner (cxs)

How to Install / Uninstall ConfigServer eXploit Scanner (cxs)

Rozhgur Rozhgur, 17 Mar 2022 | time 4 minutes read
The CXS is a commercial product, so you need to purchase a license from their... Read More
How to unblock IP on WHM - Reseller website

How to unblock IP on WHM - Reseller website

Rozhgur Rozhgur, 07 May 2022 | time 2 minutes read
How to unblock IP on WHM - Reseller website A firewall is commonly built to... Read More
Centos clean up disk space

Centos clean up disk space

Rozhgur Rozhgur, 17 Mar 2022 | time 4 minutes read
If you've found this page, it's most likely because you're seeking for a solution to... Read More
Regxa

REGXA की स्थापना वेब होस्टिंग सेवाओं में मूल्य, गति, गुणवत्ता और बुद्धिमान कार्यान्वयन का विश्व का सर्वश्रेष्ठ संयोजन प्रदान करने के लिए की गई थी।

  • Facebook
  • twitter
  • Linkedin
  • youtube
4.9 Average 294 Reviews
वेब होस्टिंग
  • cPanel होस्टिंग
  • वर्डप्रेस होस्टिंग
  • लारवेल होस्टिंग
  • NodeJs होस्टिंग
  • मेजबानी को दुबारा बेचने वाला
वीपीएस
  • वीपीएस होस्टिंग
  • लिनक्स वीपीएस
  • विंडोज वीपीएस
  • ट्रेडिंग वीपीएस
  • एएपैनल वीपीएस
डोमेन
  • डोमेन रजिस्टर
  • डोमेन स्थानांतरण
  • डोमेन हूइस
कंपनी
  • हमारे बारे में
  • संपर्क करें
  • उपयोग की शर्तें
  • सक्रिय रहने की अवधि
© 2022 - रेगक्सा लिमिटेड। सर्वाधिकार सुरक्षित।
Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Bitcoin Tether ethereum shiba inu Doge Lite Coin XRP ADA