View Full Version : Reconfigure ip/gateway adresses
statiic
4th November 2006, 09:26
I finally succesfully installed mandriva 2007 x64 bits edition.
Currently I'm running the server back home, but soon it will be relocated to an datacenter.
The provide me an ip adres, subnetmask, gateway, dns records.
Now which files do I need to edit to change all these settings correctly.
I know that I have to change the /etc/hosts file and I have to change it in ipsconfig admin panel.
But where do I change the other settings??
falko
5th November 2006, 17:43
Have a look here: http://www.howtoforge.com/forums/showthread.php?t=2760
statiic
5th November 2006, 18:16
Thx for the reply ;)
statiic
6th November 2006, 15:01
The link you gave is not quite clear?
I called my hosting company and the guy told me that I only needed to change the hosts file and the rest will change by itself.
I dont think thats correct?
And what with this quota names?? Where does it store your ip adress??
falko
6th November 2006, 15:39
I called my hosting company and the guy told me that I only needed to change the hosts file and the rest will change by itself.That might be correct for the operating system itself, but not for the applications installed on the system such as Apache, etc.
And what with this quota names?? Where does it store your ip adress??Quota has nothing to do with the IP address.
statiic
6th November 2006, 21:32
Sry I was talking about bind ;)
Which files do I need to change for that?
statiic
7th November 2006, 11:17
Ok this is what I found.
Changes made:
I changed ispconfig settings from the ispconfig control panel.
/root/ispconfig/httpd/conf/httpd.conf = nothing to change
/etc/postfix/main.cf = nothing to change
/etc/proftpd.conf = already changed. Probably by ispconfig
/etc/hosts = needs change
I also changed my network settings. Changed the gateway in there and my ip adres.
I cannot find the following files
/etc/network/interfaces
/etc/apache2/vhosts/Vhosts_ispconfig.conf
/etc/proftpd_ispconfig.conf
and the bind conf files or the files which I needed to change.
I'm using mandriva 2007 x86_64 can someone please tell me where to locate the above files.
falko
7th November 2006, 17:26
I cannot find the following files
/etc/network/interfacesIt's /etc/sysconfig/network-scripts/ifcfg-eth0, as shown on http://www.howtoforge.com/perfect_setup_mandriva_2007_p4
/etc/apache2/vhosts/Vhosts_ispconfig.confI guess this is somewhere in /etc/httpd2.
and the bind conf files or the files which I needed to change.
If you're using the ISPConfig DNS Manager, you can change the IP addresses in the BIND configuration from the DNS Manager.
BTW, you can search for files like this:
updatedb
locate filename
statiic
7th November 2006, 19:15
Updated list of changes made and not made ;)
Changes made:
I changed ispconfig settings from the ispconfig control panel.
I changed my network settings. Changed the gateway in there and my ip adres.
/root/ispconfig/httpd/conf/httpd.conf = nothing to change
/etc/postfix/main.cf = nothing to change
/etc/proftpd.conf = already changed. Probably by ispconfig
/etc/hosts = needs change
/etc/sysconfig/network-scripts/ifcfg-eth0 = needs change
/etc/httpd/conf/vhosts/Vhosts_ispconfig.conf = already done
/etc/proftpd_ispconfig.conf = already done
statiic
7th November 2006, 20:26
Ok After I changed all this my internet still didnt worked. Cause I had an new router too ;) So I could check this whole settings right away ;)
Now I went to the graphical interface and putted dhcp there. Then suddenly I had internet again. After this I changed it too static ip. And now everything works as it should be.
But now I'm bumping into another problem.
when I insert an new website client. With the domain2.com and when I type in my browser domain2.com it shows me the index.html page of the website. You should say thats fine, but I replaced the index.html for an index.php made by myself. So it should be displaying that one right?
How is this possible. Why isnt it showing the proper page? Same for my other domain.
falko
8th November 2006, 18:23
when I insert an new website client. With the domain2.com and when I type in my browser domain2.com it shows me the index.html page of the website. You should say thats fine, but I replaced the index.html for an index.php made by myself. So it should be displaying that one right?
Did you delete the index.html? Because if it's still there, it will be displayed instead of index.php because index.html comes earlier in the DirectoryIndex directive.
Can you post your Vhosts_ispconfig.conf here? What's the output of ifconfig?
statiic
8th November 2006, 20:11
It works already. Only my first client didnt. Maybe I messed that one up or something like that. But my new clients do work. So I just created an new one for the first client and now it works. I dont know why, but it does.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.