How to Set-Up & Install XAMPP localhost (test php locally & change port number)

preview_player
Показать описание
Want to test your php site on your own computer before publishing it live for the world? Use XAMPP & eliminate the need to ftp every time you make a change. A browser like chrome can always view html files & css, but can't render PHP files on its own. You need some sort of server.

-Ignore the "User Account Control" warning on windows
-Select all components (or none, the important one is PHP)
-On Windows: don't install to "Program Files", put it somewhere else
-Start the xampp control panel
-Click "Start" next to the Apache server (this allows you to run php files)

➤Viewing Pages
-Find the installation directory
Windows= C:\xampp\htdocs
Mac= /Applications/XAMPP/htdocs
-Then "htdocs" inside which holds all the files you can view
-Put a folder like "test" inside "htdocs"
-Any php files you place there can be accessed via "localhost/test"
-Normal html relative links work for navigating up & down folder trees

➤Notes
-Click "Config" in upper left
-Under "Autostart of Modules", click the checkbox next to "Apache"
--This makes the Apache server start every time you open the Control Panel
➙You can close the xampp control panel & the apache server keeps running
-Don't open the control panel by clicking the shortcut
-Instead, use the active control panel in the bottom right (notification area)

➤Port Number Changes
-Click "config" next to the "apache" server
-Edit 2 lines to change to port number
-"Listen 80" & "ServerName localhost:80"
-Save the file
-Restart the apache server
-Access your new server "localhost:90/test" (90 is the new port)
Рекомендации по теме
Комментарии
Автор

Thank you for this! Damn, this has gotta be one of the best online computing tutorials I've ever seen (not even joking)... I know it's quite simple but it's so clear and concise, while also covering any issues you might have. Awesome!

joethomas-williams
Автор

finaly a clear explanation to how to set a local host, thanks a lot man, you saved my day.

archissine
Автор

FINALLY! Found someone who knows how to explain things. Thank you so much! You helped me BIG TIME! Thank you for sharing this.

cjrborras
Автор

Thank you for this awesome tutorial...I was tearing the hair out of my head:)

codergirl
Автор

thank you so much man, as a complete beginner, i love that you explained it simply for noobs like me

lavs
Автор

this type of tutorials are really rare,
so simple and useful and short and covering everything,

bmmask
Автор

This was so helpful. I had problem starting XAMPP after the installation. The error message was like Port 80 was already occupied, so I changed the Port to 90 in the manner explained in this video and boom, it started.

ganiyu
Автор

This worked perfectly! I just used the instructions in the description. Very concise.

andrewalten
Автор

Thanx TanUv90... I have looked for a good tutorial to set up localhost for a long time. Your tutorial is great and its now working on my computer. Good work!!!

hbraekke
Автор

Actually useful, awesome. So many people are horrible at explaining how things work.

adamjensen
Автор

thank u so much man!! you dont now how gratefull i am for this video, it saved my grade <3

Vanilla-Led
Автор

Quick and straight to the point. Love it

Markilgrande
Автор

This video deserves a million views.
kudos!

paco
Автор

Thank you so much! I researched several videos but this was awesome and can't be any clear.

reshmisharma
Автор

Thank you so much....this tutorial helps me to run different PHP projects through xampp

MahadevCreations
Автор

THANK U. Finally a really clear explanation

vksarkisyan
Автор

Thank You so much. i didnt know how to access my localhost but you helped. Thank you soo much

joshuazamora
Автор

Thank you - still relative info that helped me get started.

aXBlackDeathXa
Автор

Awesome! Very good at explaining things.

btror
Автор

Thank you so much! Very helpfull explaining!

easantos