Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/scripts/upcp causing problems with httpd.conf

Discussion in 'General Discussion' started by WebIdentity, Sep 23, 2009.

  1. WebIdentity

    WebIdentity Member

    Joined:
    Mar 27, 2004
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    151
    Basically, we've just installed a VMWare server, running behind a hardware firewall, we have 2 interface eth0 and eth1

    eth0 = 192.168.5.130
    eth1 = 192.168.5.30
    eth1:1 = 202.66.32.100
    eth1:2 = 202.66.32.101

    202.66.32.101/101 is dns and 100 is the shared ip for all the sites.

    Every other service on the system works perfectly except for apache. Ironically I get the "Great Success!" page for every single site on the sever.

    So in my relentless efforts to make this work i changed the vhosts.default file (config template for apache) to simple suffix the VirutalHost as follows

    <VirutalHost *> rather than <VirutalHost 202.66.32.100:80>

    (I saw this solution on an apache forum googling)

    So all is well until it does its /scripts/upcp at 1am and adds an extra VirutalHost directive at the footer of the config file as follows.

    <VirtualHost 192.168.5.30:80>
    ServerName blahblahblah.com
    DocumentRoot /usr/local/apache/htdocs
    etc ..
    </VirtualHost>

    God knows why it does it, I cant see it in any of the template makeups in the system, the distiller doesnt get run because all the config tweaks i made to the templates remain.

    Seriously got me stumped ... any advice would surely go far, I put this system into production thinking its working and now I find myself staying up till 1am everymorning running /scripts/rebuildhttpdconf.

    Thanks
     
    #1 WebIdentity, Sep 23, 2009
    Last edited: Sep 23, 2009
  2. MattCurry

    MattCurry Well-Known Member

    Joined:
    Aug 18, 2009
    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Houston, Tx
    scripts/upcp causing problems with httpd.conf

    Hello,

    I do see where there may be an issue, and we will definitely try to get you fixed up. The first thing I would do is to go into Basic Setup in WHM, and change your "Basic Ethernet Device" to eth1:1 = 202.66.32.100. After that you may have to restart apache, otherwise it should work. You can test by running /scripts/upcp. Hope that helps, please feel free to ask any questions.

    Thank you,
    Matthew Curry
     
  3. WebIdentity

    WebIdentity Member

    Joined:
    Mar 27, 2004
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    151
    Thanks - This solution worked nicely.

    Just a quick one, when i create a new account it still creates the ViritualHost section with the IP, is there somewhere where i can tweak it like the above mentioned concept?

    One would think making the account would use the vhost.main template file but i find after making the account i still need to do a /scripts/rebuildhttpconf

    Cheers
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice