Install Apache, PHP and MySQL
Before installing Drupal, you need to install Apache, PHP and MySQL. The easiest way to install them is to use an all-in-one installer that will install all 3 softwares. I used WampServer 2.0-h. Please note that Drupal 6.x doesn't support PHP 5.3.x. Therefore, choose carefully the version of WampServer that you download. As of version 2.0-i, WampServer includes PHP 5.3.0.
- Here are the steps to install WampServer.
- Download WampServer 2.0-h.
- Double click on the WampServer's executable(e.g. WampServer2.0h.exe).
- Click Yes.
- Click Next.
- Select I accept the agreement and Click Next.
- Click Next.
- Click Next.
- Click Install.
- If you have Firefox installed, the message above will show up. Click on Yes/No depending on your preference.
- Click Next.
- Click Finnish.
-
Note: If you restart your computer, you need start the WampServer again. Simply execute C:\wamp\wampmanager.exe.
Set the root password of MySQL
- Open the MySQL console by clicking on the WampServer icon located in the system tray, select MySQL->MySQL console.
- By default, there is no root password. Therefore, when MySQL console window appeared, simply press Enter.
- Execute the following SQL queries to change the root password. Simply change mypassword to whatever you want.
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
FLUSH PRIVILEGES;
Create drupal database in MySQL
In MySQL console, execute also the following query to create a database for Drupal:
CREATE DATABASE drupal;