How to setup WordPress locally: Installing WordPress

Published on

Last Updated on

Estimated Reading Time: 1 min

Setting up MySQL database

  • Login to phpMyAdmin.
  • Click on the Databases tab.
    • Create a new Database.
    • Set the name for your database.
    • Set the Collation to: utf8_unicode_ci.

Configuring PHP for Wordpress

  • Open php.ini (in the System Directory) for editing.
  • Remove the semicolon from the line ;extension=php_mysql.dll.
    • If the line does not exist, add the line.
  • Restart the server

Installing Wordpress on Windows

  • Go to the WordPress Website and download the zip file.
  • Extract the WordPress directory to the webserver Document Root.
  • Open the WordPress directory.
  • Copy the wp-config-sample.php to wp-config.php.
  • Open wp-config.php for editing and update the following settings.
define('DB_NAME', 'database_name_here');
define('DB_USER', 'username_here');.
define('DB_PASSWORD', 'password_here');.
  • In the browser, navigate to http://localhost:8080/wordpress.
  • Fill in the details and click on Install WordPress.

Testing Wordpress

  • In the browser, navigate to http://localhost:8080/wordpress/wp-admin.
  • Enter your details and log in.
  • You should see the WordPress dashboard.