+359 893 560 371 Support 24/7 · sales 9:00–18:00 All services operational
WordPress

How to install WordPress: 4 ways, step by step

How to install WordPress: what you need, the four methods (pre-installed, installer, manual and WP-CLI), installing locally with XAMPP, the first settings and the most common errors.

The MaxBG team · 13 min read
How to install WordPress: 4 ways, step by step

WordPress powers more than 40% of all websites, and installing it takes anywhere from a few minutes to half an hour. Exactly how long depends on your hosting and on the method you use. Some hosts install it for you, with others you go through an installer in the control panel, and sometimes you need to upload and set it up by hand.

In this article you'll see what you need before you start and how to install WordPress using each of the four methods: pre-installed by your host, through an installer, manually and with WP-CLI. You'll also learn how to run it on your own computer for testing, which settings to change right after installing, and how to fix the most common errors.

In short

  • To run WordPress you need a domain, hosting with PHP and a MySQL or MariaDB database, and an SSL certificate.
  • The easiest option is a host that delivers WordPress pre-installed. The next easiest is an installer in the control panel.
  • A manual installation takes five steps: download, upload the files, create a database, connect to the database and run the installer.
  • For testing, WordPress can also be installed locally on your computer, for example with XAMPP.
  • Right after installing, change the permalink settings, the time zone and the administrator's username.

What you need to install WordPress

WordPress is a free, open-source content management system (CMS). The software itself costs nothing, but to work as a website it needs a few things.

  • A domain. The address your site will open on, for example yourcompany.com.
  • Hosting. A server that stores the files and the database. It must support PHP and MySQL or MariaDB.
  • A suitable PHP version. WordPress 7.0, released in May 2026, requires at least PHP 7.4, but PHP 8.4 or newer is recommended for new installations. Newer versions are also considerably faster.
  • A database. MySQL 8.4 or MariaDB 10.11 and newer are recommended.
  • An SSL certificate. Without one, browsers show the site as "not secure". With most hosts today it's free.

If you're still choosing where your site will live, see how to choose WordPress hosting. Your hosting affects not only speed and security but also how easy the installation itself will be.

What you need to install WordPress – domain, hosting, PHP and a database

How to point your domain to your hosting

Before you install WordPress, your domain has to point to your host's server. Otherwise the site won't open on your address, even if the installation went perfectly.

If your domain and hosting are with the same provider, this is usually done automatically. If they're with different providers, change the domain's DNS servers to your host's, or point the A record to the server's IP address. The change spreads in anything from a few minutes to a few hours. You can read more about how records work in our article what is DNS.

The check is simple: when you open the domain in your browser and see your host's default page or an empty folder, the domain is pointing correctly and you can carry on.

The four ways to install WordPress

There are four main methods, listed from the easiest to the most technical. Choose based on the hosting you have and how much control you want.

  • Pre-installed by your host. You do nothing: you get a ready site and login details.
  • An installer in the control panel. You fill in a few fields and press a button. It takes about a minute.
  • Manual installation. You upload the files and set up the database yourself. It takes 15–30 minutes and works on any hosting.
  • With WP-CLI. Installation with a few commands over SSH. The fastest option if you work with the command line.

If this is your first site, choose hosting with WordPress pre-installed or an installer. The result is the same as a manual installation, without the risk of a mistake with the database or file permissions. The manual method and WP-CLI make sense when your host has no installer, when you want full control over the settings, or when you look after many sites and want to automate the work.

Method 1: hosting with WordPress pre-installed

Specialised WordPress hosting usually delivers WordPress already installed and configured. After you order, you receive the admin address (usually yourdomain.com/wp-admin), a username and a password.

The advantage isn't just the time saved. With this kind of hosting, the server is set up specifically for WordPress: a suitable PHP version, caching, login protection and automatic backups. With a manual installation, you have to take care of all of that yourself.

Hosting with WordPress pre-installed – a ready site with no setup

The first thing to do is log in to the dashboard and change the password, unless you chose it yourself when ordering.

Method 2: an installer in the control panel

Many hosts offer an application installer in the control panel. The best known are Softaculous and Installatron. They create the database, upload the files and connect the two automatically.

  1. Log in to your hosting control panel and find the installer or the WordPress icon.
  2. Choose the domain and the folder. If you want WordPress on the main address, leave the folder field empty.
  3. Enter the site name and the administrator's username, password and email.
  4. Click "Install". After about a minute you'll see a link to the dashboard.

Be careful with the username. Installers often suggest admin, and that's the first name bots try when they attack. Choose something else.

Method 3: installing WordPress manually

A manual installation works on any hosting and gives you full control. It's also the best way to understand how WordPress is put together, which helps later when something goes wrong.

Step 1: download WordPress

Download the latest version from the official site, wordpress.org. You'll get a zip archive with around 3,000 files. If you want the dashboard in another language, download the localised version from that language's WordPress site.

Step 2: upload the files to the server

The quickest way is to upload the zip archive itself through your host's file manager and extract it there. If you use an FTP program such as FileZilla, connect over SFTP, extract the archive on your computer first and upload the contents of the wordpress folder, not the folder itself. The index.php file must sit directly in the site's root folder, for example public_html.

Step 3: create a database

In the control panel, create a new database and a user for it, and give the user all privileges on the database. Write down the database name, the username and the password. You'll need them in the next step.

Step 4: connect WordPress to the database

Open the site in your browser. WordPress will ask for the database details: its name, the user, the password and the host (almost always localhost). If you enter everything correctly, it will create the wp-config.php file itself. If it doesn't have permission to write the file, it will show you the contents so you can create it by hand.

Step 5: run the installation

Enter the site title and the administrator's username, a strong password and an email. Click "Install WordPress". A few seconds later you can log in to the dashboard.

One important field in this step is "Search engine visibility". If you tick it, WordPress asks Google not to index the site. That's useful while you're building it, but many people forget to untick it after launch and then wonder why the site doesn't show up in search.

Installing WordPress manually – uploading the files and connecting the database

Method 4: installing with WP-CLI

WP-CLI is the official tool for managing WordPress from the command line. If you have SSH access to the server, you can install WordPress with it in under a minute:

  1. Go to the site's folder: cd /var/www/site.
  2. Download WordPress: wp core download. Add --locale= with a language code if you want another language.
  3. Create the configuration: wp config create --dbname=dbname --dbuser=dbuser --dbpass=password.
  4. Install: wp core install --url=https://yourdomain.com --title="Site name" --admin_user=john --admin_email=john@yourdomain.com. If you don't set a password, WP-CLI will generate a strong one and show it to you.

WP-CLI stays useful afterwards too: it updates the core, plugins and themes with a single command each and lets you manage many sites quickly.

How to install WordPress on your computer

If you want to learn WordPress or test a theme without buying hosting, you can install it locally. The site will only work on your computer, at the address localhost.

  1. Download and install XAMPP, which includes Apache, PHP and MariaDB. It runs on Windows, macOS and Linux.
  2. Start the Apache and MySQL modules from the XAMPP control panel.
  3. Extract WordPress into XAMPP's htdocs folder, for example into htdocs/test.
  4. Open http://localhost/phpmyadmin and create an empty database.
  5. Open http://localhost/test and go through the installation. The database user is root, and the password is usually empty.

There are also simpler tools made specifically for WordPress, such as Local, that do all of this in a few clicks. A local site is great for testing, but once you're ready, you need to move it to hosting so other people can see it.

Installing WordPress on your computer with XAMPP on localhost

How to log in to the WordPress dashboard

After installation, you manage the site from the admin area, also called the dashboard. It opens at yourdomain.com/wp-admin or yourdomain.com/wp-login.php. You enter the username or email and the password you set during installation.

If the address returns an error, the most common reason is that WordPress is installed in a subfolder. In that case the address is yourdomain.com/folder/wp-admin. If you've forgotten your password, use the "Lost your password?" link on the login page. A new password will be sent to the administrator's email.

The first settings after installing

A fresh installation works, but a few settings are worth changing on day one. Some of them are hard to change later without hurting your SEO.

  1. Permalinks. Under "Settings" and "Permalinks", choose "Post name". That makes addresses readable, for example /blog/title/ instead of /?p=123. Do this before you publish anything, because changing it later breaks the old addresses.
  2. Time zone and language. Under "Settings" and "General", choose your city and language. Otherwise scheduled posts will go out at the wrong time.
  3. HTTPS. Make sure the site address in the general settings starts with https://.
  4. Sample content. Delete the sample post, the sample page and the comment.
  5. Themes and plugins. Delete the themes and plugins you won't use. Every unused plugin is a potential vulnerability.
  6. Backups. Turn on automatic backups before you start adding content.

And don't forget about updates. New versions of WordPress, themes and plugins close security holes, so it's important to install them regularly. You can read how to do it safely in our article on how to update WordPress.

How to protect your new site from day one

Bots sometimes start trying the login of a new WordPress site within hours of it going live. They aren't looking for you specifically; they scan the whole internet for weak passwords and outdated plugins. A few simple measures close off most of the openings.

  • Use a long, unique password for the administrator and don't use the username admin.
  • Turn on two-factor authentication with a plugin, so a password alone isn't enough to log in.
  • Only install plugins and themes from the official directory or from trusted developers. Never install "free" copies of paid plugins from unknown sites.
  • Limit login attempts to stop password-guessing attacks.

If you still notice something strange, such as unknown administrators, redirects or spam pages, act quickly. You'll find exactly what to do in our article on a hacked website.

Protecting a new WordPress site from day one

Common installation errors and how to fix them

Most installation problems come down to a few recurring causes.

  • Error establishing a database connection. The database details in wp-config.php are wrong. Check the database name, user, password and host. Often the cause is that the user hasn't been added to the database.
  • A white screen or a 500 error. Usually an incompatible PHP version or a missing PHP module. Check the version in the control panel and the server's error log.
  • A list of files appears instead of the site. The files are in a subfolder, for example public_html/wordpress, instead of directly in the root folder.
  • The site opens without any styling. The address in the settings doesn't match the real one, for example http instead of https, or with www instead of without.
  • I can't upload large files. PHP's upload limit is too low. It's raised with the upload_max_filesize setting.
  • The site doesn't appear in Google. The "Search engine visibility" box is still ticked.

Frequently asked questions

How long does it take to install WordPress?

With an installer in the control panel, about a minute. A manual installation takes 15–30 minutes if you're doing it for the first time. With hosting that has WordPress pre-installed, it takes no time at all.

Is WordPress free?

Yes. The software itself is free and open source. You only pay for the domain, the hosting and, if you want them, premium themes or plugins.

What's the difference between WordPress.org and WordPress.com?

WordPress.org is the free software you install on your own hosting and fully control. WordPress.com is a platform that hosts the site for you, but with limits on plugins and themes depending on the plan.

Can I install WordPress without hosting?

Only locally, on your own computer, for example with XAMPP or Local. That way the site is only available to you. For other people to see it, you need hosting.

Which PHP version do I need for WordPress?

WordPress 7.0 requires at least PHP 7.4, but PHP 8.4 or newer is recommended. Newer versions are faster and still receive security fixes.

Can I install WordPress in a subfolder?

Yes. If you upload the files to, say, public_html/blog, the site will be at yourdomain.com/blog. That's how it's done when WordPress is just a blog alongside another site.

How do I install WordPress in another language?

Download the localised version or choose your language during installation. You can also change the language later under "Settings" and "General".

How do I remove WordPress if I want to start again?

Delete the WordPress files from the site's folder and the database from the control panel. If you installed it with an installer, use its uninstall option, because it removes both at once. Make a backup first if there's anything you might need.

Do I need an SSL certificate for WordPress?

Yes. Without SSL, browsers show the site as not secure, and forms and admin logins travel unencrypted. With most hosts, SSL is free and renews automatically.

Conclusion

Installing WordPress is easier than it looks. If your host delivers it ready or has an installer, your site is ready in minutes. A manual installation takes a little longer, but it works everywhere and teaches you how the system is put together. Whichever you choose, make the first settings straight away: readable permalinks, the right time zone, HTTPS, a secure username and automatic backups. That way you start clean, without problems that are hard to fix later.

Want to skip the installation? With our WordPress hosting, WordPress comes pre-installed and set up for speed and security, and your account is ready within 5 minutes. You're free to choose any themes and plugins.

See the WordPress hosting plans · How to choose WordPress hosting

AI assistant instant answers, 24/7
🍪 We use cookies

To keep MaxBG fast and secure, we use essential cookies. With your consent we also add Google tools (Analytics and Ads). They help us analyse visits and improve our hosting services, and the data is shared securely with Google. You can change your choice or learn more in our Cookie policy