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

Mr_Gautam's avatar

Laravel php artisan serve issue

i have developed a project in Laravel 5.0 . its working fine when i start command 'php artisan serve'. For every time to run this project , i have to run this command . is there any way to run my project without this command.

0 likes
7 replies
usama.ashraf's avatar

Well, that's the server you're using so yes you'll have to start it to run the application.

You could use Apache or Nginx as daemon processes running in the background.

If you're on Linux, you could run php artisan serve in the background too:

screen
php artisan serve
(detach the screen session with Ctrl+A+D)
Mr_Gautam's avatar

on cotrol panel where to run php artisan serve command on shared hosting

usama.ashraf's avatar

Shared hosting? You're in production?

Don't dare use php artisan serve in production.

Mr_Gautam's avatar

i have developed it on local now move to server. locally for testing i use php artisan serve but on shared hosting , major issue to make it live

d3xt3r's avatar

Dear Mr. Gautam, if this is hobby project then its fine, just upload the contents of your app to shared hosting and point the server document root to public folder of your app (assuming its vps and you have the liberty to do that).

else seek professional help if you want to go to production., or be humble and pay $10 to forge, $10 to envoyer and whatever to digital ocean and get it done in no time.

Please or to participate in this conversation.