EA4 + Global LSAPI -- can I disable LSAPI on one account?
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Scott Neader
  2. 07.09.2017
  3.  Subscribe via email
Recently, CloudLinux made a change to mod_lsapi. From the August 22, 2017 Changelog:

MODLS-422: added ability to disable lsapi while it is enabled globally for EA3;

This is great news (although it was not explained how to do this). However, this is only for EA3. Is it possible when running EA4, with mod_lsapi enabled globally, to disable a single account or domain?

- Scott
Rate this post:
  1. 11.09.2017 07:09:28
  2. # 1
Vladimir Accepted Answer
Posts: 108
Joined: 04.07.2017
Hello Scott,

To disable mod_lsapi for a particular user do the following (EA3):

1) /usr/bin/switch_mod_lsapi --disable-global
2) /usr/bin/switch_mod_lsapi --enable-global
3) service httpd restart
4) check php.conf if it has AddHandler directive for native PHP handler:

- for fcgid: AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml
- for suphp and cgi: AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml

4) After that, go to DocumentRoot /home/username/public_html
5) Add SetHandler directive into .htaccess in order to disable lsapi:
- for fcgid: SetHandler fcgid-script
-for suphp and cgi: SetHandler application/x-httpd-php5

This is a little bit tricky but so far there is no other way. This method works only with EA3.
  • Page :
  • 1

There are no replies made for this post yet.
Be one of the first to reply to this post!
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.