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.

Recommend php handler

Discussion in 'EasyApache' started by PabloC, Oct 14, 2017.

  1. PabloC

    PabloC Active Member

    Joined:
    Mar 24, 2015
    Messages:
    38
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Mar del Plata - Argentina
    cPanel Access Level:
    Website Owner
    Hi,

    I have moved to a new dedicated server (PX61-NVMe at Hetzner), with CENTOS 7.4 v66.0.25. My php handler is CGI, but I reckon it is not the best option (I have seen a couple of problems with phpBB). My server hosts mainly Wordpress and phpBB.

    What php handler would you recommend me?

    Thanks!
     
  2. Muhammed Fasal

    Muhammed Fasal Active Member

    Joined:
    Aug 9, 2017
    Messages:
    40
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    Well, I would suggest you go for mod_ruid2 with DSO for better performance and security.

    While SUPHP is the most secure, it is a slower way of running PHP. Upgrading to mod_ruid2 can improve performance. mod_ruid2 is an Apache module that allows all HTTP requests to a domain to run as the owner of that domain instead of as the Apache user, like suPHP but with speedups of running php as a dso. This is all because it is being used with DSO, which is dynamically compiled rather than suPHP, which is statically compiled. OPCode Caching is also possible with mod_ruid2, unlike suphp, so php pages can use xcache or eaccelerator.

    There are some downsides to mod_ruid2, in most cases it is features not being used:
    1) mod_userdir will not work, so /~username/ calls are not possible
    2) tomcat can not be used with mod_ruid2

    The benefits usually far outweight the downsides.
     
    cPWilliamL likes this.
  3. PabloC

    PabloC Active Member

    Joined:
    Mar 24, 2015
    Messages:
    38
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Mar del Plata - Argentina
    cPanel Access Level:
    Website Owner
  4. Muhammed Fasal

    Muhammed Fasal Active Member

    Joined:
    Aug 9, 2017
    Messages:
    40
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    You are welcome! ;)
     
  5. cPWilliamL

    cPWilliamL cP Technical Analyst II
    Staff Member

    Joined:
    May 15, 2017
    Messages:
    257
    Likes Received:
    27
    Trophy Points:
    103
    Location:
    America
    cPanel Access Level:
    Root Administrator
    I am glad to see Muhammed was helpful. DSO with mod_ruid2 is a very efficient handler compared to suPHP. While it wasn't mentioned, one of the other caveats of mod_ruid2 is its incompatibility with CLoudLinux, as well as the fact that, currently, DSO can only be deployed on one PHP version at this time.
     
  6. PabloC

    PabloC Active Member

    Joined:
    Mar 24, 2015
    Messages:
    38
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Mar del Plata - Argentina
    cPanel Access Level:
    Website Owner
    I have a bridge installed in our main site, and talking to the developer, he tells me that it works either with CGI or FCGI, so I have no more options left.

    The new question is: How do I change from CGI to FastCGI?

    Thanks!!
     
  7. PabloC

    PabloC Active Member

    Joined:
    Mar 24, 2015
    Messages:
    38
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Mar del Plata - Argentina
    cPanel Access Level:
    Website Owner
    borrarcgi.jpg

    I ssh apache2ctl -M and cheched that proxy_fcgi_module is on my server.

    Among the warnings I read: The mod_fcgid Apache module is experimental.

    "proxy_fcgi_module" is the same as "mod_fcgi"?

    Could you guide me?
     
  8. hydn79

    hydn79 Active Member

    Joined:
    Feb 1, 2013
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Have you tried PHP-FPM? It now defaults to ondemand pm.
     
  9. cPWilliamL

    cPWilliamL cP Technical Analyst II
    Staff Member

    Joined:
    May 15, 2017
    Messages:
    257
    Likes Received:
    27
    Trophy Points:
    103
    Location:
    America
    cPanel Access Level:
    Root Administrator
    CGI w/suexec may be the easiest method; however, CGI does strip non-standard headers, which can be a bit annoying. FPM and FCGI may require some additional tweaking once enabled(e.g. max_children), depending on the traffic/efficiency of your application. FCGId is still marked as experimental, but I have yet to see any flaws reported with it.

    You can read more about FCGId below:
    Apache Module: FCGId - EasyApache 4 - cPanel Documentation
     
  10. PabloC

    PabloC Active Member

    Joined:
    Mar 24, 2015
    Messages:
    38
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Mar del Plata - Argentina
    cPanel Access Level:
    Website Owner
    Could you recommend me someone to hire to do this, without ruining my server?
     
  11. cPWilliamL

    cPWilliamL cP Technical Analyst II
    Staff Member

    Joined:
    May 15, 2017
    Messages:
    257
    Likes Received:
    27
    Trophy Points:
    103
    Location:
    America
    cPanel Access Level:
    Root Administrator
  12. PabloC

    PabloC Active Member

    Joined:
    Mar 24, 2015
    Messages:
    38
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Mar del Plata - Argentina
    cPanel Access Level:
    Website Owner
    Thanks a lot!
     
Loading...

Share This Page