Install and configure Apache, PHP and MySQL for Drupal

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.

  1. Here are the steps to install WampServer.
  2. Download WampServer 2.0-h.
  3. Double click on the WampServer's executable(e.g. WampServer2.0h.exe).
  4. Click Yes.
  5. Click Next.
  6. Select I accept the agreement and Click Next.
  7. Click Next.
  8. Click Next.
  9. Click Install.
  10. If you have Firefox installed, the message above will show up. Click on Yes/No depending on your preference.
  11. Click Next.
  12. Click Finnish.
  13. Note: If you restart your computer, you need start the WampServer again. Simply execute C:\wamp\wampmanager.exe.

Set the root password of MySQL

  1. Open the MySQL console by clicking on the WampServer icon located in the system tray, select MySQL->MySQL console.
  2. By default, there is no root password. Therefore, when MySQL console window appeared, simply press Enter.
  3. 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;

Create drupal database in MySQL

In MySQL console, execute also the following query to create a database for Drupal:

Image icon wampserver_install_02.png23.15 KB