Settings for best performance & speed
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.
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
-
I run a small VPS to offer shared hosting to my clients. Mostly Wordpress blogs and the likes, a couple ecommerce sites too.
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.0 -
PHP-fpm should be a better option for PHP. Tweak Opcode cache like ZendOpcache and use an Application level cache for improving performance 0 -
Thanks, it seems you have to manually enable PHP-FPM on each individual customers site though, or am I missing something? 0 -
Thanks, it seems you have to manually enable PHP-FPM on each individual customers site though, or am I missing something?
Yes, that's correct. More information about how PHP-FPM works with EasyApache 4 is available at: PHP-FPM Code and FileSystem Layout for EasyApache 4 - Documentation - cPanel Documentation Thank you.0 -
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! 0 -
Hello, There's actually an open feature request to enable PHP-FPM by default on new accounts at: PHP-FPM enabled by default on account creation I encourage you to vote for this feature and review the existing comments. Note there's also a workaround discussed on the following thread: php-fpm enable ssh command Thanks! 0 -
Thanks for that I will do so. Any other tips about my EasyApache configuration? Loving cPanel so far! 0 -
Thanks for that I will do so. Any other tips about my EasyApache configuration? Loving cPanel so far!
You may also find this document helpful: EasyApache 4 FAQ - EasyApache 4 - cPanel Documentation Thanks!0
Please sign in to leave a comment.
Comments
8 comments