Sunteți pe pagina 1din 3

How to Install XAMPP and Host a website...?

Installing XAMPP
1. Run the installation file (xampp-win32-1.7.0-installer), which is given to you.
Or download it from internet.

2. Select a language of your choice E.g.: “English”.

3. Then you will get...

4. Then select the path to save...


5. Check all checkboxes...
Install Apache as server and install MySQL as server are important...!!!

6. Click install...
Then you will find the XAMPP running..

If you can’t find it then go to...


“Start”...”programs”....”Apache Friends”...”XAMPP”... & click “XAMPP Control Panel”
and start it.

7. Then if you double click ... you get...

And make sure to click the start button of Apache and MySQL...
When that is done... then a green tag “Running” will appear for Apache and MySQL..

8. Finally open your browser and type


“localhost “ in the address bar...
YOU will get a page to select langue...
Select English...
Then you will get...

If you get this


That’s it... it is working... you’re now ready to host your web application.

Hosting a website through Apache web server

1. Create a folder (with the name of your web application) in...


....<the place you installed xampp>...\xampp\htdocs
E.g.: myWeb (it is advisable to have these names without spaces in between)
2. Copy and paste all your web related files in that folder (myWeb).
Now you have launched your website...
3. You can now view your page through localhost...
E.g.: if you have
....<the place you installed xampp>...\xampp\htdocs\myWeb\mypage.html
To view this... type in the browser address bar
“http://localhost\myWeb\mypage.html” to view that page
4. If you have a file named ‘index.html’
e.g.:
....<the place you installed XAMPP>...\xampp\htdocs\myWeb\index.html
To view this... type in the browser address bar
“http://localhost\myWeb”
The page will be displayed.
Note:
 No need to specify the file name ‘index’. The server will automatically look
for index.html if the name is not given.
 Here the “localhost” can be replaces by your IP address.
 When you are in a LAN network you can type another computer’s IP
address and the path to the webpage in that computer to view the page
which is at that computer from your computer.

S-ar putea să vă placă și