Тёмный

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

TanUv90
Подписаться 6 тыс.
Просмотров 225 тыс.
50% 1

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.
➤Download www.apachefrie...
-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
Details stackoverflow.c...
-Click "config" next to the "apache" server
-edit the "http.conf" file or "httpd.conf"
Windows= C:\xampp\apache\conf\http.conf
Mac= /Applications/XAMPP/xamppfiles/etc/httpd.conf
-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)

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 85   
@bmmask5806
@bmmask5806 2 года назад
this type of tutorials are really rare, so simple and useful and short and covering everything,
@cjrborras
@cjrborras 3 года назад
FINALLY! Found someone who knows how to explain things. Thank you so much! You helped me BIG TIME! Thank you for sharing this.
@joethomas-williams146
@joethomas-williams146 4 года назад
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!
@archissine
@archissine 7 лет назад
finaly a clear explanation to how to set a local host, thanks a lot man, you saved my day.
@codergirl1518
@codergirl1518 7 лет назад
Thank you for this awesome tutorial...I was tearing the hair out of my head:)
@paco1914
@paco1914 5 лет назад
This video deserves a million views. kudos!
@incubatork
@incubatork 4 года назад
Why could the writers of xampp not have done something like this to get us going, great tutorial thank you, its easy, but only when you know now
@hbraekke
@hbraekke 6 лет назад
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!!!
@andrewalten3185
@andrewalten3185 6 лет назад
This worked perfectly! I just used the instructions in the description. Very concise.
@dontbemadsunshine
@dontbemadsunshine 3 года назад
Awesome - still works. Thanks dude!
@Markilgrande
@Markilgrande 2 года назад
Quick and straight to the point. Love it
@bernadetteromano8775
@bernadetteromano8775 2 года назад
This is helpful but your video is faster than normal which makes me replay and it's better if it's normal speech speed
@soufeeljazouli1807
@soufeeljazouli1807 4 года назад
thanks man for saving my life i was thinking to jump from the window :D
@MahadevCreations777
@MahadevCreations777 6 лет назад
Thank you so much....this tutorial helps me to run different PHP projects through xampp
@notarosimone
@notarosimone 3 года назад
Thanks man!! Nice tutorial
@reshmisharma1522
@reshmisharma1522 5 лет назад
Thank you so much! I researched several videos but this was awesome and can't be any clear.
@joshuazamora5177
@joshuazamora5177 7 лет назад
Thank You so much. i didnt know how to access my localhost but you helped. Thank you soo much
@neharika6258
@neharika6258 5 лет назад
I clicked on "start apache" and in the browser I typed localhost, I still got "this site can't be reached"....... :(
@djmcbmax
@djmcbmax 5 лет назад
hey maybe im late but i hope this helps for some people: watch this treath and then when ur in ur brower type:" localhost:8080 " (if ur follow the treath). ps. if you type ctrl+F you can search for 80 in the .txt file :D *Step 1 - From the XAMPP Control Panel, under Apache, click the Config button, and select the Apache (httpd.conf).* Inside the httpd.conf file, somehow I found a line that says: Listen 80 And change the 80 into any number / port you want. In my scenario I’m using port 8080. Listen 8080 Still from the httpd.conf file, I found another line that says: ServerName localhost:80 Change 80 to 8080. ServerName localhost:8080 *Step 2 - From the XAMPP Control Panel, under Apache, click the Config button again, but this time select the Apache (httpd-ssl.conf). Inside the httpd-ssl.conf file, find line that says* Listen 443 And change the 443 into any number / port you want. I’ll using 4433 as the new port number. Listen 4433 Still from the httpd-ssl.conf file, find another line that says ServerName localhost:443 And change 443 to 4433. ServerName localhost:4433 *Remember to save the httpd.conf and httpd-ssl.conf files after performing some changes. Then restart the Apache service.* souce: stackoverflow.com/questions/18300377/xampp-apache-error-apache-shutdown-unexpectedly
@btror
@btror 6 лет назад
Awesome! Very good at explaining things.
@anim8dideas849
@anim8dideas849 4 года назад
still saving lives
@BlàckÐèàth
@BlàckÐèàth 4 года назад
Thank you - still relative info that helped me get started.
@guru-pathik
@guru-pathik 6 лет назад
simple and informative. Thanks mate
@jessicarosenberg4032
@jessicarosenberg4032 4 года назад
Thank you so much! This helped me so much!!!
@tigaiejiji7346
@tigaiejiji7346 7 лет назад
you are the best! Keep up the good work
@theikjtop10musicchart82
@theikjtop10musicchart82 4 года назад
Thanks, you're the best!
@Soyakongen1
@Soyakongen1 6 лет назад
Thanks! This was very helpful :)
@selamselam1646
@selamselam1646 6 лет назад
Great explanation. Thanks a lot.
@mattc7534
@mattc7534 3 года назад
GOAT
@ApartmentAngelsFireStarters
@ApartmentAngelsFireStarters 6 лет назад
Exactly what i need thanks alot
@olalekanishola473
@olalekanishola473 3 года назад
thanks and God bless you.
@sadmanyasar17
@sadmanyasar17 3 года назад
Thank you very much :)
@lancecieee8733
@lancecieee8733 4 года назад
This is so simplet thank you
@bestfireplace4173
@bestfireplace4173 4 года назад
U r the best
@lilybohr
@lilybohr Год назад
Does changing the port numbers affect the router?
@ttvlordicon
@ttvlordicon 5 лет назад
Not shutting down because you are not stopping the apache service before closing. (If I am not mistaken)
@kornelijekovac9793
@kornelijekovac9793 3 года назад
2:24 Can Dashboard list all the Projects you have inside htdocs, or you have to manually type the extension in the address bar every time you switch?
@ViktoriiaLutsyk
@ViktoriiaLutsyk 7 лет назад
Thanks for the video!
@kayodeadebayo3640
@kayodeadebayo3640 5 лет назад
thank you.you are a brilliant.
@RotterStudios
@RotterStudios 4 года назад
Great video but.....how to make it viewable to the outside world
@basilrawashdeh524
@basilrawashdeh524 5 лет назад
Great Job, thank you a lot
@susantalohar7069
@susantalohar7069 6 лет назад
Helpful tutorial. I've one question do i run Android app cpanel with local host?
@himanshurajpal7842
@himanshurajpal7842 4 года назад
brother , do not work. same result the site cant be reached.
@singtabi
@singtabi 5 лет назад
sir i already created ftp in my system it necessary to remove all setting before installing xampp
@originalunicorns381
@originalunicorns381 6 лет назад
plz help whenever i start for apache it says "Error: Apache shutdown unexpectedl. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues If you need more help, copy and post this entire log window on the forums"
@ryneziemba8499
@ryneziemba8499 7 лет назад
You rule and you sound like Jonah Hill. Thanks!
@eclipsesolar8345
@eclipsesolar8345 2 года назад
Perfect.
@sentinelinori1626
@sentinelinori1626 5 лет назад
Thank you So muchhhhh!!!!
@JakePalma
@JakePalma 5 лет назад
Thank you!
@GLocarso
@GLocarso 4 года назад
Thank you so muchhhhhhhhh
@emmanuelruizlondono1256
@emmanuelruizlondono1256 6 лет назад
Thanks so much
@twagirayezuinnocent8097
@twagirayezuinnocent8097 6 лет назад
very good
@FedoraTime
@FedoraTime 4 года назад
you did not just say shampp........
@thefloki1071
@thefloki1071 8 лет назад
Thanks! How to go live? So I can access the xampp from others pc.
@asifmeoasif5237
@asifmeoasif5237 6 лет назад
The Floki
@madukp8870
@madukp8870 7 лет назад
i am using ubuntu????????????/
@D4MEEE
@D4MEEE 6 лет назад
ight i dont know where he got page2.php from i need help please
@TanUv90
@TanUv90 6 лет назад
That's just an example test page I made for the tutorial You put your files you want to serve from your computer in the htdocs folder in some subfolder of your choosing
@pylasandeep4758
@pylasandeep4758 6 лет назад
it's good....
@kenttruong9582
@kenttruong9582 4 года назад
this guy sound like t-painnnnn
@Doodles1947
@Doodles1947 4 года назад
Could you talk faster? I actually managed to understand some phrases, and nobody wants that. And whatever you're using to make screen grab unreadable isn't working. I could read some big test.
@jonmichealpalmer7736
@jonmichealpalmer7736 6 лет назад
How do I change the localhost to my own domain
@wetfdsfwertsdfgsdf
@wetfdsfwertsdfgsdf Год назад
D makkub fc .
@sahilvarma1282
@sahilvarma1282 3 года назад
Men u save me
@ЕваЛастоякина
@ЕваЛастоякина 4 года назад
0:19
@alberthilario5680
@alberthilario5680 7 лет назад
your to fast actually
@Vanilla-Led
@Vanilla-Led 6 лет назад
thank u so much man!! you dont now how gratefull i am for this video, it saved my grade
@ccg8803
@ccg8803 5 лет назад
Thank You!!
@haas99
@haas99 4 года назад
Thank you very much for information.
@ZakiZaki-eo7qh
@ZakiZaki-eo7qh 2 года назад
very helpful! thank you so much
@itouchgrass869
@itouchgrass869 2 года назад
great tutorial
@GlidGaming1
@GlidGaming1 8 лет назад
i want to send that website to the people i want their accounts so how do i make link with fake web that i created HELP??
@ganiyu1
@ganiyu1 3 года назад
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.
@kjiyere7224
@kjiyere7224 4 года назад
Thanks dude
@TheCandace018
@TheCandace018 6 лет назад
Thank you!!
@adamjensen408
@adamjensen408 6 лет назад
Actually useful, awesome. So many people are horrible at explaining how things work.
@easantos79
@easantos79 6 лет назад
Thank you so much! Very helpfull explaining!
@lavs8696
@lavs8696 5 лет назад
thank you so much man, as a complete beginner, i love that you explained it simply for noobs like me
@IndrekLeede
@IndrekLeede 7 лет назад
Thanks for the video! This helped me.
@vksarkisyan
@vksarkisyan 5 лет назад
THANK U. Finally a really clear explanation
@neharika6258
@neharika6258 5 лет назад
ohh i got it!!!! thanks a lot
Далее
Coding a Web Server in 25 Lines - Computerphile
17:49
Просмотров 337 тыс.
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Просмотров 1,8 млн
The Home Server I've Been Wanting
18:14
Просмотров 55 тыс.
How to change localhost in XAMPP to Domain Name
7:21
Difference between cookies, session and tokens
11:53
Просмотров 633 тыс.
How to Run PHP Using Visual Studio Code
5:30
Просмотров 613 тыс.
Installation of PHP Codeigniter 4 on Localhost Xampp
8:19
XAMPP tutorial for beginners
8:33
Просмотров 182 тыс.
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Просмотров 1,8 млн