0% found this document useful (0 votes)
33 views

Installing X Am PP

This document provides instructions for installing XAMPP on Windows. It describes downloading XAMPP from the Apache Friends website, running the installer, selecting components to install, and accepting defaults. It also covers starting the Apache and MySQL servers from the XAMPP control panel, visiting localhost to test the installation, and making some initial security configurations like setting passwords. The document is an overview of the basic XAMPP installation and configuration process on Windows.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Installing X Am PP

This document provides instructions for installing XAMPP on Windows. It describes downloading XAMPP from the Apache Friends website, running the installer, selecting components to install, and accepting defaults. It also covers starting the Apache and MySQL servers from the XAMPP control panel, visiting localhost to test the installation, and making some initial security configurations like setting passwords. The document is an overview of the basic XAMPP installation and configuration process on Windows.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 39

Installing XAMPP

On Windows
Downloading XAMPP
Get it from https://www.apachefriends.org/download.html
Also available for Linux, Mac
Run the installer as usual
May get warnings. Continue.
Begin installation
Only need Apache, MySQL, PHP,
phpMyAdmin for this class.
No harm installing the
whole nine yards if you
have the disk space.
Accept the default install folder
It will inform you about Bitnami
Ignore for now. We
have a job to do.
Start install
Installation in progress

Takes a few
minutes
If Windows firewall is on the job, you
need to tell it its OK. Best not check
the Public networks box.
Done. Ready to play with it.
XAMPP control panel
Start Apache web server
Visit http://localhost

It works!

Select your language. It will remember


in future (but provide paths to others).
XAMPP home page (English)
Another test

Document root contains


both index.php and
index.html.

Server is configured to
give index.php preference,
taking you to xampp area.

Add index.html onto URL


to override default and
get to this small test page.
Viewing your site from elsewhere
Assuming you have a home network, want to let
your mom view your site on her tablet via WiFi LAN.
Use Run, enter command ipconfig to see your
machines IP address, or find it in network settings.
Say, 192.168.1.3.
If mom visits http://192.168.1.3/index.html , she
will see the It works! test page.
However, the xampp area is protected, only
viewable from localhost.
Back to control panel
Start MySQL database server
Again, Windows Firewall may pop
up
Control also from taskbar icon

Located in lower right of screen, near


USB and Bluetooth controls.

Right-click icon to bring up menu.


Configure control panel
Set default text editor

Will be used to edit


configuration files.
Do NOT use Word
or WordPad!
Text editor
By the way, I recommend Notepad++ to edit
configuration files and HTML or PHP code
Syntax-aware color coding
Edit multiple buffers at one time
Regular expression search/replace
Get it from
http://notepad-plus-plus.org/
Now lets check status
Everything we need is running
Security!!!
Security assessment.

Actually this is not true.


New XAMPP security
concept restricts all
sensitive directories to
localhost.

See C:\xampp\apache\conf\extra\httpd-xampp.conf
Lets tighten security.

Click here to fix security issues


Set MySQL root password

Old password: empty (none)


New password twice to verify

DO NOT CHECK THIS BOX!


Password changed. In control panel,
restart MySQL for it to take effect.
Visit phpMyAdmin from xampp
home page.

Username: root
Password: as just set
phpMyAdmin home page

Use it to manage your


MySQL databases.
Back to security: protect xampp
directory

Invent a username
Create a password
DO NOT CHECK THIS BOX!
All systems secure.
Taking ownership
Document root is C:\xampp\htdocs
Get there using Explorer on XAMPP console
XAMPP installation directory

Enter htdocs directory


Document root: C:\xampp\htdocs

Server configuration causes index.php to


take precedence over index.html

Rename index.php to something like index-orig.php so it will no longer be


used by default.
You can still get to xampp page by giving URL http://localhost/xampp
Now server defaults to index.html
Edit this file to customize your site.

You might also like