Skip to content
COL0

How to publish a WordPress site: hosting, VPS and basic security

WordPress powers a large part of the web, and it is also one of the most attacked sites. Publishing it well is more about maintenance and security than installation.

Written by Victor Barrera

What you need before starting

  • A server or hosting with PHP and MySQL/MariaDB compatible with your WordPress version.
  • A domain and, if you are coming from another host, a copy of your files and your database.

The steps on a VPS, in short

  1. Prepare the server: your own user, SSH keys and firewall (ports 22, 80 and 443).
  2. Install Nginx (or Apache), PHP and MariaDB and create a database and a user just for the site.
  3. Download WordPress and configure wp-config.php with the database details and unique security keys.
  4. Adjust permissions: files belong to one user, and the web server writes only where it must (for example, wp-content/uploads).
  5. Enable HTTPS with Let’s Encrypt and set up the redirect from HTTP.
  6. Harden the installation: disable file editing from the dashboard (DISALLOW_FILE_EDIT) and protect access to wp-admin.
  7. Schedule backups of the database and wp-content, with a copy off the server.
  8. Enable automatic updates for core security and critical plugins.

Common mistakes

  • Installing “free” plugins and themes from unofficial sources.
  • Leaving the admin user with a weak password.
  • Migrating the site without updating the URLs stored in the database.
  • Having no cache and suffering when traffic arrives.

How we help

We set up your WordPress with HTTPS, automatic backups and a secure base, or migrate your current site without losing content.

Frequently asked questions

Managed hosting or a VPS for WordPress?

If you want to forget about the server, managed WordPress hosting includes updates, backups and support. A VPS costs less and gives you control, but you maintain the system.

How do I protect my WordPress from attacks?

Keep the core, themes and plugins updated, remove what you do not use, use long passwords with two-step verification and back up regularly. Most intrusions come through outdated plugins.

Ready to publish your project?

Book your free 30-minute session and leave with a clear plan.

Book your free session