Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Error 503 on PHP websites when LiteSpeed is used  (Read 1295 times)

0 Members and 1 Guest are viewing this topic.

joseletk

  • Guest
Error 503 on PHP websites when LiteSpeed is used
« on: May 05, 2018, 10:46:47 pm »
Issue symptoms

Sometimes PHP websites return Error 503 page when LiteSpeed is used; however, users are not reaching LVE EP limits.

Cause

The issue may be caused by CSF/LFD killing PHP processes. If you have it installed, then check the log:

Code: [Select]
# grep -i kill /var/log/lfd.log
Resolution

To resolve the issue for good, the /etc/csf/csf.pignore file should be modified - add the processes to be ignored:

Code: [Select]
# echo "exe:/usr/local/lsws/bin/lshttpd.5.1.13" >> /etc/csf/csf.pignore
# echo "exe:/usr/local/bin/lsphp" >> /etc/csf/csf.pignore

And restart LFD service:

# service lfd restart
==========================================================================