Apache, cPanel, General, Linux, Litespeed

mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

If you are seeing 500 error for the domains intermittently ,check the apache logs. If the error is like below.

==

[Mon Oct 20 15:11:44.915010 2014] [fcgid:warn] [pid 31253:tid 139991593948928] (104)Connection reset by peer: [client 173.xx.xx.xx:57094] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

[Mon Oct 20 16:57:08.367123 2014] [mpm_event:alert] [pid 7639:tid 139991619127040] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread

I have increased the value of parameter “MaxRequestWorkers” in apache configuration to resolve this error.

vi /usr/local/apache/conf/httpd.conf

here you can see a line like below

MaxRequestWorkers 250

Increase the value and restart apache to fix this error.

Standard
cPanel, General, Linux, Litespeed

Reset Litesped admin password

You should need root access to the backend for the server to make this done.

>Login as root via SSH

>Go to the directory by

cd /usr/local/lsws/admin/misc

>Execute the below command

./admpass.sh

I will now prompt for a user like below.Fill the user as “admin” and then it will prompt for the password,from where it can be reset.

===

root@server [/usr/local/lsws/admin/misc]# ./admpass.sh

Please specify the user name of administrator.
This is the user name required to login the administration Web interface.

User name [admin]: admin

===

Standard
cPanel, General, Linux, Litespeed, Php

Max retries has been reached, 503! in Litespeed

Hi Guys,

If you are seeing such an error for particular pages for a website in a Lite speed :

===

2014-09-26 04:10:26.557 [ERROR] [208.xx.xx.xx:43214-0#APVH_xxx.com] Failed to initialize VMemBuf, response body len: 21638041.2014-09-26 04:10:26.558 [INFO]

2014-09-26 04:10:29.710 [INFO] [208.xx.xx.xx:43214-0#APVH_xxx.com] connection to [/tmp/lshttpd/APVH_xxx.com_Suphp.sock.798] on request #0, confirmed, 1, associated process: 682806, running: 1, error: Illegal seek!2014-09-26 04:10:29.711 [NOTICE] [208.xx.xx.xx:43214-0#APVH_xxx.com] Max retries has been reached, 503!

2014-09-26 04:10:29.766 [NOTICE] [208.116.10.33:43214-0#APVH_xxx.com] oops! 503 Service Unavailable

===

Here the error is saying “Max retries has been reached, 503!” so we should check whether litespeed swap directory got filled . The directory is:

/tmp/lshttpd/swap/

You can check this using:

du -sch /tmp/lshttpd/swap/

It might be filled, so clear the files in it and load the page having the error once  more.

Standard