Installing WordPress on a local machine can be incredibly useful for testing, development, and even learning. In this tutorial, we’ll walk you through how to install WordPress on WAMP, a popular local development environment for Windows users.
Prerequisites
Please make sure you have the following installed and activated:
Download and Install WAMP Server
- Navigate to WAMP Server’s website
- Switch the language to English if the site appears in French.
- Click on ‘Start using WAMP server’ and choose the version suitable for your Windows computer.
Tip: WAMP Server is only for Windows. Mac users can use MAMP.
- Download the software from Source Forge.
- Run the downloaded file and follow the installation steps.
Note: Install WAMP Server in
c:\wamp
ord:\wamp
. Avoid spaces or diacritics in your folder path.
Configure WAMP Server
- Open the WAMP Manager from the start menu.
- Check if all services are running. You should see a WAMP server icon in your system tray.
Tip: If the services are not running, restart the WAMP server.
- Open your web browser and type
localhost
to check if the WAMP Server is running correctly.
Download WordPress
- Navigate to WordPress.org
- Click on ‘Get WordPress’ and then click on ‘Download WordPress’.
- Extract the downloaded file to
C:\wamp\www
.
Note: Make sure to extract the files correctly, or the installation won’t work.
Create a Database in WAMP Server
- Open a new browser tab and type
localhost
. - Navigate to PHPMyAdmin and click on ‘Databases’.
- Enter a name for your database, for example,
WordPress_site
, and click ‘Create’.
Install WordPress
- Navigate to your new WordPress project in localhost.
- Click on ‘Let’s Go’ and enter the database details.
- Database Name:
WordPress_site
- Username:
root
- Password: (leave blank)
- Table Prefix: (enter a random number)
- Database Name:
- Click ‘Run the Installation’ and fill in your site details.
- Click ‘Install WordPress’.
Tip: Copy your password somewhere safe.
- Login to your new local WordPress site using the credentials you just created.
Install WordPress on WAMP – Conclusion
Congratulations, you’ve successfully installed WordPress on WAMP! You now have a local WordPress environment to experiment and develop on. If you have any questions or run into issues, feel free to drop a comment below.