How to Install WordPress: Every Method Explained, From One Click to Manual (2026)

Most people can install WordPress in a few minutes using their host's installer. This guide covers that method first, then the manual install, local installs for testing and WP-CLI, with the checks to run afterward and fixes for common errors.

Prefer to skip the technical steps? Hostinger can install WordPress for you during setup.

See Hostinger Plans

Before You Start: What You Need

Installing WordPress means placing the WordPress software on a web server and connecting it to a database. Before you begin, you need:

  • A domain name, such as yourbusiness.com, registered with a registrar or your host
  • Web hosting that meets WordPress's requirements
  • About 10 minutes with a host installer, or 30 minutes for a manual install

WordPress.org lists these recommended server requirements:

Requirement Recommended
PHP 8.3 or greater
Database MySQL 8.4 or greater, or MariaDB 10.11 or greater
HTTPS Supported

Almost every host that advertises WordPress hosting meets these. If you are choosing a host now, see best WordPress hosting or, on a budget, the cheapest WordPress hosting.

WordPress.org or WordPress.com? This guide covers self-hosted WordPress from WordPress.org, which you install on your own hosting. WordPress.com is a hosted service where installation is not needed. See WordPress.com vs WordPress.org if you are unsure which you need.

Which Installation Method Should You Use?

Green and red metal tool cases
Method Best for Difficulty Time
Host installs it during signup Beginners, new sites Easiest Minutes
One-click installer (Softaculous or host tool) Existing hosting accounts Easy 5–10 minutes
Manual install with FTP or file manager Learning, custom setups, hosts without installers Moderate 15–30 minutes
Local install on your computer Testing, learning, development Easy to moderate 10–20 minutes
WP-CLI Developers, servers with command-line access Advanced A few minutes

Most readers should use the first or second method.

Method 1: Let Your Host Install WordPress

Many hosts install WordPress automatically when you sign up for a WordPress plan, or offer it during onboarding.

  1. Choose a WordPress hosting plan and register or connect your domain.
  2. Follow the onboarding steps. Many hosts ask whether you want to create a new WordPress site and may suggest a theme.
  3. Set your admin username, password and email. Use a unique username rather than "admin" and a strong password.
  4. Wait for setup to finish, usually a minute or two.
  5. Log in at yourdomain.com/wp-admin.

Hosts such as Hostinger include WordPress setup in their onboarding. See our Hostinger review for details on its plans.

Method 2: Use a One-Click Installer

If your hosting account already exists, use its installer. On cPanel hosts this is often Softaculous; other hosts provide their own tools in custom dashboards.

  1. Log in to your hosting control panel.
  2. Find the WordPress installer, usually labeled WordPress, Softaculous or Website Installer.
  3. Click Install and choose the protocol and domain. Select https:// if an SSL certificate is available.
  4. Leave the directory field empty to install at the root of your domain, or enter a folder name such as "blog."
  5. Enter your site name and admin details: username, strong password and email.
  6. Choose the language and, if offered, skip extra plugins you do not need.
  7. Click Install and wait for confirmation.
  8. Log in at yourdomain.com/wp-admin.

Installers sometimes add their own plugins or settings. After logging in, review the Plugins page and remove anything you did not choose.

Method 3: Install WordPress Manually

A manual install is useful when your host has no installer, when you want full control or when you want to understand how WordPress works. WordPress.org documents this as the famous five-minute install.

Step 1: Download WordPress

Download the latest version from WordPress.org and unzip it on your computer. You will see a folder named "wordpress" containing files such as wp-config-sample.php and folders such as wp-admin, wp-content and wp-includes.

Step 2: Create a Database and User

In your hosting control panel, open the database tool, such as MySQL Databases in cPanel.

  1. Create a new database, for example example_wp.
  2. Create a new database user with a strong password.
  3. Add the user to the database with all privileges.
  4. Note the database name, username, password and database host. The host is often "localhost," but some providers use a different address.

Step 3: Configure the Config File (Optional)

Rename wp-config-sample.php to wp-config.php and open it in a text editor. Enter your database name, username, password and host, and replace the placeholder security keys with unique values generated by WordPress.org's secret key service.

You can skip this step; the installer will ask for your database details and create the file for you if it has permission.

Step 4: Upload the Files

Upload the contents of the "wordpress" folder to your web server:

  • To install at your domain's root, upload the contents into the public folder, often named public_html or www, not the "wordpress" folder itself.
  • To install in a subfolder, upload them into a folder such as public_html/blog.

Use an FTP or SFTP client, or your host's file manager. Uploading a ZIP file and extracting it on the server is usually faster than uploading thousands of individual files.

Step 5: Run the Installer

Visit yourdomain.com/wp-admin/install.php, or yourdomain.com/blog/wp-admin/install.php for a subfolder.

  1. Choose your language.
  2. If you skipped wp-config.php, enter your database details when asked.
  3. Enter your site title, admin username, password and email.
  4. Leave Discourage search engines from indexing this site unchecked unless the site is not ready for visitors.
  5. Click Install WordPress, then log in.

Method 4: Install WordPress on Your Computer

A local install lets you learn WordPress, test themes and plugins or build a site before launch, without paying for hosting.

Popular tools include free local development apps that create a WordPress site with a few clicks, and general-purpose stacks such as XAMPP or MAMP that run a web server and database on your computer.

With a local development app:

  1. Download and install the app.
  2. Click to create a new site and enter a name.
  3. Choose the default environment unless you need specific PHP or database versions.
  4. Set an admin username and password.
  5. Open the site in your browser and log in.

With XAMPP or MAMP: install the stack, start the web server and database, create a database in phpMyAdmin, place the WordPress files in the web folder and run the installer as in Method 3.

A local site is only visible on your computer. When it is ready, move it to a live host with a migration plugin. See how to migrate WordPress to a new host.

Method 5: Install WordPress With WP-CLI

WP-CLI is the official command-line tool for WordPress. If your host provides SSH access with WP-CLI, installation takes four commands:

  1. Download WordPress into the current folder with the core download command.
  2. Create the configuration file with your database name, user and password using the config create command.
  3. Create the database with the db create command, if your user has permission.
  4. Run the installation with the core install command, supplying the site URL, title, admin user, password and email.

WP-CLI is ideal for developers setting up many sites or automating installs. The WP-CLI handbook on WordPress.org documents each command and its options.

Root Folder, Subfolder or Subdomain?

Open white toolbox with compartments

Where you install WordPress decides the address visitors use.

Location Address When to use it
Root folder yourdomain.com WordPress is your main website (most sites)
Subfolder yourdomain.com/blog Another application runs the main site, and you want the blog on the same domain
Subdomain blog.yourdomain.com You want a separate site, such as a help center or a test site

A subfolder keeps content on the main domain, which many site owners prefer for SEO because links and authority stay together. A subdomain is treated more like a separate site. If WordPress will be your whole website, the root folder is the right choice.

Installing WordPress for a Staging Site

A staging site is a private copy of your live site where you test updates, new plugins or redesigns before applying them. Many hosts create one with a single click from their dashboard. If yours does not, you can install WordPress on a subdomain such as staging.yourdomain.com, protect it with a password and copy your live site to it with a migration plugin.

Keep staging sites hidden from search engines with password protection and the Discourage search engines setting, and delete them when you no longer need them so they do not become an outdated, insecure copy of your site.

Choosing Settings During Installation

The installer asks only a few questions, but each one matters later.

  • Site title. You can change it at any time under Settings → General, so do not worry if it is not final.
  • Username. You cannot change a username from the dashboard later without creating a new user, so choose a unique one now and avoid "admin."
  • Password. Use a long, unique password generated by a password manager.
  • Email. Use an address you check, since WordPress sends password resets and update notices here.
  • Search engine visibility. Leave indexing allowed for a live site. If you are building privately first, check the box and remember to uncheck it at launch.

What to Do Right After Installing

A fresh install needs a few settings before you build anything.

Task Where What to do
Check HTTPS Settings → General Both addresses start with https://
Set permalinks Settings → Permalinks Choose Post name
Set time zone Settings → General Choose your city
Check search visibility Settings → Reading Discourage search engines unchecked when live
Delete sample content Posts, Pages, Comments Remove "Hello world!" and the sample page
Remove unused themes and plugins Appearance, Plugins Keep one default theme as a fallback
Update everything Dashboard → Updates Install any available updates
Create your own user Users Use a non-obvious username for the administrator

Then choose a theme and essential plugins. These guides help:

Common Installation Problems and Fixes

Problem Likely cause Fix
"Error establishing a database connection" Wrong database name, user, password or host Check the details in wp-config.php against your host's database settings
Site shows a directory listing or host's placeholder page Files uploaded to the wrong folder Move WordPress files into the public root folder
Site loads at /wordpress/ instead of the root The folder itself was uploaded Move the folder's contents up one level
"Not secure" warning in the browser No SSL certificate or WordPress set to http:// Enable SSL at your host and update both addresses in Settings → General
Blank white screen PHP error, often from a plugin or memory limit Check your host's error log; deactivate plugins by renaming the plugins folder
Cannot upload large files Upload limit set by the server Raise the limit in your host's PHP settings or ask support
Redirect loop after enabling HTTPS Conflicting HTTPS settings Check your host's SSL settings and WordPress addresses; clear caches

If you are stuck, your host's support team can usually resolve installation issues quickly, since they can see the server configuration.

Security Tips for a New Install

  • Use a unique administrator username and a long, unique password.
  • Enable two-factor authentication with a security plugin. See best WordPress security plugins.
  • Keep WordPress, themes and plugins updated.
  • Set up backups before adding content. See how to back up WordPress.
  • Install only plugins and themes from trusted sources.

For a complete checklist, see how to secure WordPress.

Final Word

For most people, the best way to install WordPress is to let a good host do it during signup or with a one-click installer. Manual installs, local installs and WP-CLI are useful when you want more control or are building and testing sites. Whichever method you use, spend ten minutes on the post-install settings, then move on to choosing a theme and building your site. More guides are in the guides hub.

Frequently Asked Questions

What Is the Easiest Way to Install WordPress?

The easiest way is to choose a host that installs WordPress for you during signup or offers a one-click installer in its control panel. It takes a few minutes and requires no technical knowledge.

How Long Does It Take to Install WordPress?

With a host's installer, usually under ten minutes. A manual installation, which involves creating a database and uploading files, typically takes 15 to 30 minutes for a first attempt.

What Do I Need to Install WordPress?

You need a domain name and hosting that meets WordPress's requirements. WordPress recommends PHP 8.3 or greater, MySQL 8.4 or MariaDB 10.11 or greater, and HTTPS support.

Can I Install WordPress on My Own Computer?

Yes. Local development tools let you run WordPress on your computer for learning, testing and building sites before moving them to a live host. A local site is not visible to the public.

Is WordPress Free to Install?

The WordPress software from WordPress.org is free. You pay for hosting and a domain, and optionally for premium themes and plugins.

Should I Install WordPress in the Root or a Subfolder?

Install in the root folder if WordPress will be your main website, so it loads at yourdomain.com. Use a subfolder, such as yourdomain.com/blog, only if another application runs the main site.

Prefer to Skip the Technical Steps? Hostinger Can Install WordPress for You During Setup

Check the current plans, site limits and refund terms on the official Hostinger website.

See Hostinger Plans