It seems like about 50% of the time I open up a site in LocalWP it gives me some “internal server error”. The first time I encountered this, the solution was to "remove the .maintenance file from the /app/public/ folder.
As far as I’m aware, that’s for “maintenance” mode, which… doesn’t make sense, since I don’t need to hide anything since it’s just my machine and me. It also doesn’t do anything other than cause an error, which I then have to remove the file.
I’ve never had any issues like this in any development environment before and I just want my environment to work. Why are you putting that file there, even after I’ve already removed it. and how do I stop the file from showing up again?
What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc
Could you clarify when you were told that about the .maintenance file? I’m just curious because I haven’t come across that myself so I don’t know if it was for a specific bug or something else going on. Was this here in the forums or elsewhere?
You might check through our performance guide here for now, including the Windows-specific items, to see if anything else helps to prevent these server errors.
I don’t know unfortunately. I’ve looked through my history and can’t find the original source that told me deleting the .maintenance file can help. Either way I just ran into another 500 internal server error so I’ll just start a new post and see where that takes me.
Actually… The server error went away… I tried visiting /wp-admin and it worked, and then I went back to the home page of the site and the error went away. I don’t understand that. Here’s my log file if there’s anything interesting in there. local-lightning.log (645.4 KB)
The .maintenance file is put in place by WP when updating plugins, themes or core, and then removed once the update is complete. If the file persists after an update, it’s likely due to a system error. Have you reviewed your web/php server logs to see if there’s anything relevant there?