Dynadot

How to upload Laravel project for cPanel

NameSilo
Watch

harrychristian

Restricted (Spam Risk)
Impact
0
Let us understand how to upload a Laravel project for cPanel step by step:

Step 1: First of all, you need to remove the public word from the URL in your laravel project so that you don't need to use the PhP artisan command to access your laravel project and to access it in your normal php project.

Step 2: Open your database using your MySQL Client, export it, and save it to your PC.

Step 3: Now compress your laravel project file into a ZIP file, and if git node modules folders exist in your laravel project, be sure you add them to the zip file.

Step 4: Now login to your cPanel
  • Now after login into your cPanel, create a database and user
  • Add New User
  • Add user to database
Step 5: Now go to the PHP admin file and select the database you have created in Step 4 . And then go to the imported file and then import the database we have exported in step 2

Step 6 : Now open your file manager in cPanel and upload the zip file of your laravel project into the public HTML directory and then extract the zip file. Remember the zip file should be uploaded and extracted directly in the public html folder and not on inside any folder.

Step 7: Now update your database details in the configure file by opening the database. PHP file from the configured folder and update your database name, username, and password into the database.PHP file. Now save the file.

Hence its done.
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back