LSPHP many process

remics

Verified User
Joined
Aug 6, 2019
Messages
60
I have problems using OpenLitespeed with directadmin.

https://help.directadmin.com/item.php?id=2095

I have followed the steps of this tutorial, but many lsphp processes are being created and this is wiping out my server's memory by taking it offline.

How do I solve this?

I noticed that when I use litespeed enterprise license trial this problem does not occur.
 
Hello,

Make sure you have the latest OpenLiteSpeed first:

Code:
cd /usr/local/directadmin/custombuild/
./build update
./build openlitespeed

then, if it does not help you will need to check logs for possible attacks.

If your server is not under an attack and you have wordpress-powered sites then let us know.
 
Done!

Code:
[root@xxx custombuild]# ./build openlitespeed
Found /usr/local/directadmin/custombuild/openlitespeed-1.5.3.tgz
Installing OpenLiteSpeed 1.5.3...
Enabling litespeed in systemd...
Checking to ensure /usr/local/lsws/ssl.crt/server.ca is set.
Defaulting to Comodo WAF SecDefaultAction...
Using x.x.x.x for your server IP
Restarting litespeed.
Installation of OpenLiteSpeed no is now complete.
Admin panel address: http://acesso.felintonetwork.com:7080. Please make sure that port 7080 is open in firewall. Panel is read-only.

The problem continues to occur.

This seems to be related to Openlitespeed and not an attack. When I set up using Apache or Litespeed Web Server Enterprise it works perfectly.
 
I executed the commands shown but still giving error.

Here is the log:

[root@xxx custombuild]# tail -f -n30 /var/log/httpd/error_log
2019-08-06 07:04:09.497924 [ERROR] [66.249.83.17:50872-1#website-customer.com-443:lsapi] [Module:Cache] createEntry failed.

What logs should I check?

My server is not under attack, plus when I switch to apache or litespeed enterprise this problem does not occur. Only in openlitespeed do many lsphp processes are created and run out of server memory.

Yes, 96% of these hosting sites run WordPress.
 
If you still want to use OLS then you might follow any possible options listed below:

- Check domains logs under /var/log/httpd/domains/* Your sites might be under brute-force or spam-bots attacks.
- Contact OpenLiteSpeed developers for possible help
- Contact DirectAdmin support for possible help over tickets
- Hire somebody to investigate it.
 
I know the problem. Change these files and set the PHP LSAPI children to max 10 - go for 5 initially. Default value is set to 35 to 100

/usr/local/lsws/conf/httpd-extprocessor.conf PHP_LSAPI_CHILDREN=5
/usr/local/lsws/conf/httpd_config.conf.in PHP_LSAPI_CHILDREN=5
/usr/local/lsws/conf/httpd-phplimits.conf PHP_LSAPI_CHILDREN=5


Restart service and try then.

Version 1.6 will have same "engine" for processing like enterprise edition. Spent weeks for solving this issue and best possible solution is the above.
This info is from openlitespeed dev.
 
Last edited:
You are awesome!
Thanks!

Let me know if it works out or you. I have switched to enterprise license and waiting for 1.6 which will operate and control better as enterprise edition.
Was a little bit difficult to "tune" it correctly to own environment. You may need to lower the values if your server has limited RAM.

Mine had 64GB and 8 cores, i think 5 was ideal for me.
 
Back
Top