How to Install WordPress Step by Step
In this article
This guide walks you through installing WordPress on your own hosting or local computer. You’ll learn the two main methods: using a one-click installer from your hosting control panel (the easiest) and the manual installation via FTP. By the end, you’ll have a working WordPress site ready for customization.
What You'll Need
- A domain name (e.g., yoursite.com)
- A web hosting account with PHP and MySQL support
- FTP credentials (usually provided by your host)
- Access to your hosting control panel (cPanel, Plesk, or custom)
- Optional: a local development environment like XAMPP or Local by Flywheel for testing
Step-by-Step
- Choose your installation method. Most hosts offer a one-click installer (e.g., Softaculous, Fantastico). If not, you’ll use the manual method. For this guide, we’ll cover both.
- Log in to your hosting control panel. Usually at
yourdomain.com/cpanelor via your host’s client area. Look for the “Website” or “WordPress” section. - Use the one-click installer. Click the WordPress icon (often under “Website” or “Auto Installers”). Then click “Install” and fill in the details:
- Choose the domain where you want WordPress installed (if you have multiple).
- Enter the directory (leave blank to install in the root, or type e.g.,
blogto install in a subfolder). - Set your site name and description (you can change these later).
- Create an admin username and password (use a strong password).
- Enter your admin email address.
- Click “Install” and wait for the confirmation message.
- If no one-click installer exists, download WordPress. Go to
wordpress.org/downloadand download the latest ZIP file. - Extract the ZIP file to a folder on your computer.
- Create a MySQL database. In cPanel, find “MySQL Databases”. Create a new database, a database user, and assign the user to the database with ALL PRIVILEGES. Note the database name, username, and password.
- Upload the WordPress files. Use an FTP client (like FileZilla) to connect to your server. Upload the contents of the extracted folder (all files, not the folder itself) to your domain’s root directory (usually
public_html). If you want to install in a subfolder, create that folder and upload there. - Run the installation script. Open your browser and go to
yourdomain.com(oryourdomain.com/yourfolder). You’ll see the WordPress setup screen. Select your language and click “Continue”. - Enter your database details. Fill in the database name, username, password, and host (usually
localhost). Leave the table prefix aswp_unless you have a reason to change it. Click “Submit”. - Run the installation. Click “Run the installation”. Enter your site title, admin username, password, and email. Click “Install WordPress”.
- Log in. Once installed, click “Log In” and enter your admin credentials. You’re now in the WordPress dashboard.
- Set up your permalinks (optional but recommended). Go to Settings → Permalinks and choose a structure like “Post name”. This makes your URLs cleaner.
Common Mistakes
- Using the wrong database credentials. Double-check the database name, username, and password. A typo here will cause the installation to fail.
- Uploading the WordPress folder instead of its contents. If you upload the folder itself, your site will appear at
yourdomain.com/wordpressinstead ofyourdomain.com. - Forgetting to delete the installation files. After manual install, delete the
wp-config-sample.phpfile (it gets renamed towp-config.phpautomatically) and remove any leftover installation files if you used a script. - Not setting file permissions correctly. On most hosts, files should be 644 and folders 755. Incorrect permissions can cause white screens or upload errors.
- Choosing a weak admin password. Use a mix of letters, numbers, and symbols to protect your site from brute-force attacks.
Tips
- Use a one-click installer if available. It’s faster and less error-prone than manual installation.
- Install WordPress in a subdirectory (e.g.,
yourdomain.com/blog) if you want to keep your main site separate. - Always back up your database before making major changes. You can use plugins like UpdraftPlus or your host’s backup tools.
- Keep your WordPress version and plugins updated. This improves security and performance.
- Install a security plugin like Wordfence or Sucuri to add an extra layer of protection.
Troubleshooting
White screen of death: This usually means a PHP error. Check your site’s error log or enable debugging by adding define('WP_DEBUG', true); to wp-config.php. Common causes: incompatible plugin, memory limit, or file permission issues.
“Error establishing a database connection”: This means your database credentials are wrong, or the database server is down. Double-check the database name, user, and password in wp-config.php. Also ensure the database exists and the user has access.
Installation script not loading: If you see a directory listing instead of the installer, your server may not have PHP enabled or the files weren’t uploaded correctly. Re-upload the files and ensure your hosting supports PHP 7.4 or higher.
Can’t log in after installation: Try resetting your password via the “Lost your password?” link. If that fails, use phpMyAdmin to update the user_pass field with an MD5 hash (though that’s outdated; better to use a plugin like “Emergency Password Reset”).
404 errors on pages: Go to Settings → Permalinks and click “Save Changes” to refresh the rewrite rules. If that doesn’t work, check your .htaccess file (make sure it’s writable).
Frequently Asked Questions
Can I install WordPress locally?
Yes. Use a local server environment like XAMPP (Windows), MAMP (Mac), or Local by Flywheel. The process is similar—create a database, upload files, and run the installer.
Do I need a domain name to install WordPress?
For a live site, yes. For local testing, you can use localhost or a custom local domain. Many hosts also offer a temporary URL.
How long does installation take?
With a one-click installer, it’s usually under 5 minutes. Manual installation takes 15–30 minutes, depending on your familiarity.
What is the difference between WordPress.org and WordPress.com?
WordPress.org is the self-hosted version you install on your own server—you have full control. WordPress.com is a hosted service where you don’t need to install anything but have limited customization on the free plan.
Can I move WordPress from one host to another?
Yes. You need to move your files and database. Use a plugin like Duplicator or manually export/import the database and copy files. Then update the wp-config.php with new database details.
What if I get a “404 Not Found” after installation?
This often happens with permalinks. Go to Settings → Permalinks and click “Save Changes”. If that doesn’t fix it, check your .htaccess file and ensure mod_rewrite is enabled on Apache servers.