100% found this document useful (2 votes)
3K views

XAMPP Tutorial

XAMPP is an easy to install package that contains Apache, MySQL, PHP and other useful programs. It allows users to easily set up a local web development environment. To install XAMPP, download the installer and let it install with default settings. This will place files in C:/xampp/ with the main directory for web files being C:/xampp/htdocs/. Once installed, use the XAMPP control panel to start Apache and MySQL. You can then access local web pages at http://localhost to test your environment.

Uploaded by

Aek Ka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
3K views

XAMPP Tutorial

XAMPP is an easy to install package that contains Apache, MySQL, PHP and other useful programs. It allows users to easily set up a local web development environment. To install XAMPP, download the installer and let it install with default settings. This will place files in C:/xampp/ with the main directory for web files being C:/xampp/htdocs/. Once installed, use the XAMPP control panel to start Apache and MySQL. You can then access local web pages at http://localhost to test your environment.

Uploaded by

Aek Ka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

XAMPP Installation

1
Introducing XAMPP

• An integration package containing a number of useful


packages that make it easy to host web sites on various
platforms.
Apache – MySQL - PHP
– WAMP or LAMP
• Allow the ease of installation and set up
• Main Page:
http://www.apachefriends.org/en/xampp.html

2
Introducing XAMPP (cont.)
Basic packages include system, programming & server
software:
• Apache: the famous Web server
• MySQL: the widely-used, free, open source database
• PHP: the programming language
• Perl: the programming language
• ProFTPD: an FTP server
• OpenSSL: for secure sockets layer support
• PhpMyAdmin: for MySQL admin.

3
XAMPP Installation
• Download XAMPP installer and let the install begin:
– Using the installer version is the easiest way to install XAMPP.
– Use default directory for convenience

4
There can be some problems
Port 80 (Apache’s default port) can be occupied by
other programs 

http://www.apachefriends.org/en/faq-xampp-windows.html
5
XAMPP Directories
• XAMPP default installation directory is c:/xampp/
• The directory of interest is “c:/xampp/htdocs/”
and it’s called the webroot (or document root)
– PHP files are put in the webroot (c:/xampp/htdocs/)
– c:/xampp/htdocs/ maps to http://localhost/
• For example, c:/xampp/htdocs/project/script.php maps to
 http://localhost/project/script.php
– If no file is specified, Apache looks for index.php
• For example, c:/xampp/htdocs/project/ maps to 
http://localhost/project/index.php

6
Installation complete!

7
XAMPP Control Panel

No need to tick
for running as
“service”

Apache  HTTP Server


MySQL  DBMS
FileZilla  FTP Client
Mercury  SMTP Client

8
Starting Apache & MySQL

Toggle button

9
Type http://localhost/ or http://127.0.0.1/

If the server is up and running,


you will get this splash screen.
Click on English.
10
Once English is
clicked on, the
Welcome webpage is
shown for XAMPP.
11
http://localhost/xampp/index.php

You’re not accessing the WWW


but rather a webpage locally hosted
on your computer, which is now
running as a web server (localhost).

12
Click on Status to
determine if everything
is working correctly.

13
What you chose to install
should be lighted green
on this chart
14
Check the “working environment”

Click on phpinfo() to check


the working environment. 15
From, Tools 
phpMyAdmin, we can
manage MySQL
16

You might also like