Local development sites give theme and plugin changes a place to run before they reach a public website. On Windows, WampServer supplies the web server and database needed to install WordPress at a localhost address.

An installed WampServer stack is the starting point, with its homepage opening at http://localhost/ and phpMyAdmin available. WordPress recommends PHP 8.3 or newer and MySQL 8.0 or newer; the installation here uses WampServer's local MySQL service.

Each site needs an empty database, and its database login is separate from the WordPress administrator login. A dedicated database user limits WordPress to its own database, while the administrator account manages content and settings after sign-in. A local development stack should remain accessible only from the local computer.

Steps to install WordPress on WampServer:

  1. Download the ZIP package from the official WordPress download page.
  2. Choose Extract All from the downloaded ZIP file's context menu in File Explorer.
  3. Enter C:\wamp64\www as the extraction destination.

    The archive contains a wordpress folder, so the site files will be under C:\wamp64\www\wordpress. Older WampServer installations may use C:\wamp\www instead.

    Overwriting an existing wordpress folder can replace another local site's files. This installation needs a new wordpress folder.

  4. Click Extract to unpack WordPress into the web root.
  5. Open http://localhost/phpmyadmin/ in your browser.
  6. Enter your local MySQL administrator credentials in the phpMyAdmin login form.

    A fresh WampServer installation uses root with an empty password for its local MySQL server. An installation with a changed password requires that password. This administrator login is only for creating the site's database account; WordPress will use its own account.

    A passwordless database administrator is unsuitable for network access. WampServer and phpMyAdmin must remain local-only during this setup.

  7. Click Log in with MySQL selected as the server.
  8. Open phpMyAdmin's server navigation menu.

    The menu appears as three horizontal lines when the navigation tabs do not fit across the window.

  9. Choose User accounts from the server menu.
  10. Click Add user account below the account list.
  11. Enter wordpress_wamp as the User name.

    If wordpress_wamp already belongs to another project, use a different unused name for both the database and its user.

  12. Choose Local for Host name.

    The host field becomes localhost, restricting this account to local database connections.

  13. Enter a strong database password in Password and Re-type.

    The same password is needed in the WordPress database connection form.

  14. Select the option that creates a database with the same name as the user.

    This grants access to the new wordpress_wamp database. The wildcard database option and all Global privileges checkboxes remain clear.

  15. Click Go at the bottom of the account form.
  16. Confirm that phpMyAdmin reports You have added a new user.

    The database appears in the left sidebar, and the account is identified as wordpress_wamp@localhost.

  17. Open http://localhost/wordpress/ in your browser.
  18. Click Continue with English (United States) selected.

    A different preferred language can be selected before continuing.

  19. Open the database connection form.
  20. Enter the connection details for the database you created.
    Database Name: wordpress_wamp
    Username: wordpress_wamp
    Password: the database user's password
    Database Host: localhost
    Table Prefix: wp_

    The password is the one assigned to the database user, rather than a WordPress administrator password.

  21. Click Submit to save the database configuration.
  22. Click Run the installation after WordPress confirms the database connection.
  23. Enter a site title, administrator username, strong password and your email address.

    The administrator password is needed for later sign-ins. Password reset emails require a working mail service, which a local WampServer installation may not have.

  24. Click Install WordPress to create the site.
  25. Click Log In on the Success! screen.
  26. Enter the WordPress administrator username in Username or Email Address.
  27. Enter the WordPress administrator password in Password.
  28. Click Log In to sign in to the new dashboard.
  29. Click your site title in the dashboard's top administrator bar.
  30. Confirm that the local front page displays your site title and the initial Hello world! post.

    The address remains http://localhost/wordpress/, and the administrator bar shows that the signed-in account can access the site.

Share this guide