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

Danyus14's avatar

Problem with Laravel app with server connection production

Hi!, I'm posting this problem because I'm seaching everywhere and I don't find anything related to this.

I have managed to create an web-app in Laravel that connects to a user database and have a user system and several views and controllers, everything seems to be ok at developing level, but we are having some issues with the server-side,

We are using a dedicated hosting in ionos, and we made the develop of that app on Windows with Laragon program and php-artisan-serve commands, I have run several commands for clean and setup the app,

php artisan clear-compiled php artisan view:clear php artisan config:cache php artisan route:cache php artisan cache:clear php artisan optimize I have started the app with

npm run production and php artisan serve 0.0.0.0 host--xxxx and everything it's working fine, but sometimes the app stops working and we have to re build and start laragon and the CMD with the commands again,

we also have communicated to the server owner and they told to us that they dont have problems and also switched to another more powerfull server,

I don't know if laravel could not be develped on windows server-side or we have to use something like Laravel Vapor or Forge

but it's strange because everything works great, on the CDM sometimes shows this error

"An existing connection was forcibly closed by the remote host"

The app connects to the database in another dedicated hosting of the same owner (IONOS)

also i have searched on the apache log and find these errors

[Thu Apr 08 15:54:44.374117 2021] [mpm_winnt:notice] [pid 10168:tid 632] AH00422: Parent: Received shutdown signal -- Shutting down the server. Apache server interrupted...

021] [mpm_winnt:notice] [pid 9900:tid 568] AH00354: Child: Starting 64 worker threads.

[Thu Apr 08 15:54:44.389745 2021] [mpm_winnt:error] [pid 9900:tid 1128] (OS 10038)Se intentó realizar una operación en un elemento que no es un socket. : AH00332: winnt_accept: getsockname error on listening socket, is IPv6 available?

[Thu Apr 08 15:54:46.403265 2021] [mpm_winnt:notice] [pid 9900:tid 568] AH00364: Child: All worker threads have exited.

[Thu Apr 08 15:54:46.450145 2021] [mpm_winnt:notice] [pid 10168:tid 632] AH00430: Parent: Child process 9900 exited successfully.

[Fri Apr 09 07:29:34.136935 2021] [mpm_winnt:notice] [pid 12340:tid 584] AH00455: Apache/2.4.35 (Win64) OpenSSL/1.1.1b PHP/7.2.19 configured -- resuming normal operations

anything that could help? if you need more details tell me and i will reply immediately , thanks everyone!

0 likes
10 replies
Danyus14's avatar

Hi!, thanks for the fast reply,

Yes we are using laragon because we have a dedicated software that runs on windows server OS, so the unique way to develop the app on that server it’s with laragon or Xampp (also tried and have error with both but I thing laragon it’s more stable)

I don’t know if the problem could be this and move to a specific Laravel server deploy like forge or vapor

Thanks!

Snapey's avatar

You just need to learn how to deploy on a web server like apache or nginx. I could not tell what OS your IONOS server uses, but really you should be using Linux.

Danyus14's avatar

I know, the best solution to this would be installing the laravel app on a specific server build for this but I am asking if the problem it’s for the specific server running Windows or what else could it be,

The unique response to this is to change server and it will work perfect?

That are my doubts

Snapey's avatar

There is no problem developing in a windows environment but really you should deploy to a unix server for production.

1 like
Danyus14's avatar

That’s my first option, but I don’t know if the people i work for will be agree with that option facepalm

Wakanda's avatar

@danyus14 as @snapey said you want to deploy your app on Linux something like ubuntu running an Apache or Nginx server and Laragon is only for development.

1 like
Danyus14's avatar

Yes, yesterday I was making research after mr snapey and you reply to my topic and I saw that almost anyone uses that type of server to run, well I will try with that, thanks again!

Wakanda's avatar

@danyus14 if you are not well versed with servers you can try namecheap.com for shared hosting or Laravel forge and digital ocean if you want your own server

1 like
Danyus14's avatar

Many Thanks!, I also viewed that they recommend Laravel Vapor, what it’s better, Vapor or Forge+DO?

Please or to participate in this conversation.