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

HirtLocker128's avatar

All PHP artisan commands freeze when trying to run

I started out trying to run php artisan migrate as I usually do, but it would just hang there in the terminal until timeout error. This now happens with any artisan command that I try and run - nothing will work. I didn't touch any of my config files. Any tips on how to debug this? Thanks a bunch!

0 likes
3 replies
danmatthews's avatar

A timeout error like this sounds like your app could be having trouble connecting to your database - is this on your local machine or a remote server?

Also, if it's on a remote server, is the database on the same server or located elsewhere?

HirtLocker128's avatar

It is on a remote server, and the database is located elsewhere. Would database connection trouble affect all artisan commands, though? I can't even get make or seed to work.

danmatthews's avatar

I think so, one way to test it is to point it to something locally or a sqlite database and try running other artisan commands (if you use sqlite, it's likely that your migrations will fail so don't run artisan migrate, but other commands should.

1 like

Please or to participate in this conversation.