Set Apache ExtendedStatus Off to improve performance

Reference: https://www.monitis.com/blog/25-apache-performance-tuning-tips/ Set ExtendedStatus Off – Although very useful, the ExtendedStatus will produce several system calls for each request to gather statistics.  Better to utilize for a set time period in order to benchmark, then turn back off. In /etc/httpd/conf/httpd.conf Then restart Apache

Server Configuration and Tuning for Optimal Server Performance

Here is a summary of server configuration for optimal server performance, site speed, and security for a single ecommerce site dedicated server with 16GB RAM. File locations are based on cPanel EA4 Apache 2.4 Event MPM PHP 5.6 PHP-FPM MariaDB 10.3 All configuration values are defined and tuned based on our actual website usages. E.g….

PHP Realpath Cache

PHP has a feature to cache the realpath resolutions to speed up frequent accesses to the filesystem. Check current realpath cache size using Reference https://haydenjames.io/set-monitor-phps-realpath_cache_size-correctly/ https://tideways.com/profiler/blog/how-does-the-php-realpath-cache-work-and-how-to-configure-it

Enforce HTTPS with Strict Transport Security (HSTS)

Problem Some websites are conceived to only work in HTTPS. In that case, the webmaster sometimes keeps its HTTP version functional with an HTTPS redirection. But this mechanism is not safe and the web site can be the victim of a MITM attack Solution To avoid this, you can indicate browsers that the web site…