This guide walks you through installing a full WordPress test site on your own computer using a free tool called Local. By the end, you’ll have a private WordPress installation where you can experiment with themes, plugins, and code without affecting a live website. You’ll need a computer with at least 4GB of RAM (8GB recommended), about 5GB of free disk space, and an internet connection for the initial download.
What You’ll Need
- A Windows, macOS, or Linux computer
- Administrator rights to install software
- At least 4GB of RAM (8GB recommended)
- About 5GB of free disk space
- Internet connection for downloading software
Step-by-Step
- Download Local. Go to the official Local website (localwp.com) and download the version for your operating system. Local is a free, open-source tool that bundles WordPress, PHP, and MySQL into an easy-to-manage environment.
- Install Local. Run the downloaded installer. On Windows, double-click the .exe file and follow the prompts. On macOS, open the .dmg file and drag the Local icon to your Applications folder. On Linux, use the provided package (e.g., .deb or .rpm) and install it with your package manager.
- Launch Local. Open Local from your Start menu, Applications folder, or app launcher. The first time you open it, it may ask for permission to install helper tools—allow it.
- Create a new site. Click the “+” (plus) button or “Create a new site” button. Enter a name for your site, such as “testsite”. You can also choose a domain—Local will append “.local” to it (e.g., testsite.local).
- Choose your environment. Local will ask you to select a PHP version and a web server. For most users, the recommended defaults (e.g., PHP 8.2 and nginx) are fine. Click “Continue”.
- Set WordPress credentials. Enter a username, password, and email for your WordPress admin account. Make sure to store these in a password manager. Click “Add Site”.
- Wait for installation. Local will now download WordPress and set up the database. This may take a few minutes depending on your internet speed. You’ll see a progress bar.
- Start your site. Once the site is created, you’ll see it in the Local dashboard. Click the “Start” button next to your site name. The status will change from “Stopped” to “Running”.
- Open your site. Click the “Open site” button (usually a small arrow or globe icon). This will open your browser to http://testsite.local. You should see the default WordPress homepage.
- Log in to wp-admin. To access the admin dashboard, go to http://testsite.local/wp-admin and enter the username and password you set earlier. You’re now ready to test WordPress locally.
Common Mistakes
- Skipping the “Start” step: Many users try to open the site before clicking “Start”. The site must be running first.
- Using an unsupported PHP version: If you choose a very old PHP version, some modern plugins may not work. Stick with the recommended PHP version.
- Forgetting to keep Local open: The local site only runs while Local is open. If you close Local, your site stops.
- Using the same password as your live site: Always use a unique password for your test site, even though it’s local.
Tips
- Use snapshots: Local has a “Snapshot” feature that lets you save the entire state of your site. Take a snapshot before trying risky changes—you can roll back instantly.
- Install a staging plugin: If you want to test updates, consider using a plugin like WP Staging to create a staging copy within your local site.
- Keep Local updated: Local regularly releases updates that improve compatibility with new versions of WordPress and PHP. Check for updates in the Local dashboard.
- Use a different port if needed: If you have other web servers running, Local may use port 80. If there’s a conflict, you can change the port in the site settings.
Troubleshooting
- Site won’t start: If the site fails to start, check that no other program is using port 80 or 443. You can also try restarting Local or your computer. If the issue persists, check the Local logs (right-click the site → “Show folder” → “logs”).
- “Cannot connect to database” error: This usually happens if the MySQL service didn’t start properly. In Local, go to the site’s “Database” tab and click “Restart database”. If that doesn’t work, try stopping and starting the site again.
- Browser says “This site can’t be reached”: Make sure the site is running (the status dot is green). Also, try using “Open site” from Local instead of typing the URL manually—Local may use a custom port.
- WordPress admin login not working: If you forgot your password, you can reset it from the Local dashboard. Click on your site, then go to the “WordPress” tab and click “Admin”. Local will open the login page and may auto-fill the credentials. If not, use the “Forgot password?” link on the login page—Local can send a reset email to the admin email you set (it’s simulated locally).
- Local is very slow: If your site is sluggish, try closing other applications. You can also increase the PHP memory limit in the site’s settings (under “Advanced” → “PHP”).
Frequently Asked Questions
Is Local completely free?
Yes, Local is free to use. There is also a paid “Local Pro” tier that adds team features, but the free version is fully functional for a single test site.
Can I use this for a live website?
No, Local is designed for development and testing. It’s not meant to host a public website. For a live site, you need a web host.
How do I move my local site to a live server?
Local has an “Export” feature that creates a zip file of your site. You can then import it into a live hosting account using a plugin like Duplicator or All-in-One WP Migration.
Can I install plugins and themes?
Yes, you can install any plugin or theme from the WordPress repository or upload your own. They will work exactly as they would on a live site.
Will my local site affect my live website?
No, your local site is completely separate. It has its own database and files, so changes you make locally will not affect any live site.
What if I want to use a different domain name?
You can change the domain in Local’s site settings. Go to the site’s “Advanced” tab and edit the domain. You may need to restart the site for the change to take effect.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Payday 2 Crash Issues on PC: A Step-by-Step Guide
- Remove a Remote Access Trojan from Windows PC
- Google Pixel & Pixel XL: How to Turn Off Snooze
- Facebook as AIM Messenger: Step-by-Step Guide
- iPhone 17 SOS Service Issue: How to Fix It
- Install VLC Extensions on Linux