Sunday, February 17, 2013

How to Install XAMPP on Windows 7 | Tutorial

Step 1: Download xampp

how to install xampp (1)
  • Wait for the download to start (about five seconds)
  • In the pop up window, click save or save as depending on your browser
how to install xampp (2)
  • Choose local disk (D:) as the save as folder
how to install xampp (3)

Step 2: Install xampp

  • Go to computer >>local disk D the downloaded file should be in there
  • Double click it
how to install xampp (4)
  • A warning window will show up, click yes
  • Select a language and click OK
how to install xampp (5)
  • In the xampp installation wizard, click next
  • Click browse, select local disk D and click OK
how to install xampp (6)
  • Click next
  • Check the buttons for install Apache, MySQL and Filezilla as service
  • Click install
how to install xampp (7)
  • Wait till the installation process is complete then click finish
  • Wait for these messages (screen shot below) to be sure that the installation was successful
how to install xampp (8)
  • Click yes, click ok
This is what xampp control panel looks like (below), you can stop, start Apache, MySQL and Filezilla services from here. We don't need to do anything here for now.
how to install xampp (9)
You can access the xampp control panel at any time by clicking the xampp icon on your desktop or going to all programs >>apache friends >>xampp >>control panel

Step 3: Test xampp

  • Launch any browser then go to this url: http://localhost
  • Choose a language
  • After choosing a language, you should get a page that looks like this:
how to install xampp (10)
  • Click status (left side of the page); this is to ensure that everything is ok. The status page should look like this:
how to install xampp (11)
The htdocs folder is the main directory for all www documents; that is, this is where you should keep all your web stuff. It's highly recommended to create a new folder for every website you want to create in xampp.
Let's create a one page website to test xampp
  • Go to computer >> local disk D >>xampp >> htdocs
  • In the htdocs folder, create a new folder; name it mysite
  • Launch notepad (Go to all programs >>accessories >>notepad)
  • Enter the code below into the new notepad document
<html>
<body>
<?php
$d=date("D");
if ($d=="Fri")
echo "Have a nice weekend!";
else
echo "Have a nice day!";
?>
</body>
</html>;
    how to install xampp (12)
  • Save the notepad file (file >> save as) as "test.php" (without the quotes. Make sure you add the .php extension) in the mysite folder we created above (computer >>local disk D >> xampp >>htdots >>mysite)
  • Go to your browser then go to this address: http://localhost/mysite/test.php (mysite is the name of the folder we created earlier).


www.gadgetbytes.in  software development, website designing, website development, graphic designing, 2D and 3D Animation, Multimedia company in Ludhiana Punjab    
This is the result you should get:










































    


 



No comments:

Post a Comment