WampServer - A Test Bed For WordPress
WampServer - A Test Bed For WordPress
Recently, I upgraded my WordPress blog to the latest version — with very low stress. One of the main reason for this was the preparation and testing I did on my local PC test bed. This article describes how I installed both a test bed and WordPress on my local PC.
On my local PC, I had previously installed Apache, mySQL, and PHP. My original installation was through open source and individual packages: I installed each of these components individually. However, there is a better and quicker way for those wishing to install their own WordPress test bed — WampServer.
The present components of this integrated, easy to install package are these:
Apache 2.2.11
Apache MySQL 5.1.30
PHP 5.2.8
I decided to give the latest version, WampServer 2, a try-out on my local PC and to test the ease of installing WordPress after WampServer was operational. I’ll give you a clue right now of how I like WampServer after my testing — it’s wonderful.
I am not going to bother with lots of detail about the installation because the installer is just plain bulletproof: except for electing to create Desktop and Quick-Launch icons, I accepted all of the defaults for an easy install.
When the installation was completed, the installer placed a new icon in the system tray. If the icon is not present after system startup, clicking either the quick-start or desktop icon will place it there. Left clicking the icon displays the WampServer menu.
The very first menu item is a toggle for placing the server online or offline. I keep this set to the offline (default) mode because I only want to access WampServer from my local PC.
At this point, a click on the “Localhost” menu item will bring up the very first, and very useful, WampServer HTML page.
My next step was to set a password for the mySQL server. Unless this is done, the server is a security risk. Clicking the phpMyAdmin menu item brought up phpMyAdmin. Initially, there were two information messages at the bottom of the page. One message warned that the password had not been set. The other message about the PHP mySQL library version can be safely ignored.
From the phpMyAdmin screen,I selected the Privileges tab, clicked the “Edit Privileges” icon for “root,” entered a password, and clicked the “Go” button. This assigned the password to the root user. One more step needed to be completed to eliminate a nasty-looking error message.
I opened the phpMyAdmin configuration file at C:/wamp/apps/phpmyadmin3.1.1/config.inc.php (for my installation). I used my favorite text editor to add the root password to the file.
In preparation for WordPress, I activated one additional Apache module. From the quick-start menu, I selected Apache/Apache modules/ and checked the rewrite_module. You may have to “Start All Services” for this to take effect. When the module has been activated, a check mark will be in front of the option. The rewrite_module is needed for “pretty URLs,” otherwise known as permalinks. For my WordPress sites, I configure permalinks for /%postname%/.
WordPress needs a mySQL database to store blog data. I opened phpMyAdmin , entered a database name of “wordpress,” and clicked the “Create” button. That’s it! WordPress will fill in the tables it needs.
Next, I downloaded the latest version of WordPress and unzipped the file into the C:/wamp/www directory. All web pages get placed in this root directory. In fact, the default home page for WampServer is reached through the index.php file that is already there.
Before running the WordPress installer, the wp-config.php file needed to be created and modified in order to tell WordPress how to access the database. See the first reference at the end of this article for how to create and configure the file.
Once the wp-config.php file had been modified, the installation could begin. I browsed to the wordpress directory, hit the “Enter” key, and the installation began.
After the installation, WordPress was up and running.
To help keep my test bed private, I installed a plugin called “Maintenance Mode.” The plugin enables me to display a web page to anyone browsing to the WordPress test site. I configured the page to display the message, “This Site is Permanently Offline.” The page does allow the administrator to log in, manage, and view the blog.
Installing a WampServer test bed on your local PC can save you loads of time by enabling you to test your WordPress installation, including plugins, and your (X)HTML pages — before putting them online. After WordPress is installed on the test bed, and depending on what plugins you install, other Apache modules might have to be activated. By using the WampServer menu, it is easy to do this.
REFERENCES
* How to Install and Style WordPress
– A comprehensive tutorial on installing and styling WordPress.
* Giving WordPress its Own Directory
– If you want to access WordPress from the root directory (instead of the “wordpress” directory), this article shows what to do.
* Download WampServer
For more information about installing, managing, theming, and styling WordPress, including a full XHTML version of this article with images, please visit
http://www.blog.selectdigitals.com
Should I Learn PHP and MySQL or Not?
I’ve had quite a few people ask me this question: “Should I learn PHP and MySQL?”.
The answer is never easy. It all depends on what you’re trying to accomplish. Are you looking to be involved in your own website? Is it being run on PHP and MySQL? What would you like to do with your website?
There’s a million questions you can ask yourself. I, personally, believe that anyone who wants to become more involved with their own website or run their own Web Design and Development Company should, at the minimum, learn the basics of PHP and MySQL.
Why should you? Well, let’s take a few examples…
Maybe you want to create a Members are on your site and you want to be able to offer downloads, use a more interactive Contact script, show information dynamically for your customers (i.e. Time and Date, Their personal information, the information they searched for last, Billing information, Download history, username and/or password, etc) to make it easier for them to browse through your site.
Maybe you want to be able to use PHP for your Search Engine Optimization needs? Needs such as 404 Redirects, 301 redirects, etc.
Maybe you need to create a built in search system for your e-commerce site? Maybe you’re looking to simply redirect people to an Affiliate program?
See the many, MANY ways you can use PHP? It’s a very valuable tool to know and understand. Imagine yourself having the knowledge to take a product like Wordpress and fully customize it to your own, personal, needs?
Think you can make money off of one of your Wordpress Plugin Ideas by knowing PHP? Think you can build a better Content Management System than what’s currently available? What about a new Social Networking Script - OR Community?
Companies like PHPFox have made a killing with their php knowledge. Likewise for companies such as Mambo, vBulletin and various other scripts that you can purchase.
So the next question would be HOW you can learn PHP?
There’s a million ways to learn but I try to explain to everybody that watching Videos and DOING the coding practices they ask you to do is how you’ll learn quickly.
Sure… lot’s of people have learned PHP by reading books. But I find the problem with books is a lack of support. You’re always going to learn more by seeing and doing rather than reading and doing. Luckily there are solutions to this problem.
You can also visit popular forums such as Sitepoint, Digitalpoint and other Webmaster related forums or communities that allow other members to help with questions and answers.
No matter what you choose to do - just remember that DOING is how you learn. Practice without reading or watching. Just take the little knowledge you have at the time and make it grow with practice.
I hope you figure out what you need to accomplish and good luck!
Want to learn PHP at rapid speed? Check out these awesome Video Tutorials I’ve found!
If you’re looking to become a PHP programmer - you need to see these videos!