Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

izshreyansh's avatar

App deployment

Is there any video or tutorial on how to deploy laravel app on regular Linux server (not fortrabbit) please?

0 likes
10 replies
izshreyansh's avatar

will i have to use php artisan serve command via SSH?

bashy's avatar

What do you mean by deploy? Do you want to auto deploy via git pushes or just installing Laravel via files?

izshreyansh's avatar

I have laravel application ready on local server, i want to take it online on shared hosting service via cpanel. Is there any step by step instructions? i am not familiar with forge or GIT, is there any way i can take my laravel site/app online without knowledge of those things?

christopher's avatar

Just upload your APP to your Server with your cPanel FTP ? If you dont know how to upload something to a server, then learn first the basics ..

izshreyansh's avatar

Of course i know how to upload, So then i just go to ssh and provide php artisan serve right?

christopher's avatar

apparently not. Why should you do php artisan serve on your Server? With php artisan serve you start the build in webserver.

Just upload your app to your FTP and let the server points to the /public directory as described in the Docs.

What did you tried so far?

bashy's avatar

Use a web server software to serve the files, not built-in PHP server via artisan serve...

Learn about hosting websites on Linux with Apache/Nginx/Litespeed/etc first.

iffifan's avatar

It is simple bro. Just upload files.. Add new database.. Update environment variables.. And it should work if there is no special server requirements of your code.

Please or to participate in this conversation.