#How to keep Laravel server running 24/7 on a Raspberry Pi 4?

13 messages · Page 1 of 1 (latest)

runic ridge
#

What could be causing my Laravel server to stop after some hours when running on a Raspberry Pi 4, and how can I ensure that it stays turned on 24/7? I'm currently using the command php8.2 artisan serve --host 192.168.1.5 --port 8888 to deploy the server.

#

i also changed the max_execution_time on the php.ini file from 30 to 0 (when it was 30 the server used to stop faster, now with it set to 0 it should not stop but it stays up more time)

sinful frigate
#

Don't run artisan serve then

#

Make a proper server production like

runic ridge
#

Can't i just do that with artisan

sinful frigate
#

Artisan isn't made for that

runic ridge
#

How then how do i make a proper server production for a Laravel project without using artisan?

tired moss
#

You'll have to install a web server on your raspberry PI such as Apache or Nginx

#

Nginx normally has slightly better performance but it doesn't make too much of a difference imo

runic ridge
#

How do i start the server

sinful frigate
#

There's so many tutorials. Try searching for them. Your question isn't laravel related