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.

PHP Handler and Performance

Discussion in 'Workarounds and Optimization' started by marcelorp, May 3, 2015.

  1. marcelorp

    marcelorp Member

    Joined:
    Apr 27, 2015
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hello!

    I'm very newbie about that configuration. My clients will run most PHP application write in Laravel 5, Wordpress and others populars CMS wich include upload and update features.

    I'm searching for performance and security.

    What PHP Handler is recommended? And what PHP Modules or Apache Modules are recommended in EasyApache build?

    I read about FastCGI, but that option will require configuration tips, because I don't known about that. And I read about a combo with DSO+Mod_ruid2+XCache, DSO is not secure right?

    Here is some of my questions:

    1 - suPHP, FastCGI or DSO+mod_ruid2+xcache?
    2 - xCache, how can I configure that feature? There is some guide?
    3 - FastCGI, can someone leave a link about the configuration in CPanel?

    Thanks for the atention.

    @EDIT

    I decide to try the FastCGI, I have a 2GB of RAM on Ramnode, and must be ok for some clients. I follow this guide to configure: wiki.mikejung.biz/Fcgid#FCGI_Overview

    But now, how can I known that my webserver is working fine with FastCGI+OPcache?
     
    #1 marcelorp, May 3, 2015
    Last edited by a moderator: May 3, 2015
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,764
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    87
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    If you have a large budget, the perfect combo would be Cloudlinux + Litespeed
     
  4. gnusys

    gnusys Active Member

    Joined:
    Jan 18, 2013
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    DataCenter Provider
    Basically xCache is a php opcode cache like Eaccelerator,APC,ZendOpCache etc .I would suggest that you use ZendOpcache instead of xCache .

    As far as FastCGI/SuPHP/dso+ruid2 is concerned - these are technologies that interface the webserver with the PHP app . If security is not a major concern dso+ruid2 would give you max performance . mod_fcgi* is pretty old technology as since we now have PHP-FPM ..the recommended way is break free apache from process forking workload and use mod_proxy_fcgi to proxy to an external fastcgi app .

    SuPHP is basically security enhancements over CGI and does not support any opcode cache including xcache .

    LiteSpeed is a commercial webserver that will provide you security and speed using their proprietary LSPHP server API .

    You may also want to try the free plugin I developed for use of cPanel with PHP-FPM https://support.sysally.net/projects/ndeploy/wiki

    Note that since I am the plugin dev ..my views may be partial on this.

    Good Luck
     
    jtrag likes this.
Loading...

Share This Page