Book Image

Magento 2 Development Cookbook

Book Image

Magento 2 Development Cookbook

Overview of this book

With the challenges of growing an online business, Magento 2 is an open source e-commerce platform with innumerable functionalities that gives you the freedom to make on-the-fly decisions. It allows you to customize multiple levels of security permissions and enhance the look and feel of your website, and thus gives you a personalized experience in promoting your business.
Table of Contents (18 chapters)
Magento 2 Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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...

  1. 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.

  2. 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...