Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    17

    Default /scripts/upcp causing problems with httpd.conf

    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
    Last edited by WebIdentity; 09-23-2009 at 12:37 PM.

  2. #2
    Member
    Join Date
    Aug 2009
    Location
    Houston, Tx
    Posts
    275

    Default 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. #3
    Member
    Join Date
    Mar 2004
    Posts
    17

    Default

    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

Similar Threads & Tags
Similar threads

  1. scripts/fixquotas causing other problems?
    By santrix in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-06-2011, 01:16 PM
  2. upcp overwriting httpd.conf
    By thobarn in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-08-2009, 03:44 PM
  3. stop upcp from adding the following to httpd.conf
    By gtron in forum New User Questions
    Replies: 6
    Last Post: 10-02-2008, 10:45 AM
  4. upcp is changing httpd.conf to 600 this break many fantastico installation
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 33
    Last Post: 07-31-2005, 07:06 AM
  5. UPCP broke httpd.conf and apache fail ...
    By cass in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-27-2004, 03:44 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube