Installing Apache, PHP, MySQL and Wordpress on Windows Platform - Part 2
Posted by Daniel - 573 Views
This is the second part continued from the first article posted before. If on the first I had described how to install Apache, PHP and MySQL, in this second part I will cover how to install the most popular blogging platform - Wordpress - Basically its a web application built with PHP but the plug-n-play feature (if I am allowed to say that way) makes it easy to use, user friendly, fast in the term of deploying functionalities, plenty of supports - its scattered all over the net and open source of course.
INSTALLING WORDPRESS
1) Get the latest version of wordpress available, just FYI: I am using Wordpress 2.2.1 by the time this tutorial was written.
2) Extract the compressed wordpress files, you will have a “wordpress” folder as the final result. Copy this folder into your “c:\apache\htdocs” then rename it to whatever you like if necessary for example “mywpblog“
3) Wordpress instalation will need a MySQL database, so create one for it by following these steps:
- Open MySQL Query Browser
- Leave [Stored Connection] Empty
- Enter “localhost” for [Server Host]
- Enter “root” for [Username]
- Enter the password for “root” in the [Password] textbox
- Leave [Default Schema] empty
- Leave the [Port] intact
Then hit OK, there should be a message remind you that no Default Schema Spefified, choose ignore. Don’t worry it will be just fine.
4) On the [Schemata] tab, you will see mysql predefined schemas - but you will need to create one more for your blog database. Ok, go ahead right click on Schemata listbox then choose Create New Schema (Ctrl+N), enter the name of the schema, for example “mywpblogdb” then hit OK. Done! the DB for your blog has been setup.
5) Now you will need to edit the wp-config.php file. Browse with Windows Explorer into “c:\apache\htdocs\mywpblog”. Find “wp-config-sample.php“, then rename it into “wp-config.php“
6) Next, open the wp-config.php with your text editor to edit it. If you have been following me on the naming suggestions on the previous steps, you will need to edit the file so it will look like this:
define(‘DB_NAME’, ‘mywpblogdb’); // The name of the database
define(‘DB_USER’, ‘root’); // Your MySQL username
define(‘DB_PASSWORD’, ‘1234567′); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
define(‘DB_CHARSET’, ‘utf8′);
define(‘DB_COLLATE’, ”);
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!
// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to ‘de’
// to enable German language support.
define (‘WPLANG’, ”);
/* That’s all, stop editing! Happy blogging. */
define(‘ABSPATH’, dirname(__FILE__).‘/’);
require_once(ABSPATH.‘wp-settings.php’);
?>
7) Back to your browser, then type this in the address bar:
Normally you will be informed that Wordpress is not installed and there is a link to start instalation. Please click the link. It will goes to:
Click the “First Step” link, then follow the next step, it will take only 2 steps actually. When it finish installing you will be prompted with the information of the Administrator Username and Password to log as admin. Make sure you save the login info somewhere you can get it for future use.
8 ) Click the login link, then log with the previous login info shown.
Done! You will see the Wordpress admin panel after that. To view the first look of your blog, you can click the “View Site” link near the top-left of the page.
If you want to enable the mod_rewrite module, you can follow these steps:
1) Open the httpd.conf file from the c:\apache\conf folder then enable the mod_rewrite module by removing the # from this line:
2) Change the setting of the htdocs directory as shown as below:
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* — "Options All"
# doesn’t give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks</directory>
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
OK, thats all. If you have any question, you can freely post it here, I will be happy to assist the best I can. Enjoy…
__________________________
The following posts are programmatically considered as related to the current post by YARPP Plugin:
- Installing Apache, PHP, MySQL and Wordpress on Windows Platform - Part 1
- The Modified Version of phoogle WordPress plugin - Eliminating the needs of Exec-PHP
- Windows 7 Release Candidate is now available
- TCPView for Windows, Tool to check TCP and UDP Connections on your system
- ContuttoPDF (Wordpress Plugin to convert your Content to PDF)
Related posts brought to you by Yet Another Related Posts Plugin.
Latest from Programming
- Microsoft Excel Import External Data Problem: When Microsoft Query doesn’t recognize some of your parameters
- SmartImageResizer Plugin, WordPress plugin based on Joe Lencioni’s Smart Image Resizer
- Resize Image or Crop Image with Joe Lencioni’s Smart Image Resizer, WordPress Setup
- Free Softwares to help you learn Regular Expression or to enhance your RegEx skill
- ConsoleProgressBar - Simple Progress Bar Function for your VB.Net Console Application
Leave a Reply
Latest Blog Entries
- Sweet Home 3D, a free home design software
- 26x Optical Zoom on a Compact Digital Camera?
- Windows 7 Release Candidate is now available
- Microsoft Excel Import External Data Problem: When Microsoft Query doesn’t recognize some of your parameters
- The Lack of Chances is the Source of Poverty, Can we make a different?
- SmartFTP Client is no longer Free. What would be the best replacement for it?
- Kantaris Media Player, The most suitable Free Media Player on my Audio Environment
Categories
Neighbours and Friends
- Anti Teori
- Busby SEO Test Page
- Deny Sri
- Digital Media Convert
- Freeware Maniac
- Oeroek
- RidhoCyber
- Suraja Web
Comments - Thanks Guys :)
Therese Lachance: Hi, Any idea how to have ContuttoPDF fetch the correct page language?
Marlena Albu: Super Blog, Dude! I am constantly on the watch for new and interesting sites and postings about audio equipment… which is what...
tresloukadu: yo how did u fixed when the tags shows <? and it shows < “& l t ; ” ?? please send me an email.
Sean: This is a great piece of code and thanks for adding the updates. Sean’s last blog post: Not All Text Message Marketing Is Created...
rodhy: Thank for your code, it very usefull for me. best regard.
Most Popular Entries
- Passing arguments to your VB.NET console application
- ConsoleProgressBar - Simple Progress Bar Function for your VB.Net Console Application
- ASCII To PDU Converter (Convert ASCII to PDU and vice versa)
- An example: Using CPort Delphi Component to read data from your cellphone
- Microsoft Excel Import External Data Problem: When Microsoft Query doesn’t recognize some of your parameters
Software Collections
- Sweet Home 3D, a free home design software
- SmartFTP Client is no longer Free. What would be the best replacement for it?
- Kantaris Media Player, The most suitable Free Media Player on my Audio Environment
- TCPView for Windows, Tool to check TCP and UDP Connections on your system
- The Code Snippet Plugin, my favourite syntax highlighter plugin for WordPress
Blogging Related Stuff
- Change the WordPress permalink structure to the best format, and yes it’s a little bit scary :D
- Something is wrong, the Google Search Result from my blog looks bad, don’t laugh please :D
- Several tips to reduce Blog Noise, especially when your blog covers more than one niche
- How to remove your indexed pages or even your entire site from Google and Yahoo!

















