Reconfigure ip/gateway adresses

Discussion in 'HOWTO-Related Questions' started by statiic, Nov 4, 2006.

  1. statiic

    statiic New Member

    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??
     
    Last edited: Nov 4, 2006
  2. falko

    falko Super Moderator Howtoforge Staff

  3. statiic

    statiic New Member

    Thx for the reply ;)
     
  4. statiic

    statiic New Member

    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??
     
  5. falko

    falko Super Moderator Howtoforge Staff

    That might be correct for the operating system itself, but not for the applications installed on the system such as Apache, etc.

    Quota has nothing to do with the IP address.
     
  6. statiic

    statiic New Member

    Sry I was talking about bind ;)

    Which files do I need to change for that?
     
  7. statiic

    statiic New Member

    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.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    It's /etc/sysconfig/network-scripts/ifcfg-eth0, as shown on http://www.howtoforge.com/perfect_setup_mandriva_2007_p4

    I guess this is somewhere in /etc/httpd2.
    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:
    Code:
    updatedb
    locate [I]filename[/I]
     
  9. statiic

    statiic New Member

    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
     
    Last edited: Nov 7, 2006
  10. statiic

    statiic New Member

    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.
     
  11. falko

    falko Super Moderator Howtoforge Staff

    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
    Code:
    ifconfig
    ?
     
  12. statiic

    statiic New Member

    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.
     

Share This Page