Reply
Attempting to move site to new host
Old 04-09-2008, 10:16 AM Attempting to move site to new host
Average Talker

Posts: 15
Name: Luke
I am looking to move a website (that I did not code) from one host to another. I want to get the site running on my local machine before the move so there is little to no conflict. I am using a fresh install of xampp, have copied all of the files from the public_html folder on the live site to xampp's htdocs folder, and imported the sites DBs with phpmyadmin.

At first http://localhost would prompt me to download a file 'localhost' instead of reading the index.php page, but this was solved by removing the .htaccess file. That may have been the wrong fix (please advise) but at least now the browser is attempting to display the index.php. Unfortunately, the page does not load... it only displays warnings and errors.

Can anyone give me some advice or reference material on getting this site running? I'm sure a number of things could be causing these problems, but to me (with very little experience) maintaining the directory structure/datbases should have this site working.

Perhaps there are sql permissions I do not have set correctly (I havent made any modifications since installing xampp)?

Any help would be much appreciated.
Thanks in advance!
lrobinson is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-09-2008, 08:55 PM Re: Attempting to move site to new host
chrishirst's Avatar
Super Moderator

Posts: 11,466
Location: Blackpool. UK
all depends on what warnings and errors you get.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-10-2008, 10:00 AM Re: Attempting to move site to new host
Average Talker

Posts: 15
Name: Luke
Well, I did manage to get the main (index.php) page to load correctly (The problem was a mysql permission) , but none of the links from the main page work... nor does typing in the url to a specific page (404 errors). Hopefully I will be able to trace through the code enough to figure that out (does anyone have any tools/programs they recommend for this?) The .htaccess is still removed and will still prompt to download file 'localhost' if it is replaced. (does anyone know why this is?)

Thanks!
lrobinson is offline
Reply With Quote
View Public Profile
 
Old 04-11-2008, 07:21 PM Re: Attempting to move site to new host
andrei155's Avatar
CEO of BLD Hosting

Posts: 659
Name: Andrei
Location: Canada
when you have xampp on your home computer your going to have root access and therefore your databases won't have your username before them (user_database)

I know you've copied your database, but look for a file called config.php or something of the like. Usually this will hold the connection information to a database. Make sure all info is correct, and retry.

Maybe you can post what was contained within the .htaccess file?
__________________
BLD Hosting - Shared: As low as $3.13! Reseller: As low as $4.20
No Overselling Policy! Web Hosting
andrei155 is offline
Reply With Quote
View Public Profile Visit andrei155's homepage!
 
Old 04-12-2008, 08:15 AM Re: Attempting to move site to new host
King Spam Talker

Posts: 1,048
Quote:
but none of the links from the main page work... nor does typing in the url to a specific page (404 errors).
Sounds like you may be fairly new to xampp. There could be a couple of different reasons why you are have a problem with the links. The initial coder may have used full URLs for the links (domain.com/page) and not used ./page or ../page.

If the page is in the htdocs folder and not in the database simply typing localhost/foldername/pagename should allow you to view it.

Also review the info posted above about DB names, usernames and passwords when running on localhost.
colbyt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Attempting to move site to new host
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13441 seconds with 13 queries