Home arrow Apache arrow 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.

TABLE OF CONTENTS:
  1. Working with XAMPP and Wordpress
  2. Create Wordpress Databases and Configure wp_config.php
  3. Wordpress Deployment and Migration Tips
By: Codex-M
Rating: starstarstarstarstar / 3
May 13, 2011

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement


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:

Database name: wordpressdemo_database
Database user: root
Database password: abcxyz
Database host: localhost


This is the code:


<?php
define('DB_NAME', 'wordpressdemo_database');

//MySQL database username
define('DB_USER', 'root');

//MySQL database password
define('DB_PASSWORD', 'abcxyz');

//MySQL hostname
define('DB_HOST', 'localhost');

//rest of the wp-config-sample code here

 

  • 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.



 
 
>>> More Apache Articles          >>> More By Codex-M
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

APACHE ARTICLES

- Apache Unveils Cassandra 1.2
- Apache on ARM Chips? Dell and Calxeda Help M...
- The Down Side of Open Source Software
- VMware Unveils Serengeti for Apache Hadoop
- SAP Takes Steps to Improve Hadoop Integration
- Looking to Hone Apache Hadoop Skills?
- How to Install Joomla on WAMPP
- Working with XAMPP and Wordpress
- GUI Available for Apache Camel
- Reduce Server Load for Apache and PHP Websit...
- Creating a VAMP (Vista, Apache, MySQL, PHP) ...
- Putting Apache in Jail
- Containing Intrusions in Apache
- Server Limits for Apache Security
- Setting Permissions in Apache

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: