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
    • 28

    #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
    • 1268

    #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:	248
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
      • 28

      #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
        • 1268

        #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

        • oceanwave
          Junior Member
          Forum Explorer
          • Dec 2024
          • 28

          #5
          Under the WHM MultiPHP Manager for each php version I'm only seeing the following three options:
          cgi
          lsapi
          none

          cgi is selected by default for each php version.

          However, whether I select cgi or lsapi for an alt-php version, php.info shows:
          Server API CGI/FastCGI

          I have the following apache modules installed under easyapache 4:

          Apache 2.4
          config
          config-runtime
          mod_bwlimited
          mod_cgid
          mod_deflate
          mod_expires
          mod_headers
          mod_hostinglimits
          mod_http2
          mod_lsapi
          mod_mpm_event
          mod_proxy
          mod_proxy_fcgi
          mod_proxy_http
          mod_proxy_wstunnel
          mod_remoteip
          mod_security2
          mod_ssl
          mod_suexec
          mod_unique_id
          mod_version
          tools

          What step have I missed?

          Comment

          • oceanwave
            Junior Member
            Forum Explorer
            • Dec 2024
            • 28

            #6
            I selected the alt-php version using the cloudlinux php selector in the user account's cpanel.
            Under Multi-PHP Manager I do not have PHP-FPM installed and under user domain setting all accounts show inherit (the ea-php83)
            I've been using the cloudlinux php selector to select the alt php version, modules, and settings from within the individual cpanel account for years, so I have not used the WHM MultiPHP Manager much.

            Comment

            • bogdan.sh
              Administrator
              • Nov 2016
              • 1268

              #7
              Well, I see the mod_lsapi as a module, but do you have the liblsapi package? Do you have a green light in WHM > CloudLinux Manager home dashboard?

              Comment

              Working...