php selector and mod_fcgid and mod_lsapi per account?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oceanwave
    Junior Member
    Forum Explorer
    • Dec 2024
    • 21

    #1

    php selector and mod_fcgid and mod_lsapi per account?

    Can I install both mod_fcgid and mod_lsapi with easyapache 4 and then use php selector or another means to select whether an account uses mod_fcgid or mod_lsapi as the php handler?
    Or would this be inadvisable?
    I'm interested in evaluating a switch from mod_fcgid to mod_lsapi and wondering if I need to
    1.) switch the server with easyapache from one to the other like I did when I changed from su_php to fcgid, or if there is a way to
    2.) switch individual account(s) over and observe before changing all accounts over
  • bogdan.sh
    Administrator
    • Nov 2016
    • 1252

    #2
    You can install both mod_fcgid and mod_lsapi with EasyApache 4, however, PHP handlers are typically configured globally for each PHP version within WHM MultiPHP Manager.

    This means if you set PHP 8.4 to use fcgi in WHM, all accounts using PHP 8.4 will utilize the fcgi handler. The PHP handlers are per PHP version, not per account.

    However, most likely you utilize both ea-php84 and alt-php84 and you can select different handlers for them:
    Click image for larger version

Name:	Screenshot_20250913_115202.png
Views:	8
Size:	23.6 KB
ID:	40725

    And then select eitner ea-php84 or alt-php84 in WHM > MultiPHP Manager > User Domain Settings tab, the dropdown list. You should give it a try.

    Comment

    • oceanwave
      Junior Member
      Forum Explorer
      • Dec 2024
      • 21

      #3
      Awesome. Thanks.

      Any issue if I use Cloudlinux PHP Selector instead of MultiPHP Manager to set the PHP version per account for the last step?

      (Can I set MultiPHP Manager alt-php 7.4 -> lsapi, ea-php 8.3 -> cgi, and then use Cloudlinux PHP Selector to select alt-php 7.4 for an individual account to run mod_lsapi alt-php 7.4?)

      Comment

      • bogdan.sh
        Administrator
        • Nov 2016
        • 1252

        #4
        There is no way to select ea-php from PHP Selector in user panel, it will work only for alt-php versions. What should work is to set alt-php 7.4 -> lsapi then alt-php 8.3 -> cgi.

        Comment

        Working...