Vhosts not being updated

Discussion in 'Installation/Configuration' started by hairydog2, Apr 20, 2011.

  1. hairydog2

    hairydog2 New Member

    I am having problems with the Vhosts file not updating when I make changes

    So I checked the log and it says:

    WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2667: WARNING: could not . /etc/apache2/envvars && httpd -t &> /dev/null

    followed one second later by

    WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2681: httpd syntax seems to contain errors, reloading with old configuration

    but if I do

    . /etc/apache2/envvars && httpd -t

    on the shell, I get

    Syntax OK

    So how can I look for the problem?

    [Later:]

    Found it!

    I downloaded the Vhosts.conf and the new one that it rejected.

    When I did a diff on the two files, I found that there was some rubbish in one of the lines.

    It looks as if it had been accidentally typed into the "Apache Directives (Optional): " box in ISP Manager, but instead of creating an error message, it simply refused to use the new conf file.

    I cleared the Directives box, saved and all is well again!
     
    Last edited: Apr 20, 2011

Share This Page