Wordpress

Build Your Own WordPress Test Lab

In this tutorial, we’ll go through how to get WordPress running on your own PC (running Windows), so you have your own personal WordPress installation to experiment with or learn from. Yes, you could experiment with WordPress on your live website, but if you don’t have a web host or don’t want to play around with your live WordPress blog, then this tutorial is for you.

Firstly we need to install your own personal webserver to run WordPress. WordPress requires a web server, a MySQL database, and the PHP scripting language to run. Installing and configuring these in the past was hard work. Still, there’s now an application called WAMP (Windows – Apache – MySQL – PHP), which installs and configures everything to get your own personal web server up and running.

Normally you’d pay a web host to host your website or blog, and they’d provide the web server, database server, and scripting. Still, we’re going to install our own personal web server so we can do anything we like in our own personal WordPress test lab at zero cost.

Visit the WAMP site and download the WAMP Server. Once the file has been downloaded, double-click to install the WAMP software.

Once the install begins to accept the license agreement and all the default installation options and select to create a desktop icon at the end of the installation.

RELATED ARTICLES :

Once installed and running, you’ll have a WAMP icon down in the system tray in the bottom right-hand corner of your screen (it looks like a semi-circle). Click the WAMP icon down in the system tray and select phpMyAdmin – if the phpMyAdmin page displays, this tells us that the webserver is running and the PHP script can connect to our MySQL database, so you’re up and running.

We now have a functioning WAMP web & database server running on our PC. This server provides practically all the functionality that a paid hosting account offers but costs nothing and is for your personal use or use on an internal network if you’re teaching WordPress. It would be possible to use WAMP to host your live blog. Still, we’d advise that your live blog should be hosted at a web hosting company rather than allowing people to connect to your own PC running WAMP as there are security, speed, and availability issues in running your own publicly accessible web server.

We have our web server now. All we need to do is install WordPress. If you haven’t already started WAMP, start it by double-clicking the WAMP desktop icon. Open ‘My Computer’ or Windows Explorer and navigate to C:/WAMP/WWW and then create a new folder in the WWW folder called WordPress.

We then need to download WordPress, so go to the WordPress website and download the latest WordPress version. Once it’s downloaded, extract/unzip the installation file and copy the contents of its ‘WordPress’ folder to c:/wamp/www/WordPress.

If you’ve downloaded WordPress and successfully copied the WordPress files into the correct folder, you can open a browser and go – you should see a WordPress page asking you to create a configuration file. So go ahead and click ‘create a configuration file.’

WordPress then asks for the database hostname, username, and password to connect to your MySQL server. WordPress is a dynamic content management system, so anything you post in WordPress is stored in a MySQL database. When a visitor visits your blog, or you edit a post, WordPress dynamically pulls this information from the database displays it. To do this, we need to create a blank database with a username and password so WordPress can connect to it. WordPress will do all the hard work of populating this database with all the correct tables, but we have to manually create the database and username and password before WordPress can do this.

Click the WAMP icon in the lower right-hand corner of your screen and select phpMyAdmin. phpMyAdmin should now load in your browser, so than in the ‘create a new database’ box, enter wordpress_db and click ‘create.’

Now we need to add a user to the database. In phpMyAdmin, click the ‘Privileges’ tab, then click ‘Add a new User.’ In the ‘Username’ box, enter wordpress_user (or a username of your choice) and enter a password in the ‘password’ and ‘re-type’ boxes. Ensure that under ‘database for user,’ the option ‘Grant all privileges on database “wordpress_db”‘ is selected, and then click ‘Go’ down at the bottom right.

If we go back to the WordPress installation screen, we can enter the database name, username, and password we just created using phpMyAdmin. The database host should be localhost, and we’ll leave the table prefix as wp_.

Now click ‘submit,’ and WordPress should say that it can now communicate with the database. Click the ‘Run the install’ button. We then can fill in the options for site title, username, and password – this username and password is the WordPress username and password that you’d like to use to administer your WordPress blog, so you can make up your own username and password, which can (and should!) be different from the database username and password we created earlier.

Click ‘install WordPress,’ and WordPress should then say you’ve successfully installed it, and if you click the login button and enter your WordPress username and password, you’re up and running!

About author

I work for WideInfo and I love writing on my blog every day with huge new information to help my readers. Fashion is my hobby and eating food is my life. Social Media is my blood to connect my family and friends.
    Related posts
    Wordpress

    What is a WordPress Theme Framework?

    Wordpress

    Important Tips on Choosing a Reliable SEO Firm

    Wordpress

    Nine SEO Tools For Website Analysis

    Wordpress

    Top ways to improve WordPress website SEO

    Sign up for our newsletter and stay informed !