installing xampp - fordham
TRANSCRIPT
![Page 1: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/1.jpg)
Installing XAMPPOn Windows
![Page 2: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/2.jpg)
Downloading XAMPPGet it from https://www.apachefriends.org/download.html
![Page 3: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/3.jpg)
Also available for Linux, Mac
![Page 4: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/4.jpg)
Run the installer as usual
![Page 5: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/5.jpg)
May get warnings. Continue.
![Page 6: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/6.jpg)
Begin installation
![Page 7: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/7.jpg)
Only need Apache, MySQL, PHP, phpMyAdmin for this class.
No harm installing the whole nine yards if you have the disk space.
![Page 8: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/8.jpg)
Accept the default install folder
![Page 9: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/9.jpg)
It will inform you about Bitnami
Ignore for now. We have a job to do.
![Page 10: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/10.jpg)
Start install
![Page 11: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/11.jpg)
Installation in progress
Takes a few minutes
![Page 12: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/12.jpg)
If Windows firewall is on the job, you need to tell it it’s OK. Best not check the Public networks box.
![Page 13: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/13.jpg)
Done. Ready to play with it.
![Page 14: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/14.jpg)
XAMPP control panelStart Apache web server
![Page 15: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/15.jpg)
Visit http://localhost
Select your language. It will remember in future (but provide paths to others).
It works!
![Page 16: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/16.jpg)
XAMPP home page (English)
![Page 17: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/17.jpg)
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.
![Page 18: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/18.jpg)
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 machine’s 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.
![Page 19: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/19.jpg)
Back to control panelStart MySQL database server
![Page 20: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/20.jpg)
Again, Windows Firewall may pop up
![Page 21: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/21.jpg)
Control also from taskbar icon
Located in lower right of screen, near USB and Bluetooth controls.
Right-click icon to bring up menu.
![Page 22: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/22.jpg)
Configure control panel
![Page 23: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/23.jpg)
Set default text editor
Will be used to edit configuration files.Do NOT use Word or WordPad!
![Page 24: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/24.jpg)
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/
![Page 25: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/25.jpg)
Now let’s check status
![Page 26: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/26.jpg)
Everything we need is running
![Page 27: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/27.jpg)
Security!!!
![Page 28: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/28.jpg)
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
![Page 29: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/29.jpg)
Let’s tighten security.
Click here to fix security issues
![Page 30: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/30.jpg)
Set MySQL “root” password
DO NOT CHECK THIS BOX!
Old password: empty (none)New password twice to verify
![Page 31: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/31.jpg)
Password changed. In control panel, restart MySQL for it to take effect.
![Page 32: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/32.jpg)
Visit phpMyAdmin from xampphome page.
Username: rootPassword: as just set
![Page 33: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/33.jpg)
phpMyAdmin home page
Use it to manage your MySQL databases.
![Page 34: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/34.jpg)
Back to security: protect xamppdirectory
DO NOT CHECK THIS BOX!
Invent a usernameCreate a password
![Page 35: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/35.jpg)
All systems secure.
![Page 36: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/36.jpg)
Taking ownership• Document root is C:\xampp\htdocs
• Get there using Explorer on XAMPP console
![Page 37: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/37.jpg)
XAMPP installation directory
Enter htdocs directory
![Page 38: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/38.jpg)
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
![Page 39: Installing XAMPP - Fordham](https://reader031.vdocuments.us/reader031/viewer/2022021422/5885be9f1a28ab35558b51c2/html5/thumbnails/39.jpg)
Now server defaults to index.htmlEdit this file to customize your site.