Any procedure to bring a website down to local host.

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

Any procedure to bring a website down to local host.

Postby tommytx » 04. August 2017 20:22

Is there any step by step instructions out there anywhere maybe on another site giving the requirements for bringing a live site down to the local host and running..
For example do i need to go into the options file and change the domain name to localhost or will it auto change those names in the option file for me.
Next we know the site code is full of full blown urls.. does the localhost know to use local host or will it try to use the thousands of urls thruout the content.

So bottom line am i on my own or can someone help with this.
Do i need to run serch and replace to change all the urls to local host.. wow.. how unhandy.. to do all that just to test the site.
tommytx
 
Posts: 9
Joined: 10. April 2009 02:13

Re: Any procedure to bring a website down to local host.

Postby Altrea » 04. August 2017 20:57

This is highly dependend to the specific application you want to migrate.
There is no global way of doing this.
Some applications need to have config file changes, some need database field changes, some need .htaccess file changes, some need Apache config changes, some need PHP config changes, some need to rerun the installation script again, some need no changes at all.

So the support channel and manual of the specific application is the best spot finding the migration instructions.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8939
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Any procedure to bring a website down to local host.

Postby Nobbie » 04. August 2017 21:31

tommytx wrote:Next we know the site code is full of full blown urls.. does the localhost know to use local host or will it try to use the thousands of urls thruout the content.

So bottom line am i on my own or can someone help with this.


Who is "we", why at a sudden you are alone?

Anyway, dont change the code to run on localhost, just do it vice verse (what is by far easier and less work), simply make your local host look like the online server. Adapt the servername to the hosts file (in many cases your already done), if necessary, also adapt pathnames (i.e. DocumentRoot etc.) to your local host.
Nobbie
 
Posts: 9689
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 40 guests