host switched my ip

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
herbshirt
Forum Members
Forum Members
Posts: 145
Joined: Thu Jul 26, 2007 3:47 am

host switched my ip

Post by herbshirt »

Here's the site: http://203.98.74.172/~cruicksh/index.ph ... t-the-farm

host switched my ip
I changed the config file but my images are still looking for the old server. I even tried deleting an images and re-upload but still nothing.


Any ideas anyone?

Thanks,
Herb.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: host switched my ip

Post by RonnyK »

Herb,

Probably te DNS-servers haven't been synchronised yet. I don't think that you have any pointing to IP's only to DOMAINS. If they switched IP's you should reflect your domain to look there as well instead of to the old IP. After some hours all DNS-servers should know the new IP-settings for the domain, than you can connect to www.domain.com again instead of to IP-adress.

In your config.php the domain-name is stored, this one will still check the IP belonging to that domain.

Ronny
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: host switched my ip

Post by KO »

Full paths of images are probably written in page content and stored normally in database. So instead images having path /images/image.jpg or http://yournewip/images/image.jpg they have path http://youroldip/images/image.jpg

So you eighter edit that page where you old image paths are or run mysql script to replace old ip and other stuff in your database. Be carefull with this and take BACKUP ALWAYS!

Like Ronny said check your setting in your config.php. But whatever has been earlier and stored to databse is not changed with that.

Maybe there is some smarter way of doing this that somebody knows? I believe there is way to set config.php so that no http://your-ip-or-address will be written in image path but that could bring some other problems.

Hope this helps.

K
herbshirt
Forum Members
Forum Members
Posts: 145
Joined: Thu Jul 26, 2007 3:47 am

Re: host switched my ip

Post by herbshirt »

yes i think the absolute path has been written into the page. I was hoping to not have to go back and insert them again. i thought perhaps I could just delete the old images using the file manager and by re-uploading them the file path would be updated.

maybe i'm confused with regards to ip's and domains but...
their actual domain is still pointing to their old site. I'm using the ip that my host supplied to me when I when i set up the account. once the site is ready i thought i could update the name server's and the config file and away i go. does anyone see a problem with that?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: host switched my ip

Post by RonnyK »

Herb,

I think you can go one with that. I think that your config.php now reflects the IP-address instead of the domain-name, that is no problem. When their naming is complete you can go with changing the correct name/ip in the config.php.

What do you mean with absolute paths. Are the images linked to absolute paths in the content, if so, you better make them relative.

If you don't have them set to absolute, please check the complete config.php as there are links to the uploads-folder as well, I don't know if you changed all links pointing at the old IP.

Ronny
Locked

Return to “[locked] Installation, Setup and Upgrade”