How do I setup xampp for local and remote wordpress?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How do I setup xampp for local and remote wordpress?

Postby sdk » 10. June 2014 16:19

Hi there.. I have setup xampp sucesfully HOWEVER I have not figured out how to configure my actual sites on it.

For example I now acces my wordpress from 192.168.178.22. So I everywhere in Wordpress I have set this URL. On the XAMPP pc in the windows hosts file I made 192.168.178.22 resolve to 127.0.0.1.

So now I can succesfully use my site on a local pc.

Now I want to acces the site from somwhere else.... Unfortuantely because all my url point to a local ip 80% of the website never loads!

Now I would assume I would have to change my 192.168.178.22 to match my external ip. This would also mean I would have to resolve that external pc to local host again.

But what happens to my other network pc? How do I acces my website from my local network when the site is avaiable on my external ip?
sdk
 
Posts: 7
Joined: 04. September 2006 12:20

Re: How do I setup xampp for local and remote wordpress?

Postby Nobbie » 10. June 2014 20:36

All that can be resolved by using domain names. Dont load Xampp from 192.168.178.22 or similar, but instead from (for example) "xampp.pc", and xampp.pc is assigned to 192.168.178.22 for local PCs, but it is assigned to (lets say) 206.188.164.33 for external PCs.

The assignment is either done in local hosts files and/or in appropriate DNS Servers.

Finally, you setup a VirtualHost for "xampp.pc" in Apache, in order to resolve the requests. Of course, "xampp.pc" is not a proper name for this, but i think you know that you have to replace it by the name you need. For example "sdk.no-ip.biz" or similar. And - most important! - when you configure Wordpress, you have to configure it running on "xampp.pc" (or "sdk.no-ip.biz").
Nobbie
 
Posts: 8775
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 58 guests