Skip to content
TECH Consult

How does web hosting work?

Your site's files sit on a server that is always online. When someone types your domain, DNS turns it into the server's IP address, the browser asks that server for the page, and the server sends it back.

DNS is the address book. The domain's records say which IP address serves the website, and separate MX records say which server receives the domain's email. That is why the website and the mailboxes can live with different providers, and why changing hosts mostly means changing those records.

What the server does with a request depends on the site. A static site is a set of files, and the server sends back the matching HTML, images and styles. A WordPress page is usually built on request: the server runs PHP code, which reads the content from a MySQL or MariaDB database and assembles the page. That is why WordPress needs a host with PHP and a database, not just storage.

One request, step by step

  • you type yourcompany.ro into the browser
  • your computer asks a DNS server for the domain's IP address
  • the browser opens an encrypted HTTPS connection to the server at that address and checks its certificate
  • the web server reads the domain name from the request, because many sites share the same machine
  • the server returns the page, and the browser then fetches its images, styles and scripts

When a site is slow, the delay can sit at any of these steps. Most often, though, it is in building the page on the server, when PHP and the database have a lot to do or the server is busy.

How sites share one server

On shared hosting, each account has its own folder, its own system user and its own limits on CPU, memory and disk space. The web server looks at the domain name in each request and routes it to the right folder.

Isolation between accounts stops a hacked site from reading another's files, and the limits stop one busy site from slowing down the rest. Models with reserved resources are described under the three types of web hosting.

Email takes a different route

When someone writes to office@yourcompany.ro, their mail server looks up your domain's MX record and delivers the message there. Your mail server checks it for spam and viruses and files it in the mailbox, and the email app on your computer or phone downloads it, usually over IMAP.

When you send, the recipient's server checks your domain's SPF, DKIM and DMARC records to decide whether the message is genuine. If they are missing, your email often lands in spam, which is why these records matter as much as the website itself.

Where the SSL certificate fits

The certificate proves to the browser that the server it reached really answers for the domain requested, and it lets the connection be encrypted. Without one, the browser shows a warning and anything typed into forms travels unencrypted.

On ordinary hosting the certificate is issued automatically for each domain and renews itself before it expires. You only notice it when something goes wrong, such as a domain added without a certificate.

What changes for an online shop

On a brochure site, every visitor can be sent the same page, and a caching plugin keeps it ready-built. In a shop, each visitor has their own basket, prices that may change and their own searches, so the server builds far more pages from scratch.

That is why a shop needs more CPU and memory than a brochure site with the same number of visitors, and reaches the limits of a shared package sooner. You feel it most on sale days, when many people search and order at once.

What the provider does behind the panel

  • installs security updates on the operating system and server software
  • watches server load and blocks obvious attacks
  • takes backups and stores them away from the site
  • replaces failed hardware
  • keeps the machine in a data center with backup power and cooling

Our hosting runs on Dell servers with SSD storage in the INES data center in Bucharest, with nginx, PHP and MariaDB managed through Plesk. A computer at home can host a site too, within the limits described under can I host my own website?.

More on our blogBusiness Web Hosting: What to Check Before You Choose

Sources

  1. 1WordPress requirements wordpress.org/about/requirements/

Updated

Have another question?

Write to us in a few lines. We reply in plain language, in English or Romanian.

Contact us