JimmyR.com


Cool Video Blog

Installing MySQL, PHP and Apache on Windows Beginners Guide

Apache Installation

Download apache and just follow the intaller.

MySQL Installation

You can run mysql on your home computer without the need of setting up a http server like apache. First, download mysql free. For windows it's a simple installer that quickly installs a functional mysql server.

PHP Installation

First, download php zip package. Install it into C:\PHP. Then download the installer and run it. Please read the installation instructions. You will have to add

LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php

to httpd.conf. It's usually located in C:\Program Files\Apache Group\Apache\conf .

Did Apache Work?

Check out http://127.0.0.1/ This is your localhost address. Go to the Apache Group\Apache\htdocs folder and add an index.html and see if it changed what appears in the localhost address.

Did MySQL Work?

Open C:\WINDOWS\system32\cmd.exe , type "cd\", enter, type "cd mysql\bin", enter, type mysql -u root, enter. If it didn't give you errors, you're good.

Did PHP Work?

Make a new page with <? php echo phpinfo(); ?> in your htdocs folder. Then check it at http://127.0.0.1/whateveryounamedit.php .