How do I upload a laravel project on Cpanel shared hosting?
How do I upload a laravel project on Cpanel shared hosting?
12 Answers
Zip your entire Laravel project and export your DB to sql.
Login to cPanel and navigate to File Manager.
Ensure you’re in the root folder, then click “Upload”
Select your zip file and wait for upload to complete.
Unzip the uploaded file.
Move the content of public to public_html folder.
12 Answers
- Zip your entire Laravel project and export your DB to sql.
- Login to cPanel and navigate to File Manager.
- Ensure you’re in the root folder, then click “Upload”
- Select your zip file and wait for upload to complete.
- Unzip the uploaded file.
- Move the content of public to public_html folder.
How do I deploy laravel on Hostgator?
Show activity on this post.
- STEP 1 Copy your files. Copy your app in a non-public folder, example: /home/foo/myapp.
- STEP 2 Change php version in Cpanel. For laravel 5.2 you need at least php 5.5.
- STEP 3 Make artisan work. php command line may not work, run this command to check php version: php -v.
- STEP 4 clear caches.
How do I deploy laravel 8 project in Cpanel?
If you have a local server like WAMP or XAMPP, this would work to test it out before uploading to our CPanel.
- Create a Laravel Project.
- Refactor the Directory Structure.
- Edit Files to Reflect our New Directory Structure.
- (Optional) Hack to make Storage work like the Default.
- We’re done here.
How do I deploy laravel project in cpanel subdomain?
- Transfer your project to the Cpanel file manager. The first step is to transfer your Lavarel project to the Cpanel file manager.
- Move the public folder.
- Edit index.
- Edit .env.
- Edit index.php.
- Edit .env.