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.

Settings for best performance & speed

Discussion in 'Workarounds and Optimization' started by mikefromnz, Feb 10, 2017.

  1. mikefromnz

    mikefromnz Active Member

    Joined:
    Feb 9, 2017
    Messages:
    28
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    New Zealand
    cPanel Access Level:
    Root Administrator
    Hi guys,

    Having quite a hard time deciding on the best setup in Easy Apache for my server, I run a small VPS to offer shared hosting to my clients. Mostly Wordpress blogs and the likes, a couple ecommerce sites too.

    I want the server to be FAST & secure. I see information online about enabling things like suPHP, but I am using Ruid2 as from what I can gather, that is a faster and potentially more secure option these days?

    I also see settings for PHP-FPM in the multiphp admin, but I don't quite understand how to implement (or even if I should?), all sites are set to inherit PHP7, and list PHP-FPM as off, it seems I can't enable it on all sites by default.

    Under PHP Handlers I see "PHP Handlers do not apply to PHP-FPM." and ea-php56 and ea-php70 both list CGI as their handler, and are unable to be changed as there is no other options? I thought CGI was the worst choice?

    I currently have the configuration as follows, please let me know any changes that I should make or if you have any suggestions.

    Code:
    Apache 2.4
    
    config
    
    config-runtime
    
    mod_bwlimited
    
    mod_cgi
    
    mod_deflate
    
    mod_expires
    
    mod_headers
    
    mod_mpm_prefork
    
    mod_proxy
    
    mod_proxy_fcgi
    
    mod_proxy_http
    
    mod_ruid2
    
    mod_security2
    
    mod_ssl
    
    mod_unique_id
    
    tools
    
    PHP 5.6
    libc-client
    
    pear
    
    php-bcmath
    
    php-bz2
    
    php-calendar
    
    php-cli
    
    php-common
    
    php-curl
    
    php-dba
    
    php-devel
    
    php-enchant
    
    php-exif
    
    php-fileinfo
    
    php-fpm
    
    php-ftp
    
    php-gd
    
    php-gettext
    
    php-gmp
    
    php-iconv
    
    php-imap
    
    php-intl
    
    php-ioncube6
    
    php-ldap
    
    php-litespeed
    
    php-mbstring
    
    php-mcrypt
    
    php-mysqlnd
    
    php-pdo
    
    php-posix
    
    php-process
    
    php-pspell
    
    php-snmp
    
    php-soap
    
    php-sockets
    
    php-tidy
    
    php-xml
    
    php-xmlrpc
    
    php-zendguard
    
    php-zip
    
    runtime
    
    PHP 7.0
    libc-client
    
    pear
    
    php-bcmath
    
    php-bz2
    
    php-calendar
    
    php-cli
    
    php-common
    
    php-curl
    
    php-dba
    
    php-devel
    
    php-enchant
    
    php-exif
    
    php-fileinfo
    
    php-fpm
    
    php-ftp
    
    php-gd
    
    php-gettext
    
    php-gmp
    
    php-iconv
    
    php-imap
    
    php-intl
    
    php-ioncube6
    
    php-ldap
    
    php-litespeed
    
    php-mbstring
    
    php-mcrypt
    
    php-mysqlnd
    
    php-opcache
    
    php-pdo
    
    php-posix
    
    php-process
    
    php-pspell
    
    php-snmp
    
    php-soap
    
    php-sockets
    
    php-tidy
    
    php-xml
    
    php-xmlrpc
    
    php-zip
    
    runtime
    
    Others
    apr
    
    apr-util
    
    cpanel-tools
    
    documentroot
    
    libmcrypt
    
    modsec-sdbm-util
    
    php-cli
    
    php-cli-lsphp
    
    profiles-cpanel
    
    
     
    #1 mikefromnz, Feb 10, 2017
    Last edited by a moderator: Feb 11, 2017
  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
    Hello,

    You may find the following thread helpful:

    Wordpress / Prestashop / x Performance

    You can also find a list of system administration services on the following URL if you don't receive sufficient use-feedback:

    System Administration Services | cPanel Forums

    Thank you.
     
  3. 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
    PHP-fpm should be a better option for PHP. Tweak Opcode cache like ZendOpcache and use an Application level cache for improving performance
     
  4. mikefromnz

    mikefromnz Active Member

    Joined:
    Feb 9, 2017
    Messages:
    28
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    New Zealand
    cPanel Access Level:
    Root Administrator
    Thanks, it seems you have to manually enable PHP-FPM on each individual customers site though, or am I missing something?
     
  5. 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
  6. mikefromnz

    mikefromnz Active Member

    Joined:
    Feb 9, 2017
    Messages:
    28
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    New Zealand
    cPanel Access Level:
    Root Administrator
    To be honest that seems really backward, with these days all our services are able to be automated from customer signup, to billing and account creation, package selection etc. How come a better, faster PHP handler needs to be manually enabled per site?

    Is there an alternative option that can be automatically assigned with same or similar benefit? Seems odd!
     
  7. 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
  8. mikefromnz

    mikefromnz Active Member

    Joined:
    Feb 9, 2017
    Messages:
    28
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    New Zealand
    cPanel Access Level:
    Root Administrator
    Thanks for that I will do so. Any other tips about my EasyApache configuration? Loving cPanel so far!
     
    cPanelMichael likes this.
  9. 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
Loading...

Share This Page