How to Install WordPress on WAMP

Categories WordPress
Install WordPress on Wamp

Install WordPress on WAMP to run a local version of your WordPress site. WAMP is a local server. You may install WAMP on your laptop to run a local installation of WordPress. Local WordPress installations are great for testing. In this article I show you how may install WordPress on WAMP. You will learn this:

How do I install WAMP on Windows?

Before you install WordPress on WAMP, install WAMP on Windows.

Install WAMP on Windows this way:

  1. Download WAMP from the WAMP website.
  2. Run the exe to install WAMP.

WAMP is installed.

The next step is to check whether you have installed WAMP correctly. Check, whether you have installed WAMP correctly this way:

  1. Open the root directory of WAMP.
  2. Run the wamp-control.exe.

The WAMP control panel is opened.

  1. Click Apache Webserver.

The Apache webserver is started.

Troubleshooting:

The port that Apache webserver listens to, might be used by another app. So, the port is busy. When the port is busy, then change the port of Apache. Go to the troubleshooting section to change the port of Apache.

  1. Click MySQL database.

The MySQL database is started.

  1. Open your web browser.
  2. Enter localhost into the navigation line.

The WAMP starting page is opened. WAMP is installed correctly.

The next step is to check whether you have installed the MySQL database correctly. Check whether you have installed the MySQL database correctly this way:

  1. Open the root directory of WAMP.
  2. Run the wamp-control.exe.

The WAMP control panel is opened.

  1. Click Apache Webserver.

The Apache webserver is started.

Troubleshooting:

The port that Apache webserver listens to, might be used by another app. So, the port is busy. When the port is busy, then change the port of Apache. Open the troubleshooting section to change the port of Apache.

  1. Click MySQL database.

The MySQL database is started.

  1. Open your web browser.
  2. Enter localhost into the navigation line.

The WAMP starting page is opened.

  1. Click phpMyAdmin on the menu.

The MySQL admin starting page is opened. MySQL is installed correctly.

How Do I Install WordPress on WAMP?

Before you start to install WordPress, upload the WordPress directory to WAMP.

How Do I Upload WordPress to WAMP?

Upload the WordPress to WAMP this way:

Prerequisites:

  • Install WAMP on Windows.
  • Download WordPress.
  1. Go to the directory where you have saved WordPress.
  2. Unzip the WordPress directory to the directory /wamp/htdocs/.

A new directory with the WordPress files is created.

  1. Name the new directory “wordpress”.
  2. Open the directory wordpress.
  3. Check, whether these directories exist:
    • wp-admin
    • wp-content
    • wp-includes

When the directories exist in the wordpress directory, then WordPress is uploaded to WAMP.

Troubleshooting:

If the directories do not exist in the wordpress directory, then open the troubleshooting section to solve this issue.

Now you may start to install WordPress. Therefore, you need a database.

How Do I Create a Database for WordPress?

Create a database for WordPress this way:

  1. Open the root directory of WAMP.
  2. Run the wamp-control.exe.

The WAMP control panel is opened.

  1. Click Apache Webserver.

The Apache webserver is started.

Troubleshooting:

Troubleshooting:

The port that Apache webserver listens to, might be used by another app. So, the port is busy. When the port is busy, then change the port of Apache. Open the troubleshooting section to change the port of Apache.

  1. Click MySQL database.

The MySQL database is started.

  1. Open your web browser.
  2. Enter localhost into the navigation line.
  3. Click phpMyAdmin on the menu.

The MySQL admin dashboard is opened.

  1. Click New on the left side bar.

The database configuration page is opened.

  1. Choose the name of your database.
  2. Click Create.

A database is created.

Note:

The username for your database is root by default. The password is empty by default.

The next step is to connect WordPress to your database.

How Do I Connect WordPress to My Database?

Connect WordPress to your database this way:

  1. Open the root directory of WordPress.
  2. Open the wp-config-sample.php.
  3. Search for the line define(‘DB_NAME’, ‘Name of Your Database’);.
  4. Replace Name of Your Database with the current name of your database.
  5. Search for the line define(‘DB_USER’, ‘username_here’);.
  6. Replace username_here with root.
  7. Search for the line define(‘DB_PASSWORD’, ‘password_here’);
  8. Warning:

    Do not delete the quotes.

    Delete password_here.

  1. Save the file as wp-config.php.

WordPress is connected to your database.

After you have connected the database to WordPress, start to install WordPress.

How Do I Install WordPress on WAMP?

Install WordPress on WAMP this way:

  1. Open the root directory of WAMP.
  2. Run the wamp-control.exe.

The WAMP control panel is opened.

  1. Click Apache Webserver.

The Apache webserver is started.

Troubleshooting:

The port that Apache webserver listens to, might be used by another app. So, the port is busy. When the port is busy, then change the port of Apache. Open the troubleshooting section to change the port of Apache.

  1. Click MySQL database.

The MySQL database is started.

  1. Open your web browser.
  2. Enter localhost/wordpress into the navigation line.

The WordPress installation page is opened.

Troubleshooting:

If the WordPress installation page does not show up, then open the troubleshooting section to solve this issue.

  1. Select your language.
  2. Click Continue.

The next page shows up.

  1. Note:

    Note the password.

    Fill out the form.

  1. Click Install WordPress.

The confirmation page is opened. WordPress is installed.

Troubleshootings:

The Port of My Apache webserver is Busy

Note:

The root directory may be C:/wamp/

Open the root directory of WAMP.

  1. Open the apache directory.
  2. Open the conf
  3. Open the file conf.
  4. Change the line Listen 80 to Listen 8080.
  5. Change the line ServerName localhost:80 to ServerName localhost:8080.
  6. Save the conf.
  7. Open the directory extra.

Note:

The directory is in the conf directory.

  1. Open the file httpd-ssl.conf.
  2. Change the line Listen 443 to Listen 4499.
  3. Change the line ServerName www.example.com:443 to ServerName localhost:4499.
  4. Save the httpd-ssl.conf.

The port of Apache is changed.

I Cannot Upload WordPress to WAMP

  1. Open the directory where you have downloaded WordPress in step 1 of How do I upload WordPress to WAMP?
  2. Unzip WordPress into the current directory.
  3. Open the unzipped WordPress directory.
  4. Check, whether these directories exist:
    • wp-admin
    • wp-content
    • wp-includes

Note:

When the directories exist, then go on with step 5. If they do not exist, then your WordPress download is incomplete. Download WordPress again. Start again at step 1 of How do I upload WordPress to WAMP?

  1. Select the whole content of the directory.
  2. Copy the selection.
  3. Open the root directory of WAMP.
  4. Open the htdocs
  5. Open the wordpress
  6. Paste the selection from step 5.

WordPress is uploaded to WAMP.

My WordPress Installation Page Does Not Show Up

There may be several reasons why your WordPress installation page does not show up:

How to Install WordPress on WAMP
Rate this post

2 thoughts on “How to Install WordPress on WAMP

Leave a Reply

Your email address will not be published. Required fields are marked *