Page 1 of 1

Trouble Changing IP Address

Posted: Fri Oct 27, 2006 4:37 pm
by spikey
I'm trying to set up CMSMS as an intranet server for work in my own time (cos I can't get anything done for interruptions in the office
that's why!).  The problem with this is that I'll need to change IP address when the web server eventually gets carted back to work.

I've set up the server installation on my home network and I've done an experiment to see what happens when I change the IP address (to another one still on the home network) - and as I suspected - oops.

It was definitely working before I fidled with it so config was ok after install.

Server is:-
Ubuntu Linux 6.06 (kernel 2.6.15-27-server)
Apache 2.0.55
PHP 5.1.2
MySQL 5.0.22
CMSMS 1.0.2
on a Fujitsu Siemens Scenic T base hardware.

I've altered:-
/etc/network/interfaces to give the right static ip, subnet, network, broadcast.
/etc/mysql/my.cnf for ip.
/var/www/config.php for db_hostname

Workstation is
Windows XP Home SP2
Internet Explorer 6 SP2 although it does the same from Firefox 1.5.07.

What've I missed?  Suggestions gratefully received...

Now when I try to load the home page I get one of the following exciting features:-
A DNS error from Internet Explorer on the workstation
A database connection failed message from PHP
or it loads the home page text ok but without the template (I think) and any of the CSS styling.

I like the new 1.0.2 demo website by the way - much nicer.

Spike.

Re: Trouble Changing IP Address

Posted: Fri Oct 27, 2006 4:52 pm
by tsw
make sure your dns has updated for the new ip also. or if you are using ip in url make sure you also change $config['root_url'], $config['uploads_path'] and $config['uploads_url'].

also check that apache and sql listens to the new ip...

hope this helps

Re: Trouble Changing IP Address

Posted: Fri Oct 27, 2006 5:21 pm
by spikey
Yup - just perfect now - thanks  :)