• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Nginx vs Apache – Which is the Best Webserver for WordPress?

By Abhishek Ghosh May 22, 2023 6:46 am Updated on May 22, 2023

Nginx vs Apache – Which is the Best Webserver for WordPress?

Advertisement

If you are a single person handling few WordPress sites hosted on unmanaged servers, then Apache is the robust option for you. You can always use Nginx on a small cloud server to reverse proxy the Apache server (in the way we have described in this guide). The question is not whether Nginx or Apache is better than the other. The question is about use case, documentations, easy to add new features and fault tolerance.

 

Does Not People Suggests Nginx Over Apache for WordPress?

 

Yes, some of the users suggest Nginx over Apache. Nginx is a light weight asynchronous server with easy configuration file. Most of their claims to support Nginx is biased, sometimes completely wrong.

The configuration checker unit of Apache is robust and all the errors are properly documented. If you face an odd error such as Config variable ${APACHE_RUN_DIR} is not defined, then it is easier to fix. You’ll get a lot of old answers on StackOverflow or individual tech blogs.

Advertisement

---

Nginx is great in certain circumstances. It is great for reverse proxy, great for serving static files, great for installing on Raspberry Pi but it is not optimum for a single dedicated server with enough DDR4 or DDR5 RAM to handle the initial request. Most of us use a CDN to handle the static files. Our question for a WordPress site is about handling PHP. When the matter is about handling PHP and optimizing SSL, Apache is more easy to configure.

There are many web servers which are better than Apache in certain things, for example LiteSpeed.

 

Is an Optimized Apache is Slower for WordPress with SSL/TLS?

 

For a WordPress site with daily 1000 to 10,000 traffic per month, there will be almost no difference between Apache and Nginx.

It is relatively easy to optimize SSL/TLS on Apache. Most of us these days use mod event and PHP-fpm.

Nginx vs Apache - Which is the Best Webserver for WordPress

Illustration: A modern Apache setup is illustrated by www.layerstack.com

The most reliable module for handling PHP is mod prefork but it is too heavy and slow for the high traffic websites. Nginx and Nginx Plus is great around handling a site which mainly serves static files and perform reverse proxy. Also, using Varnish in front of Apache is a good option other than using Nginx in front of Apache.

If your WordPress site has a lot of posts (above 5000) and you publish 2-3 articles per day, then no WordPress cache plugin will be able cache all the posts. The full load will be on MySQL and Apache.

The problems of WordPress can not be solved by just using Nginx. The easiness to setup Nginx becomes the problem when a site starts to face error.

Using Nginx will not dramatically make WordPress use less memory or blazing fast. You should only load the modules you need and do other configuration that will reduce the memory Apache needs. Also, Apache has caching modules for various purposes. Apache supports zillions of dynamic modules.

It is just easy to test certain thing on Apache on the fly and again revert back. You can test mod security, PageSpeed on Apache on the fly.

Nginx is good for the medium to larger companies who have enough number of experienced sysadmins and developers.

 

How Much RAM Usage We Can Expect For Apache and Nginx

 

If you face a traffic spike, then your MySQL will suck a huge RAM and sometimes CPU. If you want to blame just one software for high RAM usage, then it is MySQL.

If your WordPress site has a lot of posts (above 5000) and you publish 2-3 articles per day, use a CDN and cache plugin, then for 5000 hits per day, you need at least a dedicated server with 16GB RAM. Using Nginx or Apache will not change the story.

If you are handling a dedicated server alone, then SSH to the server at least once a day. Consider using some third party server management service for the months when you’ll be busy.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Nginx vs Apache – Which is the Best Webserver for WordPress?

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud

    Here is a Step by Step Guide on Setting Up WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud with All Commands and the Configuration.

  • How to Install WordPress : Ubuntu 16.04, Nginx, PHP7-FPM

    Here is Step by Step Guide on How to Install WordPress on Ubuntu 16.04, Nginx, PHP7-FPM, memcached & Percona MySQL 5.7 on Cloud Server or VPS.

  • Apache to Nginx on Cloud : Checklist

    Here is a checklist for those who want to unlock speed by migrating from Apache to Nginx on Cloud Server but have lesser technical knowledge. Nginx initially will appear scary but actually it is easy to use.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Desktop Publishing (DTP)?June 3, 2023
  • Dynamic WebP Image Delivery in WordPress with Bunny CDNJune 3, 2023
  • Advantages and Disadvantages of Ubuntu Server DistributionJune 2, 2023
  • Typography on the WebJune 2, 2023
  • How to Use JuliaMono Font in Urvanov/Crayon Syntax HighlighterJune 1, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT