Тёмный

How to Change localhost to a Domain Name in XAMPP on Windows 

Подписаться
Просмотров 84 тыс.
% 690

Hey Guys,
Every new comer web developer must have thought about Changing localhost to a Domain Name while working on websites locally.
Especially while working on Wordpress websites. It becomes easy while moving website from local server to live server if we already have domain name in database as we want.
So, Here is easy way to do it.
Happy Coding :)
Thnx,
The Next Code

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

 

15 окт 2017

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 86   
@ethiotech9161
@ethiotech9161 2 года назад
I have changed port 80 to 8080 and how could I add the port on configuration rather than url?
@shakilmiah412
@shakilmiah412 2 года назад
It was really helpful. But how can public see that.?
@wengkapre
@wengkapre 3 месяца назад
how do I implement this on multiple websites - locally? how can I add the specific ports ?
@TheNextCode
@TheNextCode 2 месяца назад
Hi, You can create any number of virtual hosts and also mention ports.
@ahmedbadawy4565
@ahmedbadawy4565 4 года назад
I followed the video and to be able to use the domain name but it did not work. Do i need to change any thing in the setting of Apache after finished all your steps I stopped and restarted Apache again from Xampp control panel
@TheNextCode
@TheNextCode 4 года назад
Must be missing something? Can you share your screenshots of changes you did? I may be able to help.
@realstray15
@realstray15 4 года назад
@TheNextCode You make awesome videos! This one helped me a lot. You should have over a million subscribers!
@TheNextCode
@TheNextCode 3 года назад
Wow, thanks!
@realstray15
@realstray15 3 года назад
@@TheNextCode No problem!
@ydros69
@ydros69 2 года назад
its work but the domain work only in our local computer any idea for working online?,
@TheNextCode
@TheNextCode 2 года назад
Yes, it will only work in our local computer. it's only for development purpose. If you want to make it online, you will need to host the website on servers like aws, digital ocean or Google clouds etc.
@armandiskandarsyah5414
@armandiskandarsyah5414 5 лет назад
hi, thanks for the video. I'm building a website for Local Area Network only, can it be accessed from LAN?
@TheNextCode
@TheNextCode 5 лет назад
Yes, It can be accessed from LAN, other computers in LAN will need to add a host entry of the computer where website is hosted. Read about it on support.rackspace.com/how-to/modify-your-hosts-file/ :)
@armandiskandarsyah5414
@armandiskandarsyah5414 5 лет назад
@@TheNextCode Hi, I have 2 server name in 1 PC connected in LAN (no internet). I set the host and virtualhost (server 1 api.data, server 2 gudang.dkb), it is working in self PC. but if I connect from another PC. I typed the url api.data or gudang.dkb it doesn't work.
@TheNextCode
@TheNextCode 5 лет назад
Hi @Armad You will need to add one host entry in your pc's hosts file where you want to open the url. To with that here's the small article: support.rackspace.com/how-to/modify-your-hosts-file/
@musabhaji3436
@musabhaji3436 5 лет назад
Is this domain access any where in the world if your computer connecting to the internet
@TheNextCode
@TheNextCode 5 лет назад
Nope, not at all.
@wolfshadow2301
@wolfshadow2301 2 года назад
My problem i doing this but only for me can use this domain, if anyone try other vpn can't join :/ how can fix this?
@TheNextCode
@TheNextCode 2 года назад
Hi There, This is only for Local computer and local network. To make it accessible to all Internet, you will have buy a domain and server to host the site.
@ydros69
@ydros69 2 года назад
hi any idea how to fix mi pablic ip ant fix domainame to the xampp?for online mi sait?
@TheNextCode
@TheNextCode 2 года назад
Hi, I didn't get you, can you try again in English if possible?
@TimeLords910
@TimeLords910 3 года назад
i use apache but i don't mess around with the settings and it makes everything work fine but if you mess around with them without knowing what your doing well your on your own because the green light which usually appear when apache and mysql is on might not work
@TheNextCode
@TheNextCode 3 года назад
Hey, That makes sense, but if you never try, you'll never know :)
@TheNextCode
@TheNextCode 3 года назад
Sometimes mess around with things and learn.
@ClevergunsYT
@ClevergunsYT 4 года назад
can i use this on my local area connection rather than typing the ip address?
@TheNextCode
@TheNextCode 3 года назад
IP address or Domain name are only ways.
@joegonzalez4343
@joegonzalez4343 6 лет назад
Hi. Great video man. Can we do this with online? Like a hosted WP site, then we do CLI-Commands? I've seen a plugin but I'm hoping we can do it remotely?
@TheNextCode
@TheNextCode 6 лет назад
We can do this online. but we need to add our domain name entry to our local computer's hosts file like this: 193.12.34.21 domainname.com put your remote IP instead of mine.
@priyantgudhka
@priyantgudhka 4 года назад
it takes me to root directory (htdocs) folder. Solution? Did I make any mistake.
@TheNextCode
@TheNextCode 4 года назад
Yes, seems like you missed something. Can you share screenshots of changes you did?
@stickster44
@stickster44 5 лет назад
Great tip bro. I might add that if you're using mysql with your php code, don't forget to change the login credentials to your new localhost pseudo name. I keep my login credentials in one file and then include for each php script that needs it.
@krishna2k523
@krishna2k523 5 лет назад
its work but the domain work only in our local computer
@TheNextCode
@TheNextCode 5 лет назад
Yes bro, It's only for local environment.
@johnpauldeleon699
@johnpauldeleon699 4 года назад
Is this accesible in local network?
@TheNextCode
@TheNextCode 3 года назад
Yes
@edjjanmacababbad2030
@edjjanmacababbad2030 5 лет назад
this shows, "internal server error" what should i do? thanks
@TheNextCode
@TheNextCode 5 лет назад
Your website is not working which means your code has syntax errors.
@priyantgudhka
@priyantgudhka 4 года назад
try clearing cache
@craftaklp
@craftaklp 3 года назад
Thank you, great video
@naderelmor4767
@naderelmor4767 5 лет назад
My apache refuses to start after changing the httpd-vhosts file
@TheNextCode
@TheNextCode 5 лет назад
Check the apache error log for exact reason of the refuse, coz changing vhoss file never affect apache's start process.
@danyesc7620
@danyesc7620 4 года назад
Thanks Dude.. You helped me . U went for the easy way..
@TheNextCode
@TheNextCode 4 года назад
Welcome :)
@nicogestiada7015
@nicogestiada7015 6 лет назад
when i type my domain name it direct me to apache dashboard. pls help
@TheNextCode
@TheNextCode 6 лет назад
Did you tried in another browser? Chrome usually caches the DNS details. Try in another browser and let me know.
@Valnuss
@Valnuss 4 года назад
When you see a risk screen or something it could be due to https. Type instead and check if it works
@TheNextCode
@TheNextCode 7 месяцев назад
This usually happens when the vhosts file configuration has any issues, please cross check and try again
@PanpicVn
@PanpicVn 5 лет назад
Its work for me. Thank you so much
@bevedel
@bevedel 4 года назад
helped a lot. thanks
@tommychoco6
@tommychoco6 4 года назад
Very useful tutorial. Keep going!
@TheNextCode
@TheNextCode 3 года назад
Thanks a lot!
@MIKIARIRIMOSHI
@MIKIARIRIMOSHI 3 года назад
Thank you brother❤️❤️
@harleylumagui337
@harleylumagui337 5 лет назад
Can this be accessed in a network too?
@TheNextCode
@TheNextCode 5 лет назад
Yes, For that, The PC which needs to access it require to add host entry pointing to your IP with domain name in the system. Host file present in this location: c:\windows\system32\drivers\etc\hosts Add something like this: 192.168.0.8(your local IP) domain.name let me know after trying :)
@dsdots
@dsdots 4 года назад
Thanks a bunch!
@laptopmk8638
@laptopmk8638 4 года назад
working only on my pc not working worldwide
@TheNextCode
@TheNextCode 4 года назад
Yes, It will only in your PC, not worldwide, for that you will have to purchase a domain from registrar.
@laptopmk8638
@laptopmk8638 4 года назад
@@TheNextCode i have 4 domains named purchased
@OnkarJha
@OnkarJha 4 года назад
Great bro. But how we can take it online.
@TheNextCode
@TheNextCode 3 года назад
for that you will need to buy Hosting and upload the site to the server.
@KadargoGaming
@KadargoGaming 4 года назад
Too bad that domain "ONLY" shows on the computer you have running xampp, hehehe, "old trick".
@TheNextCode
@TheNextCode 4 года назад
Haha:)
@vijayakumar_3
@vijayakumar_3 4 года назад
Thank You so much brother
@cuongnguyenquoc6356
@cuongnguyenquoc6356 3 года назад
Thank you!.
@TheNextCode
@TheNextCode 3 года назад
You're welcome!
@karthikk153
@karthikk153 6 лет назад
Great video. Thanks a lot
@The_Caesar6186
@The_Caesar6186 4 года назад
thanks :)
@rudyvaldano
@rudyvaldano 5 лет назад
Imagine that I have a public IP, how to put online?
@TheNextCode
@TheNextCode 5 лет назад
You can put it online, try some of these: www.google.com/search?q=how+to+host+a+website+on+own+computer&rlz=1C1CHBF_enIN816IN816&oq=how+to+host+a+website+on+com&aqs=chrome.2.69i57j0l5.9137j0j7&sourceid=chrome&ie=UTF-8 But my intention was to make your development(local) work easy so that it's become easy to put the website online on server. :)
@adminisu507
@adminisu507 5 лет назад
it says not secure
@TheNextCode
@TheNextCode 5 лет назад
Don't open your domain with . Open it with , Because we don't ssl certificate installed in our system.
@thevibesvlogger
@thevibesvlogger 6 лет назад
thanks man
@hectorcoder
@hectorcoder 5 лет назад
nope. doesn't work
@TheNextCode
@TheNextCode 5 лет назад
What an error r u getting?
@yonatan3825
@yonatan3825 5 лет назад
YOU ALMOST MADE ME LOSE MY FILES!!!!!!!
@TheNextCode
@TheNextCode 5 лет назад
How's that?
@zamanrokan4294
@zamanrokan4294 4 года назад
(UNREGISTERED) IN THE httpd-vhost
@TheNextCode
@TheNextCode 4 года назад
I did not understand this, can you please try again?