Installing Apache, PHP, MySQL and Wordpress on Windows Platform - Part 2
Posted by Daniel - 939 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
- TCPView for Windows, Tool to check TCP and UDP Connections on your system
- ContuttoPDF (Wordpress Plugin to convert your Content to PDF)
- Wordpress, How to insert the Gravatar icon into the comment section
Leave a Reply
Hi, my name is Daniel Nugraha, a single male live on an island called Java, Indonesia. This is the place for me to share my interest in computer programming.
-
Get my Full Feed Here
Comments - Thanks Guys :)
Rangga Kusuma: Gan, Tengkiu buat postingan yang sangat berguna. Kebetulan ada project utk bikin sms gateway, dan converter Agan sangat berguna utk...
Chuck Norton: I actually went ahead & bolted over to Justin’s Get The Image plugin here: http://justintadlock.com/ar...
Chuck Norton: Question: is it possible to insert something like [custfieldimg=”joice1.jpg,15 0,1:1″] into the actual templates instead of...
Therese Lachance: Hi, Any idea how to have ContuttoPDF fetch the correct page language?
tresloukadu: yo how did u fixed when the tags shows <? and it shows < “& l t ; ” ?? please send me an email.













