In this tutorial, we’ll go through how to get WordPress running on your PC (running Windows) so you have your own 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, this tutorial is for you.
Firstly, we need to install your 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 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 web server so we can do anything we like in our own private 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 installation begins accept the license agreement and all the default installation options and select the Create a desktop icon at the end of the installation.
RELATED ARTICLES :
Once installed and running, you’ll have a WAMP icon 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 PC running WAMP, as there are security, speed, and availability issues in running your 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, double-click the WAMP desktop icon. Open ‘My Computer’ or Windows Explorer nav,igate 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 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 and displays it. To do this, we need to create a blank database with a username and password so WordPress can connect. 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 then 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 return 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 it can directly 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 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. if you click the login button and enter your WordPress username and password, you’re up and running!