Book Image

Building a Web Application with PHP and MariaDB: A Reference Guide

By : Sai S Sriparasa
Book Image

Building a Web Application with PHP and MariaDB: A Reference Guide

By: Sai S Sriparasa

Overview of this book

Table of Contents (17 chapters)
Building a Web Application with PHP and MariaDB: A Reference Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Performance optimization for the Apache web server


In this section, we will be going over the different steps to optimize our web server installation. Apache for a good part performs very well out-of-the-box but, as the application grows, we come across latencies or performance issues as the number of requests or transactions increases. A few issues that we will be addressing in this section are:

  • Disabling unused modules

  • Using compression

  • Caching

Disabling unused modules

A default installation of the Apache web server arrives with a huge number of pre-installed modules. This is commonly very helpful for a variety of new projects when the main objective is to get hosted and be available to users quickly. A problem that we would notice as the application grows is the latency in responding to a request. A common cause of this problem is that the Apache modules are loaded into the memory and, if there are any modules that are unused, we can deactivate them and save memory. To get a list of the modules...