How to Install WordPress: 3 Methods That Work

If you have a domain and hosting account, you can set up WordPress online through your host’s control panel. You can also install it manually if you need more control, or work locally while building and testing a site before launch.
I’ve worked with WordPress for more than 10 years, building and maintaining websites, configuring themes and plugins, troubleshooting issues, and preparing sites for launch. In this guide, I’ll explain the three approaches I’ve used and the checks I make to avoid common setup problems.
Choose the Right Way to Install WordPress
- Hosting provider’s one-click installer: My usual recommendation for beginners who want a straightforward setup and whose hosting plan offers an installer.
- Manual installation: Useful when you want more control or want to understand how WordPress files, the database, and hosting work together.
- Local installation: Useful for building and testing a site without changing a live website. Plan to test the site again after moving it to the server.
There isn’t one method that fits every project. Choose based on your hosting setup, how much control you need, and whether the site is intended to be live or under development.
What You’ll Learn
- How to install WordPress with a hosting provider’s installer
- How to install WordPress manually
- How to build and test a site locally before launch
- How to choose between a root-directory and subdirectory installation
- What to check after installation and how to troubleshoot common setup issues
Before You Start
For an online installation, make sure you have access to your hosting account and know which domain should point to the site. If you’re working on an existing website, first understand its current file and URL structure. Installing into the wrong directory can make WordPress appear at an unexpected address or interfere with existing files.
- Hosting account: If you are still choosing one, see our guide to choosing WordPress hosting.
- Domain: This is the address visitors use, such as
example.com. See our domain name guide if you need help choosing one. - Access details: Keep your hosting login and administrator credentials secure. For a manual installation, you’ll also need database details.
Method 1: Install WordPress With Your Hosting Provider
For beginners, I usually recommend a hosting provider’s one-click installer because it is faster and simpler than creating the database and uploading the files yourself. The exact dashboard and labels vary by provider, so follow the current instructions in your hosting account.
1. Log in to your hosting account
Open your hosting provider’s control panel. Depending on the provider, this may be cPanel, hPanel, or a custom dashboard. Look for a section related to websites, applications, WordPress, or automatic installation.

2. Open the WordPress installer
Select WordPress or the provider’s application installer. Review the options shown before continuing; the labels and sequence can differ between hosting dashboards.
3. Select the domain and installation directory
Choose the domain where you want WordPress to appear. If WordPress should power the main website at example.com, the installer’s directory field is generally left blank. Enter a folder only when you intentionally want a subdirectory address such as example.com/blog.
Check this before installing: I’ve seen WordPress end up in an unintended directory or on a temporary URL. Double-check the selected domain and installation path before you proceed, then confirm the resulting website address afterward.
4. Enter the site and administrator details
Complete the installer’s requested fields, such as site name, administrator account, and contact email. Use a strong, unique administrator password and an email address you can access. Save your credentials securely.
5. Review the settings and install
Before clicking the install button, check the domain, protocol, directory, and administrator details. Select HTTPS only if it is configured and working for the domain; if you are unsure, verify the certificate and hosting instructions rather than assuming the setting is active.
After installation, open the site and the WordPress login page, commonly https://example.com/wp-admin. Confirm that the site loads at the intended address and that you can sign in.
Method 2: Install WordPress Manually
A manual installation gives you direct involvement in the setup. The basic process is to download WordPress, create a database and user, upload the files to the correct directory, configure the database connection, and finish the setup in a browser.
1. Download WordPress
Download WordPress from the official WordPress.org download page. Use the current download provided there rather than an unofficial copy.

2. Create a database and database user
In your hosting control panel, open the database management area and create a database and user. Give the user the permissions required for that database. Record the database name, username, password, and database host; you’ll need these during configuration.
3. Upload the WordPress files to the intended directory
Extract the downloaded archive and upload the WordPress files using your hosting file manager or an FTP client. The correct destination depends on the domain’s document-root configuration; don’t assume it is always a particular folder name.
Check the destination: I confirm the domain’s document root and make sure the WordPress files are in the directory assigned to that domain. If they are placed in an unintended nested folder, the site may appear at the wrong URL.
4. Complete the browser installation
Open the intended domain in a browser. Follow the WordPress setup prompts and enter the database name, username, password, and host. Enter the site and administrator details when prompted.
5. Sign in and check the result
Once setup is complete, visit the site and its login page. Verify that WordPress is using the intended domain and directory before adding content or changing settings.
How to Troubleshoot a Manual Installation
When a manual installation fails, I check the underlying configuration before considering a reinstall. I change one thing at a time, test again, and avoid changing several settings at once because that makes it harder to identify the cause.
Error establishing a database connection
Compare the database name, username, password, and host in wp-config.php with the details in your hosting control panel. Also confirm that the database user has the necessary privileges for that database. A small mismatch in the name or username can prevent WordPress from connecting.
If the values and privileges appear correct, check with your hosting provider about the database service and the correct host value for your account. Don’t assume the host is localhost; use the value supplied for your hosting setup.
WordPress loads from the wrong URL or folder
Check where the WordPress files were uploaded and confirm the domain’s document root in your hosting panel. For a one-click installation, review the selected domain and directory. If you intended to use the domain root but see a subfolder in the address, the installation path may not match your plan.
File or access errors
Confirm that the upload completed and that the files are in the intended directory. If the error mentions file permissions, check the hosting provider’s guidance for the correct permissions before changing them. Avoid applying broad permission changes without understanding their effect.
Install WordPress at the Root or in a Subdirectory?
I’ve worked with both arrangements. My choice depends on what WordPress is meant to power:
- Root directory, such as
example.com: I usually choose this when WordPress will power the main website, such as a business site, portfolio, or blog. - Subdirectory, such as
example.com/blog: This can make sense when an existing website is already at the root and WordPress will power only a section, such as the blog.
Before installing, consider the existing website structure, hosting configuration, and intended URLs. Verify the document root and installation path. Planning this in advance can help avoid unnecessary migration work and URL changes later.
Method 3: Build and Test WordPress Locally
I use a local development environment when I want to build or test a website without affecting the live version. It gives me a place to work on themes, plugins, custom code, layouts, and functionality before moving the site to production.
My local development workflow
- Create a local WordPress environment using a tool that supports local WordPress development.
- Set up the site and install the theme and essential plugins.
- Build the pages and customize the design.
- Test layouts and functionality, including desktop and mobile views, navigation, forms, images, and links.
- Review performance, remove unnecessary plugins, and check for debug errors or unfinished sections.
- Move the site to the production server, configure the actual domain and HTTPS, and test it again.
Test again after moving the site live
A site that works in a local environment may not behave exactly the same on a live server. PHP versions, server configuration, file permissions, caching, and domain settings can differ. After migration, revisit important pages, test the main functionality, check for broken links or missing assets, and confirm that the live domain and SSL certificate are configured correctly.
I don’t consider the work finished immediately after migration. The post-migration check is part of the launch process, not an optional extra.
What to Do After Installing WordPress
Before focusing on design and content, I check the basic configuration, security, and functionality. These are the steps I prioritize.
1. Confirm the domain and HTTPS
Make sure the domain opens the intended website and HTTPS works without browser SSL warnings. Check that WordPress uses the correct site URL, especially if you are moving from a temporary URL to the live domain.
2. Set the permalink structure
I usually choose the Post name structure for readable URLs. Settle the permalink format early: changing URL structures later can create extra work and may affect existing links.
In the dashboard, review Settings → Permalinks, select the structure that suits the site, and save. Confirm the result on a test page or post.
3. Review basic site and administrator settings
Check the site title, tagline, timezone, language, and administrator account details. Make sure the administrator email is one you can access and use strong, unique credentials.
4. Put backups and basic security in place
Set up a reliable backup solution; where available and appropriate, keep a copy off-site. Update WordPress, themes, and plugins, use strong administrator credentials, and remove themes and plugins you do not need. Establishing these safeguards early is easier than responding to a compromised site or lost content later.
5. Choose a theme and limit plugins to what you need
Choose a theme that suits the site and install only the plugins you actually need. I avoid adding plugins just because they are available; each one becomes part of the site’s maintenance and compatibility picture.
6. Test the site’s key functions
Check mobile responsiveness, page loading, navigation, contact forms, images, links, and other important functions. If the site was developed locally, repeat these checks on the live server after migration.
7. Check search visibility and measurement
If the site is intended to be public, confirm that search engine visibility is configured appropriately. Set up Google Search Console and analytics when they are suitable for the site and your measurement needs.
My top priorities: domain and HTTPS configuration, reliable backups, and basic security. I address permalinks early as well, because changing URL structures later can create avoidable work.
How I Keep This Guide Grounded in Real Experience
I’ve worked with WordPress for more than 10 years, building websites, configuring themes and plugins, troubleshooting issues, and managing launches. I also build and maintain WebGomu, where I publish practical WordPress tutorials and guides.
Where useful, I can support instructions with screenshots from my own WordPress dashboard, hosting control panel, and installation workflow, with sensitive information removed. Examples should reflect work I can genuinely substantiate, not invented client stories or test results.
I review this guide when a major WordPress release changes the installation process or when hosting interfaces, security recommendations, or relevant settings change. I also revisit the steps periodically and update screenshots when the interface changes.
Frequently Asked Questions
What is the easiest way to install WordPress?
For beginners, I usually recommend the one-click installer in the hosting control panel when one is available. Select the intended domain, check the installation path, enter the requested site details, and verify the resulting site address after installation.
Can I install WordPress manually?
Yes. Download WordPress from WordPress.org, create a database and user, upload the files to the intended document root, enter the database details during setup, and finish the installation in a browser.
Why can’t WordPress connect to my database?
Check that the database name, username, password, and host in wp-config.php match the details in your hosting control panel. Confirm that the database user has the necessary privileges. Verify the correct database host with your provider if you are unsure.
Where should I upload the WordPress files?
Upload them to the document root assigned to the domain where you want the site to appear. Check your hosting panel’s domain and directory settings instead of assuming a particular folder name.
Should WordPress go in the root directory or a subdirectory?
If WordPress will power the main website, I usually install it at the domain root, such as example.com. If it will power one section of an existing website, a subdirectory such as example.com/blog may be appropriate. Decide based on the existing site structure and intended URLs before installation.
Can I build a WordPress site locally before making it live?
Yes. A local environment lets you build and test without affecting a live website. Test the site again after migration because server settings, PHP versions, permissions, caching, and domain configuration can differ.
What should I check after installing WordPress?
Confirm the domain and HTTPS, check the site URL, configure permalinks, set up backups and basic security, update WordPress and installed components, and test mobile layouts, navigation, forms, links, and other important functions.
Why might a site work locally but have problems after migration?
The local and live environments may differ in PHP version, server configuration, file permissions, caching, or domain settings. After migration, revisit key pages and functions, check for missing assets and broken links, and verify the live domain and SSL configuration.
What is the usual WordPress login address?
For many installations, the login page is available at https://example.com/wp-admin. A host or security configuration may use a different address.
Final Thoughts
For beginners, a hosting provider’s one-click installer is often the most straightforward way to get started. Manual installation can be useful when you want more control or need to understand how the files, database, and domain fit together. A local environment is useful for development and testing before launch.
Whichever method you choose, check the domain and installation directory carefully. After setup, confirm HTTPS, backups, basic security, permalinks, and essential functionality. If you move a site from local development to a live server, test it again there before considering the launch complete.
Continue Your WordPress Journey
Author:
Christoper Enolpe
Founder of WebGomu • WordPress Freelancer with 10+ Years of Experience
Christoper is the founder of WebGomu and a WordPress freelancer with over 10 years of hands-on experience building, optimizing, and maintaining WordPress websites. He writes practical, beginner-friendly guides based on real-world experience, covering WordPress, SEO, website performance, and AI tools to help readers build better websites with confidence.
Get one WordPress tip every week
Start Here

The Ultimate Beginner’s Guide to WordPress (2026): Build Your First Website Without Coding
Popular Guides
More from the blog
What to Do After Launching a WordPress Website: A First-Week Checklist
How to Debug and Fix WordPress Critical Errors Safely (Without Crashing Live Sites)
