Installing WordPress takes a few minutes. Installing it safely takes a little longer, because the decisions you make in the first half hour (the address, the administrator account, HTTPS, updates) are the ones that are awkward to change later. This tutorial walks through a clean installation on a new hosting account and the checks to run before you add any content.
What you need before you start
- A hosting account with PHP and a MySQL or MariaDB database. Check the current requirements on wordpress.org and choose a supported PHP version in your hosting panel.
- A domain that already points to the hosting account. If it does not yet, follow How to Connect a Custom Domain to Web Hosting first.
- A password manager, so every password in this tutorial can be long, random and unique.
Step 1: Switch on HTTPS first
Open your hosting control panel and issue an SSL certificate for the domain before installing anything. Most hosts provide a free certificate with one click. Installing WordPress on an https:// address from the start avoids mixed-content warnings and a later address change. If you are unsure what the certificate does, read HTTPS and SSL Certificates Explained.
Step 2: Choose how to install
There are two reliable methods.
- The host’s installer. Most control panels include a WordPress installer. It creates the database, copies the files and writes the configuration for you. This is the sensible choice for most site owners.
- Manual installation. Download WordPress from wordpress.org, upload the files, create a database and a database user in the control panel, then open your domain and follow the setup screen. Choose this when your host has no installer or you want full control.
Whichever you use, download WordPress only from wordpress.org or let the host fetch it. Never install a copy from another website.
Step 3: Fill in the installer carefully
The installer asks a handful of questions. These are the ones that matter for security.
- Site address. Select the https:// version and decide between www and non-www now. Install in the domain root unless you have a reason to use a subfolder.
- Administrator username. Do not use admin, the domain name or your first name. Attackers try those first.
- Administrator password. Generate a long random password in your password manager.
- Administrator email. Use an address you control and read. Password resets and security notices go there.
- Database name, user and prefix. Let the installer create a dedicated database and user for this site only, with its own strong password. Do not share one database user between several websites.
- Extra plugins and themes. Many installers offer to add bundles. Untick anything you did not ask for.
While the site is still empty, you can tick the option that discourages search engines from indexing it. Make a note to untick it at launch.
Step 4: First login checks
Log in and work through this list before doing anything else.
- Updates. Open Dashboard, Updates and install everything available for WordPress, themes and plugins.
- Remove what you do not use. Delete sample plugins and unused themes, keeping one default theme as a fallback. Inactive code can still contain vulnerabilities.
- Permalinks. Go to Settings, Permalinks and choose a structure. Our tutorial on choosing WordPress permalinks explains the options.
- Site address. In Settings, General, confirm both addresses start with https://.
- Timezone and language. Set them now so scheduled posts and dates behave as expected.
- Users. You should see exactly one administrator: you.
Step 5: Add the basic protections
- Two-factor authentication for every administrator account, using a well-maintained plugin or your host’s login protection.
- A separate editor account for everyday writing. Keep the administrator account for maintenance.
- Automatic backups stored somewhere other than the web server. See How to Create a Basic Website Backup and Test a Restore.
- Automatic minor updates left switched on. They deliver security fixes.
Before you install any plugin, run it through the checks in How to Evaluate a WordPress Plugin Before Installing It.
Verify the installation
- Open the site in a private browser window using http://. It should redirect to https:// and show a padlock with no warnings.
- Try both the www and non-www address. One should redirect to the other.
- Log out and log in again with the saved password.
- Request a password reset and confirm the email arrives.
- Open Tools, Site Health and read any critical issues it reports.
Common mistakes
- Installing on http:// and switching to HTTPS after content exists.
- Keeping the username admin with a short password.
- Leaving the installer’s bundled plugins active without knowing what they do.
- Forgetting that search engine visibility is switched off, then wondering why the launched site is not indexed.
- Having no backup until the day something breaks.
Next step
With a clean, updated and backed-up installation you can start building. WordPress for Beginners: How the Main Parts Fit Together explains what you are looking at in the dashboard, and the WordPress Launch Checklist covers what to verify before going live.
