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

giovane's avatar

Laravel Octane crashes

Hello. Anyone knows how to overcome octane crashing when there is syntax error in some file? Even removing --watch flag, the server cannot reload. I am using the internal artisan web server. Thanks.

0 likes
2 replies
Braunson's avatar

Have you checked the logs to see why it's crashing exactly?

giovane's avatar

@Braunson Using --watch flag with internal web server in development stage seems like not good idea because when you are editing some file and you forget a semicolon, this file is automatically reloaded by php internal server and it is not capable to complete start up because this syntax error. Probably this situation does not happens with Nginx or Apache. I removed this flag and configured the supervisor....got better results. At least my DevContainer is not crashing anymore. Maybe is a better choice always utilize Nginx or other more robust server. I am using Swoole as Octane driver. Thanks.

Please or to participate in this conversation.