How to install WordPress: every method explained
To install WordPress, you need a host that runs PHP and MySQL or MariaDB, then you pick one of three routes: a one-click installer in your hosting control panel (the quickest), a manual install where you upload the files and run the installer yourself, or a three-command install with WP-CLI. If you only want to test WordPress, you can run it on your own computer or even inside your browser, with no hosting at all.
This guide covers every method step by step, plus what to do right after the install, how to switch on Multisite, how to install in your own language, and how to fix the errors people hit most often.

What do you need before you install WordPress?
WordPress asks for very little. The official WordPress requirements page recommends a host that supports:
- The PHP version it recommends (the page names it)
- The MariaDB or MySQL version it recommends
- HTTPS support
The same page recommends Apache or Nginx as the web server, but says any server that supports PHP and MySQL will do. WordPress still works on some older PHP and MySQL versions, but the page warns that those older versions have reached end of life and may expose your site to security problems.
The official WordPress version-check API (api.wordpress.org/core/version-check/1.7/) reports the current release and its minimum PHP and MySQL versions, the same “legacy” floor shown on the requirements page. In practice, aim for the recommended PHP version or newer.
Before you start, have these ready:
- A domain name pointed at your hosting account.
- Hosting login details: your control panel (cPanel, Plesk, CloudPanel or your host’s own dashboard), and for a manual install, FTP or SFTP details or SSH access.
- An HTTPS certificate, or a host that issues one automatically. Set it up before you install so WordPress starts with an https:// address.
- An admin username, a strong password and an email address you actually check. Avoid “admin” as the username.
If you are still choosing a topic and a name, read how to start a blog first, then come back here to build it.
How do you install WordPress with one click?
Most hosts include an installer that creates the database, copies the files and runs the WordPress setup for you. You fill in a form, click Install and log in a minute later. For a first site, this is the sensible choice.
How do you install WordPress with Softaculous in cPanel?
Softaculous is an auto installer for hundreds of web apps, including WordPress, and it plugs into control panels such as cPanel, DirectAdmin, Plesk and Webuzo. Its own documentation describes the WordPress install like this:
- Log in to your control panel (for example cPanel).
- Click the Softaculous icon. This opens the Softaculous panel.
- Search for WordPress and open its page.
- Click Install.
- Fill in the form. Most fields are prefilled, but check these:
- Installation URL: choose the domain and the directory. Leave the “In Directory” field empty if you want WordPress at example.com rather than example.com/wp.
- Admin username, password and email: these become your WordPress login. Change the defaults.
- Language: the language WordPress will be installed in.
- Click Install, wait for it to finish, then open the admin link it gives you.
Watch the “In Directory” field: a leftover default folder name puts your site at example.com/wp/ instead of example.com.
What about other hosting dashboards and control panels?
Many hosts build their own WordPress app into their dashboard instead of, or as well as, Softaculous. Server panels have one too: CloudPanel has a “Create a WordPress Site” option, and Plesk has a one-click installer in its WP Toolkit. The screens differ, but the inputs are almost always the same:
- the domain (and whether to use www or not)
- the site title
- an admin username, password and email
- sometimes the PHP version, a database name, or a table prefix
On a managed WordPress plan, WordPress may already be installed when you first log in, so check before installing a second copy.
Is a one-click install worse than a manual one?
No. The result is a normal WordPress install with the same files and database. You just learn less about where things live, which matters when you later need to edit wp-config.php or fix an error, so read the manual section anyway.
How do you install WordPress manually?
The manual route follows the official How to install WordPress guide in the WordPress Advanced Administration Handbook. It has five steps.
Step 1: Download WordPress
Download the latest package from wordpress.org/download and unzip it on your computer. You get a folder called wordpress.
If you have SSH access, you can skip the upload later by downloading straight onto the server:
wget https://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
Step 2: Create the database and a database user
WordPress stores your posts, pages, users and settings in a database. You need three things: a database, a database user, and that user given all privileges on that database.
- In cPanel: the MySQL Database Wizard (under Databases) walks you through creating the database, creating a user with a strong password, and adding that user to the database with All Privileges.
- In phpMyAdmin: create the database, then go to the Users tab, add a user, and under database-specific privileges grant all privileges on the new database. Leave global privileges at their defaults.
Write down four values, because you need them in the next step:
- database name
- database username
- database password
- database host (usually
localhost, but not always, so check your host’s docs)
On most shared hosting, names start with your account username and an underscore (myacct_blog). Use the full name.
Step 3: Set up wp-config.php (or let the installer do it)
wp-config.php is the file that tells WordPress how to reach its database. You have two options:
- Let WordPress create it. Skip this step. When you run the installer in step 5, WordPress asks for your database details and writes the file itself, if the server allows it.
- Create it yourself. Rename
wp-config-sample.phptowp-config.php, open it in a plain text editor, and fill inDB_NAME,DB_USER,DB_PASSWORDandDB_HOST. LeaveDB_CHARSETandDB_COLLATEas they are.
If you edit the file yourself, also replace the placeholder lines under “Authentication unique keys and salts”. The sample file points to the WordPress.org secret-key service at api.wordpress.org/secret-key/1.1/salt/, which generates a fresh set you can paste in.
Use a plain text editor, not a word processor. A stray space before the opening <?php tag, or an editor that adds a byte order mark, causes “Headers already sent” errors.
Step 4: Upload the files
Decide where the site should live:
- At the root (example.com): upload the contents of the
wordpressfolder, not the folder itself, into your site’s web root (oftenpublic_html). - In a subfolder (example.com/blog/): rename the
wordpressfolder toblogand upload the whole folder into the web root.
Use an SFTP client if your host supports it. If your client has an option to convert file names to lower case, turn it off.
Step 5: Run the installer
Open your site in a browser. For a root install, go to https://example.com/wp-admin/install.php; for a subfolder, https://example.com/blog/wp-admin/install.php.
- Choose your language (more on that below).
- If there is no wp-config.php yet, enter your database details and let WordPress create the file.
- Enter your site title, admin username, password and email.
- Decide on the search engine visibility box. Leave it unchecked if you want search engines to index the site. Check it only if you want to hide the site from search engines while you build it, and remember to uncheck it before launch.
- Click Install WordPress, then log in.
Everything you enter on that screen can be changed later in the dashboard.
How do you install WordPress with WP-CLI?
WP-CLI is the official command-line tool for WordPress. If you have SSH access and WP-CLI on the server, the whole install is three commands, taken from the WP-CLI handbook’s quick start:
wp core download
wp config create --dbname=wpdb --dbuser=wpuser --prompt=dbpass
wp core install --url=https://example.com --title="My Blog" --admin_user=yourname [email protected] --prompt=admin_password
What each one does:
wp core downloadfetches the latest WordPress files into the current folder. Add--locale=de_DE(or your locale) to download a translated package.wp config createwrites wp-config.php with your database details and generates the keys and salts for you.--prompt=dbpassasks for the password instead of putting it in your shell history.wp core installcreates the database tables and your admin account. The install command also accepts--locale.
You still need to create the database and database user first (step 2 above). Run the commands as the user that owns your site files, not as root, so file ownership stays correct.
If you manage more than one site, WP-CLI is worth learning: the same tool installs plugins, updates WordPress and moves sites.
How do you install WordPress on your own computer for testing?
You do not need hosting to try WordPress, test a theme or practise the steps in this guide. Two official tools make it easy.
WordPress Playground
WordPress Playground runs WordPress entirely in your browser using WebAssembly. There is no server, no account and nothing to install: open the page and you have a working WordPress site in a few seconds. The official site describes it as for learning, testing and developing, and it lets you switch WordPress and PHP versions to test compatibility.
Know its limits before you rely on it. According to the Playground documentation, a site can be autosaved in your browser (it keeps up to five recent autosaves) or stored permanently in browser storage, but temporary Playgrounds are lost when you close or refresh the tab, and the browser itself can clear stored data. Export a ZIP if you want a backup. Playground is a sandbox, not a place to host a real site.
WordPress Studio
WordPress Studio is a free, open source desktop app from WordPress.com that runs WordPress sites locally on your computer. It works on macOS, Windows and Linux. You do not need a WordPress.com account to use it; an account is only needed for the optional preview sites feature, which creates hosted copies of your local sites to share. Studio Sync, which keeps a local site in sync with a live one, is available for WordPress.com sites on paid plans and Pressable sites with Jetpack enabled.
Use Playground for a quick experiment, and Studio for a local site that stays put for days.
What should you do right after installing WordPress?
A fresh install works, but a few settings should change before you publish anything. In the dashboard, go through these in order:
- Settings, General: check the site title, tagline, timezone and that both address fields start with https://.
- Settings, Permalinks: pick “Post name” so URLs read example.com/my-post/ instead of example.com/?p=123. Do this first, because changing it later breaks old links.
- Settings, Reading: confirm “Discourage search engines from indexing this site” is unchecked when you are ready to be found.
- Settings, Discussion: decide whether you want comments at all, and if so, hold first-time comments for moderation.
- Delete the sample content: the “Hello world!” post, the sample page and the default comment.
- Remove what you do not use: inactive themes (keep one default theme as a fallback) and any plugins your host preinstalled that you do not need.
- Your profile: set a display name so posts do not show your login username.
Then move on to theme, plugins, backups, security and Search Console. That is a guide of its own: follow the WordPress blog setup guide, which picks up exactly where this one ends.
How do you set up WordPress Multisite?
Multisite turns one WordPress install into a network of sites that share the same core files, and can share themes and plugins. It is useful if you run several related sites (say, one per language or per department). Most single blogs do not need it.
The official Create a network guide sets out the process:
- Back up your files and database, check that pretty permalinks work, and deactivate all plugins.
- Add
define( 'WP_ALLOW_MULTISITE', true );to wp-config.php. This adds a Network Setup item to the Tools menu. - Go to Tools, Network Setup and choose sub-domains (site1.example.com) or sub-directories (example.com/site1). This choice is hard to change later.
- Copy the extra lines WordPress shows you into wp-config.php and .htaccess. The lines are generated for your install, so use those, not ones from a tutorial.
- Log in again. A new Network Admin menu appears under My Sites, where you add sites and manage themes and plugins for the network.
Read the official “Before you create a network” page first, especially for sub-domains, which can need wildcard DNS.
How do you install WordPress in your language?
WordPress shows in US English by default but is translated into many languages. You have three ways to get yours:
- During install: the first screen of the installer asks you to pick a language, and WordPress downloads the translation for you (this has worked since WordPress 4.0). Softaculous has a language field in its form too.
- After install: go to Settings, General, Site Language, pick a language and save. WordPress downloads the language pack and switches the dashboard.
- With WP-CLI: pass
--locale=fr_FR(or your locale code) towp core downloadorwp core install.
Note that this translates WordPress itself. Your theme and plugins need their own translations, and your content is whatever language you write in.
How do you fix common WordPress installation errors?
The fixes below come from the official common WordPress errors page and the installation guide.
“Error establishing a database connection”
WordPress cannot reach its database. The official page says this is usually caused by a mistake in wp-config.php. Open the file and check, character by character:
- the database name
- the database username
- the database password
- the database host
On a fresh install, also confirm that the database user was actually given privileges on the database (step 2). If everything matches, try resetting the database user’s password in your control panel and pasting the new one into wp-config.php. If that still fails, ask your host whether the database server is down or your database has hit its quota.
The white screen (a blank page)
A completely blank page is known as the “white screen of death”. Both PHP errors and database errors can cause it. Work through these:
- A plugin: if you cannot reach the dashboard, use SFTP or your file manager to rename
wp-content/pluginstoplugins_old. That deactivates every plugin. If the site comes back, rename it back and reactivate plugins one at a time to find the culprit. - The theme: rename the active theme’s folder inside
wp-content/themesso WordPress falls back to a default theme. - Memory: raise the PHP memory limit with
define( 'WP_MEMORY_LIMIT', '96M' );in wp-config.php, or ask your host to raise it. - See the real error: turn on
WP_DEBUGandWP_DEBUG_LOGin wp-config.php. Errors are then written towp-content/debug.log. Turn debugging off again once you have fixed the problem.
On a brand new install, a white screen often points to a syntax error you introduced while editing wp-config.php. Compare it against wp-config-sample.php.
File permission errors
If WordPress cannot write files (it asks for FTP details when you install a plugin, or uploads fail), the file ownership or permissions are wrong. The official file permissions guide recommends:
- directories: 755 or 750
- files: 644 or 640
- wp-config.php: 440 or 400, so other users on the server cannot read it
- no directory should ever be 777, not even the uploads folder
Files WordPress needs to write should be owned, or group-owned, by the user account WordPress runs as. Fix ownership rather than loosening permissions; on shared hosting, ask support.
Other errors you may see
- A directory listing instead of your site: the server is not set to load index.php by default. On Apache, add
DirectoryIndex index.phpto an .htaccess file in the WordPress folder. - Raw PHP code shows in the browser: PHP is not running on the server. Check with your host that PHP is installed and enabled for your site.
Which installation method should you choose?
- First blog on shared hosting: use Softaculous or your host’s one-click installer.
- You want to understand how WordPress works, or your host has no installer: do the manual install once.
- You manage a VPS or several sites: use WP-CLI.
- You only want to try WordPress or test a change safely: use WordPress Playground or WordPress Studio.
Whichever you pick, the mistakes to avoid are the same: installing into the wrong folder, using “admin” with a weak password, leaving search engines blocked after launch, and setting 777 permissions to make an error go away.
Frequently asked questions
How long does it take to install WordPress?
A one-click install takes a few minutes. The official guide says a manual install usually takes less than five minutes once you have your database details ready.
Is WordPress free to install?
Yes. The WordPress software is free to download from wordpress.org. You pay for hosting and a domain name, not for WordPress itself.
What PHP version does WordPress need?
Use the PHP version the requirements page recommends. WordPress still runs on some older PHP versions, but those are end of life, so use a current one.
Can I install WordPress in a subfolder?
Yes. Upload WordPress into a folder such as /blog/, or type the folder name in the “In Directory” field of your installer. The site then lives at example.com/blog/.
Can I install WordPress without hosting?
For testing, yes. WordPress Playground runs in your browser and WordPress Studio runs on your computer. To publish a site other people can visit, you need hosting.
