HomeApache Page 2 - Working with XAMPP and Wordpress
Create Wordpress Databases and Configure wp_config.php - Apache
In this tutorial, you will learn how to work with Wordpress in a XAMPP (X, Apache, MySQL, PHP, and PERL) environment, including deployment and migration tips and techniques.
This time you need to create a Wordpress database in a XAMPP environment using phpMyAdmin and configure wp_config.php.
Type this URL in your browser address bar: http://localhost/phpmyadmin. Use the credentials you have configured during your XAMPP installation. You need to log-on to the phpMyAdmin using your root credentials.
After logging in, you will see “Create New Database”. Type wordpressdemo_database
When you see “Database wordpressdemo_database has been created”. Logout from phpMyAdmin.
Go to the "wordpressdemo" folder in XAMPP htdocs. Find a file named as “wp-config-sample.php”. Open this file using your favorite PHP editor or Notepad ++
Supposing you have the following Wordpress database and MySQL credentials:
You need to input the unique phrases and secret keys. Go to this URL: https://api.wordpress.org/secret-key/1.1/salt/
Copy the outputted results as shown in the browser then overwrite the following lines in the wp-config-sample.php
define('AUTH_KEY', 'put your unique phrase here'); define('SECURE_AUTH_KEY', 'put your unique phrase here'); define('LOGGED_IN_KEY', 'put your unique phrase here'); define('NONCE_KEY', 'put your unique phrase here'); define('AUTH_SALT', 'put your unique phrase here'); define('SECURE_AUTH_SALT', 'put your unique phrase here'); define('LOGGED_IN_SALT', 'put your unique phrase here'); define('NONCE_SALT', 'put your unique phrase here');
Save the edited file as wp-config.php and save it in the same location/path as wp-config-sample.php.
You can then safely delete “wp-config-sample.php”.
Install Wordpress
Now that you have completely configured the necessary files for installation, you are ready to install Wordpress:
Type this URL in the browser address: http://localhost/wordpressdemo/
The five minute installation screen will then show. You need to type the site title, username (do not use “admin” and change it to something else, for security reasons), your desired Wordpress password and your email.
Just check the “Allow my site to appear in search engines..”.
Finally click “Install Wordpress”.
If you see the message “Wordpress has been installed”. The installation has been successful.
Click Login and type your Wordpress login credentials.
To see your Wordpress website at its default. Open new tab in your browser and type this address: http://localhost/wordpressdemo/ , this is the default homepage. For example:
Note: As the flowchart mentions in the first section of this tutorial. This is the start of the Wordpress website development. Feel free to change the default theme to something you like and execute other website development tasks depending on your needs.