Setting up server environment
- Well, in order to run any PHP or MySQL related webistes on your local Windows machine you need to simulate a server environment.
- You can use WAMP server for this purpose.
- Go to WampServer.com and download the latest stable version.
- Double click the exe file and install. A detailed installation steps for WAMP should be available on their site.
- While installing, you will select the default Drive. I suggest you keep it D, E, or F, instead of C.
- In case you have a crash and need to format the C drive, you will not lose your files.
- Now, you can ignore the SMTP and Host details. Let them be default.
- Once you are done with the installation, visit the Drive in which you installed and you should find a folder "wamp".
- Within "wamp", you should "www" folder.
- The "www" folder is where you can save your projects.
- For example, create a new folder "mysite" inside the "www" folder. Ex: D:/wamp/www/mysite
- Now, create a sample PHP file called index.php and place the below code inside it:
<?PHP print "Hurray! First step accomplished" ?> - Save the file and open your browser
- Visit http://localhost/
- You should see "mysite" in the list of projects, click on it
- You should get the message that you typed in your index.php file.
Installing Drupal:
Files
- Download the latest stable version of ">Drupal from here
- Extract the files and copy the complete folder inside /wamp/www/mydrupalsite
- The file structure should be like this: D:/wamp/www/mydrupalsite/index.php
Database
- Visit http://localhost/ from your browser
- Click on phpMyAdmin link in the Tools section
- Create a new database. For example, mydrupalsiteDB
- By default there is no password protection for databases when you install WAMP
- So, click on Privileges link and click on "Add a new user"
- Type the username, select the Host as Localhost, and type in the password
- Then check all the privileges in the "Global Privileges" section
- Finally, click "Go"
- You have successfully created a database
Configuration
- Now go to your browser and visit http://localhost/mydrupalsite
- It should take you to the installation page
- The process here is self-explanatory with an exception
- The database details are the ones you just created from phpMyAdmin
- No need to change any advanced options (at least until you become an expert)
- Once the Import is complete, you will have the option to go to the start page of your new site or to go to the Admin page
- From here, you are ready to enter the Drupal World


