Best WHM /EASYAPACHE4 configuration for wordpress

guarez

Active Member
Jul 27, 2020
33
4
8
Chile
cPanel Access Level
Root Administrator
Hello, I am configuring a WEB server and I want to optimize just to use it with wordpress, I wanted to know your experience configuring EASYAPACHE4, which has been the best configuration, I send mine, but only as an example, since I am still testing ( jmeter)

Broadly speaking, I have activated MPM event and removed several modules that are not necessary for wordpress, I still have to decide which cache option to leave (memcached, opcache, etc)

PS: Later I will ask you for optimizations for mysql and some caching system like varnish.

Apache 2.4
  • config
  • config-runtime
  • mod_brotli
  • mod_bwlimited
  • mod_cgid
  • mod_deflate
  • mod_expires
  • mod_headers
  • mod_http2
  • mod_mpm_event
  • mod_pagespeed
  • mod_proxy
  • mod_proxy_fcgi
  • mod_proxy_http
  • mod_proxy_wstunnel
  • mod_security2
  • mod_ssl
  • mod_suexec
  • mod_suphp
  • mod_unique_id
  • mod_version
  • tools
PHP 7.2
  • build
  • libc-client
  • pear
  • php-bcmath
  • php-bz2
  • php-calendar
  • php-cli
  • php-common
  • php-curl
  • php-dba
  • php-devel
  • php-exif
  • php-fileinfo
  • php-fpm
  • php-ftp
  • php-gd
  • php-gettext
  • php-iconv
  • php-imap
  • php-intl
  • php-litespeed
  • php-mbstring
  • php-mysqlnd
  • php-opcache
  • php-pdo
  • php-posix
  • php-process
  • php-pspell
  • php-soap
  • php-sockets
  • php-xml
  • php-xmlrpc
  • php-zip
  • runtime
PHP 7.3
  • build
  • libc-client
  • pear
  • php-bcmath
  • php-bz2
  • php-calendar
  • php-cli
  • php-common
  • php-curl
  • php-dba
  • php-devel
  • php-exif
  • php-fileinfo
  • php-fpm
  • php-ftp
  • php-gd
  • php-gettext
  • php-iconv
  • php-imap
  • php-intl
  • php-litespeed
  • php-mbstring
  • php-mysqlnd
  • php-opcache
  • php-pdo
  • php-posix
  • php-process
  • php-pspell
  • php-soap
  • php-sockets
  • php-xml
  • php-xmlrpc
  • php-zip
  • runtime
PHP 7.4
  • build
  • libc-client
  • pear
  • php-bcmath
  • php-bz2
  • php-calendar
  • php-cli
  • php-common
  • php-curl
  • php-dba
  • php-devel
  • php-exif
  • php-fileinfo
  • php-fpm
  • php-ftp
  • php-gd
  • php-gettext
  • php-iconv
  • php-imap
  • php-intl
  • php-litespeed
  • php-mbstring
  • php-mysqlnd
  • php-opcache
  • php-pdo
  • php-posix
  • php-process
  • php-pspell
  • php-soap
  • php-sockets
  • php-xml
  • php-xmlrpc
  • php-zip
  • runtime
Additional Packages
  • apr
  • apr-util
  • brotli
  • cpanel-tools
  • documentroot
  • libcurl
  • libicu
  • libnghttp2
  • libxml2
  • libzip
  • modsec-sdbm-util
  • nghttp2
  • oniguruma
  • oniguruma-devel
  • openssl11
  • php-cli
  • php-cli-lsphp
  • profiles-cpanel
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,309
363
Houston
There are a number of threads on this subject already which you might want to check out:

 

yesgeek

Member
Feb 3, 2020
9
0
1
Miami
cPanel Access Level
Website Owner
There are a number of threads on this subject already which you might want to check out:

These articles seem to be a bit outdated and don't contain very much information. Most of the articles just keep repeating that every use case is different.

Is there any more recent threads that provide recommendations for Wordpress server?

Is there any other resources available?
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
963
437
363
cPanel Access Level
DataCenter Provider
it's a couple of years old, but this may help: Which PHP extensions are needed to run a fully operational WordPress site? It gives a list of required and options modules.

As per the other replies, no one is going to be able to tell you the 'optimal' list. It all depends on your site and your requirements. Optimal for a WordPress site that is basically static content is quite different than a large WordPress site with WooCommerce and 100's of products.
 
  • Like
Reactions: cPDavidL

yesgeek

Member
Feb 3, 2020
9
0
1
Miami
cPanel Access Level
Website Owner
That's a good article thank you!

Do you know if I go into Woo Commerce if it will prompt me to any packages that are required?

I know that some of themes I've used in the past have a "Server section" that show you what packages they recommend installing or require.

Is there any security vulnerabilities or performance hits I would take by enabling all packages?

Could I disable all packages that contain mail if I'm not using the server to send any emails like php74-libc-client or will this not allow me to get notifications from plugins like wordfence or break functionality of gravity forms login forms?

Thanks for your help
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
963
437
363
cPanel Access Level
DataCenter Provider
You more than likely don't want to enable every package. Most of them will not be needed and it just bloats PHP (i.e. causes it to need more memory).

For detailed WordPress questions your prob. a lot better off asking in the Wordpress forums vs here. Most of the people here are looking to make things work for all sites on a server, not for a single site (that it sounds like you are talking about).
 
  • Like
Reactions: cPDavidL