Installing Apache, PHP, MySQL and Wordpress on Windows Platform - Part 2

Posted by Daniel - 573 Views

Install PHP, install Apache, install mySQL, install wordpressThis 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:

// ** MySQL settings ** //
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:

http://localhost/mywpblog/index.php

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:

http://localhost/mywpblog/wp-admin/install.php

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:

LoadModule rewrite_module modules/mod_rewrite.so

2) Change the setting of the htdocs directory as shown as below:

<directory>
#
# 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…

__________________________

Related posts brought to you by Yet Another Related Posts Plugin.

share this article

Digg del.icio.us Netscape StumbleUpon Yahoo! MyWeb reddit Furl Magnolia Newsvine Technorati SlashDot Blinklist Simpy Google
This post as PDFPosted in: Programming - January 2008


Leave a Reply


Options for your comment:





Get my Full Feed Here or you can subscribe to one of my category based feeds below:
Coffee Break

Latest Blog Entries

Categories

Neighbours and Friends

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.