Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Setup & site building · Guide

How to Install WordPress Manually

How to Install WordPress Manually

Short answer

To install WordPress by hand, download the package from wordpress.org, create a database and a MySQL user with full rights to it, upload the files to your web root, and open your domain in a browser to run the install script. The script asks for the database details, then the site title, admin username, password, and email. The whole job takes under five minutes.

Key takeaways

  • A manual install takes under five minutes once the files and database are ready.
  • WordPress needs PHP 8.3 or newer, plus MySQL 8.4 or MariaDB 10.11 or newer.
  • Create the database and MySQL user before you run the install script.
  • Upload the contents of the wordpress folder, not the folder itself, to the web root.
  • The install script ends with a login prompt when it works.

How long does a manual WordPress install take?

Under five minutes once the files are downloaded and the database is ready.

WordPress.org's install guide calls this the famous 5-minute install. It says that under most conditions, installing WordPress is a very simple process and takes less than five minutes to complete.

The clock starts after you have the package and the database details. Downloading the files and creating the database take a few more minutes the first time.

What do you need before you start?

You need a hosting plan with PHP and MySQL, a domain name, and a way to upload files, by FTP or shell access.

WordPress.org's Requirements page recommends PHP 8.3 or greater, plus MariaDB 10.11 or greater, or MySQL 8.4 or greater, with HTTPS support. The guide to WordPress hosting requirements explains each item in plain words.

You also need database access. Most hosts give you phpMyAdmin in the hosting panel, and some offer cPanel or Plesk instead. The guide to checking your PHP version on your host shows how to confirm the PHP version before you start.

Keep a text file open for the details you create: the database name, the database username, the password, and the database host. You will type them into the config file and the install script.

How do you download WordPress?

Download the latest package from wordpress.org/download/ and unzip it on your computer, or fetch it on the server with wget.

The download page recommends PHP 8.3 or greater and MySQL 8.4 or MariaDB 10.11 or greater. The current release as of November 2026 is WordPress 7.1.5, released on November 18, 2026, according to WordPress.org's versions page.

If you have shell access, download the package straight to the server. WordPress.org's install guide gives these commands:

wget https://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz

The package extracts into a folder called wordpress in the same directory. If you downloaded it to your computer instead, unzip it there and upload the files later by FTP.

How do you create the database and user?

Create a database and a MySQL user with full rights to it, in phpMyAdmin or your hosting panel.

WordPress.org's install guide lists this as step 2: create a database for WordPress on your web server, plus a MySQL or MariaDB user who has all privileges for accessing and changing it.

In phpMyAdmin, follow these steps:

  1. Pick Create database from the left menu, type a name such as wordpress, and choose the utf8mb4_general_ci collation.
  2. Open the Users tab and click Add user.
  3. Type a username, pick a strong password, and write both down.
  4. Click Go, then open Edit privileges for the new user.
  5. Under Database-specific privileges, pick your new database and click Check All, then Go.

Note the host name shown after Server at the top of the page. WordPress.org's install guide says this is usually localhost, but not always.

Some hosts create the database for you, or offer a setup tool that does it. Check your hosting panel first, since you may not need to do this step by hand.

How do you write the wp-config.php file?

Rename wp-config-sample.php to wp-config.php, then fill in the database name, username, password, and host.

You can skip this step and let the install script create the file for you. WordPress.org's install guide notes that the step is optional if you are not comfortable renaming files.

To do it by hand, open wp-config.php in a text editor and fill in these four values:

SettingWhat to put in it
DB_NAMEThe name of the database you created
DB_USERThe username you created for WordPress
DB_PASSWORDThe password you picked for that user
DB_HOSTThe database host, usually localhost

WordPress.org's install guide also says to fill in the secret keys under the “Authentication Unique Keys and Salts” section. You can paste fresh keys from the WordPress.org secret key service, linked from that same guide.

Leave DB_CHARSET as it is, and leave DB_COLLATE blank, unless your host tells you otherwise. Save the file when you are done.

How do you upload the WordPress files?

Upload the contents of the wordpress folder, not the folder itself, to your web root for a site at the domain root.

The web root is often called public_html. Its exact path differs by host, so check your host's docs if you cannot find it.

For a site at the domain root, such as https://example.com/, move or upload all the contents of the unzipped wordpress directory into the root directory. WordPress.org's install guide warns that if your FTP client can change file names to lower case, you must turn that option off.

For a site in a subfolder, such as https://example.com/blog/, create the blog folder on the server and upload the contents there instead. If you have shell access, you can move the files with a command rather than FTP.

How do you run the install script?

Open your domain in a browser, or yourdomain.com/wp-admin/install.php, and fill in the site title, admin username, password, and email.

If WordPress cannot find wp-config.php, it will tell you and offer to create it. You can also load wp-admin/setup-config.php in your browser and type the database details there, as WordPress.org's install guide explains.

On the details screen, enter the site title, your chosen username, your password twice, and your email address. There is also a check box asking if search engines should index the site.

Leave the box unchecked if you want the site visible to everyone, including search engines. Check it only if you want to block search engines while normal visitors can still see the site. You can change this later in the dashboard.

When the form is done, WordPress creates the tables and shows a login prompt. Log in at yourdomain.com/wp-admin/ to reach the dashboard.

What do you do if the install fails?

Check the database details first, then the database user rights, then whether the database server is running.

WordPress.org's install guide lists these as the first checks when the install script reports a database error. Go back to the database and config steps and make sure every value matches what you created.

If you see a directory listing instead of a web page, the server needs to be told to load index.php by default. In Apache, the DirectoryIndex index.php directive does this, and the simplest fix is a .htaccess file in the install folder with that line.

If you see “Headers already sent” errors, a file was likely edited with extra blank lines or a wrong text encoding. Re-save wp-config.php as plain UTF-8 with no extra lines at the start or end.

The guide to fixing the database connection error covers the database checks in order.

The guide to backing up a WordPress database shows how to protect the database once it works.

What happens after the install script finishes?

WordPress shows a login prompt, and you log in at yourdomain.com/wp-admin/ with the admin details you just set.

WordPress.org's install guide states that if you install WordPress successfully, a login prompt will be shown. That prompt is the sign the tables were created and the admin user exists.

Log in and check the dashboard. The default theme and the “Hello world!” post should be there. Change the admin password to one you can recall, and set the site title and tagline under Settings, then General.

If you share one database with another install, give the tables a distinct prefix. WordPress.org's install guide notes that you can install WordPress in a database that is already in use, as long as the table prefix is distinct.

What mistakes should you avoid?

Do not use weak database or admin passwords, do not upload the wordpress folder itself into the web root, and do not skip the backup.

Other mistakes to avoid:

  • Using “admin” as the admin username, which attackers try first.
  • Typing the database password into wp-config.php with a typo, then blaming the host.
  • Uploading the wordpress folder itself, which puts the site at yourdomain.com/wordpress/ instead of the root.
  • Leaving the search engine check box on after launch, which hides the site from Google.
  • Installing on PHP 7.4 or MySQL 5.5.5, which have reached end of life and can leave the site open to security flaws.

The guide to what the WordPress database is explains what the tables hold, so you know what you are protecting when you back it up.

Frequently asked questions

What do I need before a manual WordPress install?

You need a hosting plan with PHP and MySQL, a domain name, and a way to upload files, by FTP or shell access. You also need database access, usually through phpMyAdmin in your hosting panel.

Do I have to edit wp-config.php by hand?

No. You can skip the wp-config.php step and let the install script create the file for you. Load wp-admin/setup-config.php in your browser and type the database details there when asked.

Why does the install script report a database error?

The database details in wp-config.php are wrong, or the database user lacks rights to the database. Check the database name, username, password, and host, then check the user privileges in phpMyAdmin.

Should I upload the wordpress folder or its contents?

Upload the contents of the wordpress folder, not the folder itself, to your web root. Uploading the folder itself puts the site at yourdomain.com/wordpress/ instead of the domain root.

Can WordPress share a database with another install?

Yes. WordPress can share a database with another install as long as the table prefix is distinct, so the tables do not clash. Set a different prefix in wp-config.php or during the install.

Sources

  1. How to install WordPress WordPress Developer Resources
  2. Requirements WordPress.org
  3. Download WordPress WordPress.org
  4. WordPress Versions WordPress.org
  5. PHP: Supported Versions PHP
  6. Editing wp-config.php WordPress Developer Resources

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.