Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cloudlinux, EA4 and PHP Handlers. Impossible Triangle?

Discussion in 'CloudLinux' started by luigidelgado, May 4, 2017.

  1. luigidelgado

    luigidelgado Well-Known Member

    Joined:
    Nov 6, 2010
    Messages:
    117
    Likes Received:
    5
    Trophy Points:
    68
    Location:
    Mexico
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello everyone.

    I´ve been working with cPanel servers for around 7 years. EA4 came with some advantages and some disadvantages when trying to add Cloudlinux. Seems to me (please correct me if I am wrong) there is no winner combination here I can have.

    • EA4 Default cPanel configuration will install the most insecure handler, CGI. Why if cpanel recommends that Ruid2 should run with suPHP suEXEC or ITK would it come with CGI as the default handler??
    • Cloudlinux won't control memory usage if using Ruid2 or ITK. Incompatible also with DSO.
    • Cloudlinux has this compatibility matrix that lets you see that if you are using cPanel (with Apache naturally) there are only "3" compatible options: SuPHP, FCGI and CGI.
    • But there is only one fully compatible option: suPHP. CGI is a no go for security reasons and FCGI is experimental and not compatible with multi PHP versions. This leaves us with only one fully compatible option which is the most inefficient, cachingless and high-CPU handler, suPHP.
    So looks form me that the only option for Cloudlinux compatibility will be to sacrifice performance and security. Am I right or am I missing something?
     
    Duplika and Archmactrix like this.
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. luigidelgado

    luigidelgado Well-Known Member

    Joined:
    Nov 6, 2010
    Messages:
    117
    Likes Received:
    5
    Trophy Points:
    68
    Location:
    Mexico
    cPanel Access Level:
    Root Administrator
    Twitter:
    mod_lsapi looks a great option once I move into Cloudlinux as I see it is only available for Cloudlinux customers, right?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Yes, that's correct.

    Thank you.
     
    luigidelgado likes this.
  5. luigidelgado

    luigidelgado Well-Known Member

    Joined:
    Nov 6, 2010
    Messages:
    117
    Likes Received:
    5
    Trophy Points:
    68
    Location:
    Mexico
    cPanel Access Level:
    Root Administrator
    Twitter:
    Michael,

    So now I am in Cloudlinux. I found LSAPI in the profiles in EasyApache 4.... so I ran one of those Profiles (the Default cPanel one) added some modules I needed including OpCache... But I am back to see the PHP handler to be CGI. Looks like I lost suEXEC and FCGI... How does LSAPI work if it says its a "direct replacement to suPHP and FCGI"? Cant get that.

    Also, how can I tell if LSAPI is working or not?

    Should I still install FCGI to avoid CGI? Its a bit confusing...
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  7. Anoop P Alias

    Anoop P Alias Well-Known Member

    Joined:
    Mar 31, 2015
    Messages:
    76
    Likes Received:
    10
    Trophy Points:
    8
    Location:
    Kochi,Kerala,India
    cPanel Access Level:
    Root Administrator
    You can upload a phpinfo file in the document root and call it via web browser and check the Server API section in phpinfo.
    It should show lsapi if using mod_lsapi . it will show CGI for cgi and SuPHP etc.
     
Loading...

Share This Page