Control Web Panel

WebPanel => PHP => Topic started by: adri0610 on July 26, 2023, 08:44:36 PM

Title: Apache stops working after a while?
Post by: adri0610 on July 26, 2023, 08:44:36 PM
I use it for my PHP website, which connects to an external MSSQL database. My problem is that when I haven't accessed my website for a while, it stops working. However, when I log in to the CWP control panel, it starts working again. This issue only occurs when the firewall is active.

Does anyone know how to solve this?
Thank you.
Title: Re: Apache stops working after a while?
Post by: overseer on July 27, 2023, 01:08:07 AM
Does it actually stop working, or is your access to it prevented by the firewall? Have you whitelisted your IP address in /etc/csf/csf.allow?
Title: Re: Apache stops working after a while?
Post by: adri0610 on July 27, 2023, 08:56:57 AM
Hello, thank you for your quick response.
I have investigated further and it appears that it is the MSSQL connection that stops working. Once I log into the cwp panel, it works again. This does not happen if I disable the firewall.