Optimizing the Apache web server
Magento can be run on Apache or Nginx. Configuration files for both systems are available in the code base (.htaccess
and nginx.conf.sample
in the root folder).
The performance of the web server depends on what hardware the server is running. Network card, RAM, disk, OS, and CPU are the most important hardware components that you have to think about when choosing a server.
How to do it...
The first thing to think about is a good operating system to run your web server. It is highly recommended that you use a Linux distribution because it is the standard for PHP applications.
In the recipes of this book, we used an Ubuntu server (a Debian-based Linux distribution).
Tip
Don't use a Windows server to run Magento. It will work, but it is less efficient and you can have issues with file permissions, code, and more.
Update the operating system to the latest stable version. An updated software is safer and faster. Use at least the Apache 2.4. At the time of writing, this...