What is a Web Stack?

Pile of books
  • The top element is the application with which the user can interact, while the bottom element is the base: the operating system.
  • The other elements in between are the technology necessary for both the application and the operating system to communicate with each other.
  • L for Linux, the operating system.
  • A for Apache, the web server.
  • M for MySQL, the database server.
  • P for PHP, the programming language.
  • Linux as operating system.
  • PostgreSQL as database server
  • nginx as web server
  • Passenger as an application server
  • Ruby as a programming language
  • Linux is the preferred operating system for serving Ruby applications. It is free, as well as easy to set up and maintain.
  • PostgreSQL is a free and advanced database server. It also has a full-text search engine and an integrated queuing system, making it very convenient for simple websites. That said, for more complex applications we should use more powerful tools for these features. But hey, it’s a good starting point!
  • nginx is Apache’s main competitor. It is very fast and consumes less memory than Apache. Easy to configure and integrated with Passenger, which is the application server for Ruby. It is a great choice.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store