• 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 » Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers?

By Abhishek Ghosh March 27, 2023 6:38 pm Updated on March 27, 2023

Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers?

Advertisement

It is common to have a single LAMP-based website on a cloud server so the database and web server are on the same “container”. With the advent of database-as-a-service, some of the web hosts are already offering MySQL, PostgreSQL database servers as separate instances. The question is, to run a WordPress installation, is it practical to have MySQL database on a different server? What are the advantages of having this kind of setup?

If your website or application does face a huge load, then you can quite easily run your site with an Apache web server and database on the same machine. It is just not the easiest step in scaling but also easier to maintain. If your website or application does have a huge load, then you can continue to read the rest of this article.

A WordPress site with 50K hits per month running these two components on separate servers will have a slightly longer page loading time than while running Apache and MySQL on a single server. This is because the number of queries per second is too low and can be easily handled by virtually any quality of hardware! Two server setup does decrease the page loading time, but only when the number of queries per second is enough high to put stress on the machine. Proper caching on the disc is sufficient for a WordPress site with 50K hits per month.

Advertisement

---

 

Advantages of Running Apache Web server and MySQL Database on Separate Cloud Servers

 

Webservers have different hardware requirements than the hardware requirements of MySQL database servers. Database servers require a lot of memory and a faster disk. While Apache web servers require enough memory to cache files. When we need a higher magnitude of resources (24GB of RAM or more) then it is safer to separate them.

Security is a big concern. Technically, it is correct for your database server to be sitting behind a firewall with only a few ports opened to perform data access by another server. When you lose the control of Apache web server as a result of a devastating hacking attempt, your application’s database may be compromised but not the database server. It will not take a lot of time to spin another web server from the backup and make the site online. Working with MySQL takes a lot of time since most of us are not database experts.

Most of the common databases tend to reserve up all the available memory and hold it for use when it wants to use it. This can considerably slow data access. When you separate Apache and MySQL, this problem does not arise.

Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers

 

Conclusion

 

Separating MySQL server from Apache web server decreases the security risk on a setup. However, for a small to a medium website, often the budget is limited and also the manpower working on a server is less. Hence, for small to medium sites, the strategy to separate MySQL server from the Apache web server is optional.

As for scalability, it is easy to add web servers into a cluster to handle increased traffic.

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 Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers?

  • 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 & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Separate MySQL Database Setup on Rackspace Cloud Server

    Here is a Step by Step Guide on How To Setup a Separate MySQL Database Server on Rackspace Cloud Server and Connect From FTP Server Easily.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

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.

Search this website…

 

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

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 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