mikefromnz

Active Member
Feb 9, 2017
32
5
8
Internet
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
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463

mikefromnz

Active Member
Feb 9, 2017
32
5
8
Internet
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!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463