Announcement

Collapse
No announcement yet.

EA4 + Global LSAPI -- can I disable LSAPI on one account?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • EA4 + Global LSAPI -- can I disable LSAPI on one account?

    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

  • #2
    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.

    Comment

    Working...
    X