SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2002
    Location
    London
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Upgrade to Apache 2.2.6 - lost virtual hosts

    Hi

    I just ran a yum upgrade httpd on my server using Jason Litka repository

    http://www.jasonlitka.com/2007/09/12...el-and-centos/

    I use webmin to administer my server and so I then logged into webmin. My virtual hosts have all disappeared! Yet they still show up under the Virtualmin Virtual Servers category of Webmin

    There now seem to be multiple httpd.conf files in various places on my server and I can't find any reference to my Virtual Hosts in any of them.

    The Virtual Hosts are still actually displaying via their domains but I think this is because I haven't managed to restart apache yet.

    Stupidly I don't have a back-up of the virtual hosts file so I wondered if they might have been automatically backed-up by Webmin...?

    Thanks for any help

    One very amateur admin

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,650
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    kuh,

    Another "canned program" horror story!

    BEFORE you restart Apache, recreate your VirtualHost section(s) and put them in a vhost.conf file and modify EVERY httpd.conf (unless you can determine which one will be the one used to restart) to include the vhost.conf file, e.g.,
    Code:
    Include conf/vhosts.conf #assumes that it's colocated with the httpd.conf in Apache's conf subdirectory OR
    # Include /home/path/to/vhosts.conf
    At least that should maintain your VirtualHosts while you sort WHICH httpd.conf that is being used.

    Which one? Pop the foo directive (an uncommented line containing only foo) in each httpd.conf, one at a time, and try to restart Apache (Apache will not understand foo so it will not start). When it does not start, THAT is the httpd.conf Apache is looking to for its startup so quickly remove the foo directive and restart.

    Backups? 'Nuf said.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    SitePoint Enthusiast
    Join Date
    May 2002
    Location
    London
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi DK

    Thanks for your response. In the end I managed to resolve as I discovered that I'd made the good decision a while ago to accept my hosting companie's auto server back-up and via that got hold of my original httpd.conf file with all the virtual hosts!

    All seems to be working now...

    Thanks again

    Nick


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •