WampServer: Working Locally

Working locally is something every web developer should be able to do. It can save you a lot of headache when you trying out some new things such as plugins or themes before you carry them to a live site.

My program of choice is WampServer which create a great windows development environment. There are many others out there to choose from but for me WampServer  just seemed perfect for me.

With WampServer you can have a locally wordpress environment in 5 minutes.

So how do I begin

To get started visit the WampServer site and download the program.

Install it and make sure it is running.

Next we need to download wordpress from wordpress.org and extract the file to your desktop.

Now we need to create the database.

To create the database we need to  Open Url http://localhost/phpmyadmin/  (you can just click this link). Click on the databases tab and create your new database. (remember your database name so you will not have to come back here)

Navigate to  (C: ) drive /wamp /www  and create a new folder and name it whatever you like (this folder name will be part your local address).

Open the folder you just created as well the folder containing the wordpress files. Copy all the files from the wordpress folder  into the folder you create inside the www folder.

wampserver

 

This next step will require a code editor like Atom, Brackets, Notepad++ or Sublime Text. I am kinda torn between Brackets and Atom but you choose what ever you like.

Open up your wp-config-sample.php  by going to  c:/wamp/www/rabbit/wp-config-sample.php so we can make some changes.

 

Change the following lines:

/** The name of the database for WordPress */

define('DB_NAME', 'database_name_here');

/** MySQL database username */

define('DB_USER', 'username_here');

/** MySQL database password */

define('DB_PASSWORD', 'password_here');

/** MySQL hostname */

define('DB_HOST', 'localhost');

Before changes:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');

/** MySQL database username */
define('DB_USER', 'username_here');

/** MySQL database password */
define('DB_PASSWORD', 'password_here');

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

After changes:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'your database name');

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

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

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

Important

Save the wp-config-sample.php and rename it to wp-config.php .

Next open url  localhost/your folder name/wp-admin/install.php  to start the installation process.

Choose your language. Give your site a title , pick a user name and password. Then press install and you are done.

So how do I find my site

The url to your site is   localhost/your folders name/  so for example if you named your folder "mustard" you would type localhost/mustard/ for the url and hit enter.

You have  successfully installed WordPress using WAMP.

Congratulations.

Tips

You may need to change your permalinks if you are having issues with pages going 404. So just change it to plain and problem solved.

I hope you found this useful leave a comment below.

~Cheers

About the author

Aires Dagraca, is the creative force behind Xolani Studios, a Web Design Company that focuses on bringing the best web experience to their clients. He also enjoys Gaming, Web Design, Graphic design and family time with his wife and kids. For business inquiries reach out to him here.

A special note from the author.

iHeart pagelines

 

Leave a Reply

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


wampserver

WampServer: Working Locally

Published on by | Add Comment

Working locally is something every web developer should be able to do. It can save you a lot of headache when you trying out some new things such as plugins or themes before you carry them to a live site.

My program of choice is WampServer which create a great windows development environment. There are many others out there to choose from but for me WampServer  just seemed perfect for me.

With WampServer you can have a locally wordpress environment in 5 minutes.

So how do I begin

To get started visit the WampServer site and download the program.

Install it and make sure it is running.

Next we need to download wordpress from wordpress.org and extract the file to your desktop.

Now we need to create the database.

To create the database we need to  Open Url http://localhost/phpmyadmin/  (you can just click this link). Click on the databases tab and create your new database. (remember your database name so you will not have to come back here)

Navigate to  (C: ) drive /wamp /www  and create a new folder and name it whatever you like (this folder name will be part your local address).

Open the folder you just created as well the folder containing the wordpress files. Copy all the files from the wordpress folder  into the folder you create inside the www folder.

wampserver

 

This next step will require a code editor like Atom, Brackets, Notepad++ or Sublime Text. I am kinda torn between Brackets and Atom but you choose what ever you like.

Open up your wp-config-sample.php  by going to  c:/wamp/www/rabbit/wp-config-sample.php so we can make some changes.

 

Change the following lines:

/** The name of the database for WordPress */

define('DB_NAME', 'database_name_here');

/** MySQL database username */

define('DB_USER', 'username_here');

/** MySQL database password */

define('DB_PASSWORD', 'password_here');

/** MySQL hostname */

define('DB_HOST', 'localhost');

Before changes:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');

/** MySQL database username */
define('DB_USER', 'username_here');

/** MySQL database password */
define('DB_PASSWORD', 'password_here');

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

After changes:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'your database name');

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

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

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

Important

Save the wp-config-sample.php and rename it to wp-config.php .

Next open url  localhost/your folder name/wp-admin/install.php  to start the installation process.

Choose your language. Give your site a title , pick a user name and password. Then press install and you are done.

So how do I find my site

The url to your site is   localhost/your folders name/  so for example if you named your folder "mustard" you would type localhost/mustard/ for the url and hit enter.

You have  successfully installed WordPress using WAMP.

Congratulations.

Tips

You may need to change your permalinks if you are having issues with pages going 404. So just change it to plain and problem solved.

I hope you found this useful leave a comment below.

~Cheers

About the author

Aires Dagraca, is the creative force behind Xolani Studios, a Web Design Company that focuses on bringing the best web experience to their clients. He also enjoys Gaming, Web Design, Graphic design and family time with his wife and kids. For business inquiries reach out to him here.

A special note from the author.

iHeart pagelines

 

Leave a Reply

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


Error: Please enter a valid email address

Error: Invalid email

Error: Please enter your first name

Error: Please enter your last name

Error: Please enter a username

Error: Please enter a password

Error: Please confirm your password

Error: Password and password confirmation do not match