[SOLVED] Vhosts_ispconfig.conf problem

Discussion in 'General' started by Snowman, Jul 31, 2008.

Thread Status:
Not open for further replies.
  1. Snowman

    Snowman Member

    Hi,
    i need small help with how to recreate Vhosts_ispconfig.conf ...
    is it somehow possible ?

    Thanks
     
  2. Hans

    Hans Moderator Moderator

    Within ISPConfig, on the basis tab of one of your sites, change a checkbox, for example enable cgi-scripts for the website and press save.

    After every modification ISPConfig creates a new Vhosts_ispconfig.conf file.
     
  3. Snowman

    Snowman Member

    thanks i will try that now. i am back in 5 mins.
    :)
     
  4. Snowman

    Snowman Member

    Hi,
    so i did :
    vulpix:/etc/apache2/vhosts# mv Vhosts_ispconfig.conf backup.conf
    vulpix:/etc/apache2/vhosts#

    than i "logged in" to ISPconfig panel and in basic tab i checked CGIs ..

    but nothing created .. :eek:

    in logs when i clicked to change CGIs ...

    31.07.2008 - 10:45:44 => INFO - Signalfile Set: insert
    31.07.2008 - 10:45:54 => WARN - WARNING: could not open file /etc/apache2/vhosts/Vhosts_ispconfig.conf
    31.07.2008 - 10:45:54 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 258: setquota -g web74 0 0 0 0 -a &> /dev/null
    31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 259: setquota -T -g web74 604800 604800 -a &> /dev/null
    31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 278: Connected successfully
    31.07.2008 - 10:45:55 => INFO - USER:
    kenes.com_keneres:x:10330:10074:peter keneres:/storage/var/www/web74/user/kenes.com_keneres:/bin/false
    31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 908: setquota -u kenes.com_keneres 0 0 0 0 -a &> /dev/null
    31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 909: setquota -T -u kenes.com_keneres 604800 604800 -a &> /dev/null
    31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /storage/var/www/web74/user/kenes.com_keneres/.forward
    31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
    31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
    31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: postmap hash:/etc/postfix/virtusertable
    31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1264: WARNING: could not cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf~
    31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1643: WARNING: could not mv /storage/var/www/web30/ssl/*.crt /storage/var/www/web30/ssl/domain.com.crt &> /dev/null
    31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1644: WARNING: could not mv /storage/var/www/web30/ssl/*.key /storage/var/www/web30/ssl/domain.com.key &> /dev/null
    31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1645: WARNING: could not mv /storage/var/www/web30/ssl/*.key.org /storage/var/www/web30/ssl/domain.com.key.org &> /dev/null
    31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1646: WARNING: could not mv /storage/var/www/web30/ssl/*.csr /storage/var/www/web30/ssl/domain.com.csr &> /dev/null
    31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2589: WARNING: could not . /etc/apache2/envvars && httpd -t &> /dev/null
    31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2603: httpd syntax seems to contain errors, reloading with old configuration
    31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2604: mv -f /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf_31-07-08_10-45-55
    31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2605: WARNING: could not mv -f /etc/apache2/vhosts/Vhosts_ispconfig.conf~ /etc/apache2/vhosts/Vhosts_ispconfig.conf
    31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: WARNING: could not /etc/init.d/apache2 reload &> /dev/null
    31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_bind.lib.php, Line 295: cp -fr /etc/bind/pri.kenes.com /etc/bind/pri.kenes.com~
    31.07.2008 - 10:45:58 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/bind9 restart &> /dev/null
    31.07.2008 - 10:45:58 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2055: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
     
    Last edited: Jul 31, 2008
  5. Hans

    Hans Moderator Moderator

    If ISPConfig can't create a new vhost file, probably there is a typo somewhere in one of the Apache directive fields of one of your sites.
    (This field can be found on the bottom of each basis tab of each site in ISPConfig).

    What's the output of httpd -t

    ?
     
  6. Snowman

    Snowman Member

    vulpix:/home/snowman# httpd -t
    httpd: Syntax error on line 718 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/vhosts/Vhosts_ispconfig.conf: No such file or directory
    vulpix:/home/snowman# mv /etc/apache2/vhosts/backup.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf
    vulpix:/home/snowman# httpd -t
    [Thu Jul 31 11:42:05 2008] [warn] VirtualHost 86.110.225.80:80 overlaps with VirtualHost 86.110.225.80:80, the first has precedence, perhaps you need a NameVirtualHost directive
    [Thu Jul 31 11:42:05 2008] [warn] VirtualHost 86.110.225.168:443 overlaps with VirtualHost 86.110.225.168:443, the first has precedence, perhaps you need a NameVirtualHost directive
    [Thu Jul 31 11:42:05 2008] [warn] VirtualHost 86.110.225.157:443 overlaps with VirtualHost 86.110.225.157:443, the first has precedence, perhaps you need a NameVirtualHost directive
    [Thu Jul 31 11:42:05 2008] [warn] NameVirtualHost 86.110.225.157:80 has no VirtualHosts
    [Thu Jul 31 11:42:05 2008] [warn] NameVirtualHost 86.110.225.168:80 has no VirtualHosts
    Syntax OK


    Thanks for help ..
     
  7. Hans

    Hans Moderator Moderator

    What's in the file /etc/apache2/apache2.conf on line 718?
     
  8. Snowman

    Snowman Member

    Include /etc/apache2/vhosts/Vhosts_ispconfig.conf :)
    You said before i have to delete Vhosts file and check CGIs for example
    so i pasted you all i did that file was moved to backup.cfg so then i moved it back and it can be checked now..
     
  9. Snowman

    Snowman Member

    Are you sure that ispconfig creates this Vhosts file each time something is changed ?
    I am not so sure that whole file is created each time..
     
  10. Hans

    Hans Moderator Moderator

    I did not tell you to remove it.
    ISPConfig overwrites/re-creates the file if there are no syntax errors within the apache directive fields

    /etc/apache2/vhosts/Vhosts_ispconfig.conf will be updated every time you change something on the basis tab of the particular site indeed.

    Did you add something within the apache directive fields of your websites on the basis tab within ISPConfig?

    Please try to restart apache2 as well to initialise the configuration files again:
    /etc/init.d/apache2 restart
     
    Last edited: Jul 31, 2008
  11. Snowman

    Snowman Member

    I moved my Vhosts file to backup.cfg and i want to recreate it. So I created empty file Vhosts_ispconfig.conf . But when I change something, file is still empty.

    Its restarted .. but Vhost file is still empty

    vulpix:/etc/apache2/vhosts# /etc/init.d/apache2 restart
    Forcing reload of web server (apache2)... waiting .
    vulpix:/etc/apache2/vhosts#

    now i change something like CGIs .. and i found this in ispconfig logs :
    31.07.2008 - 12:17:35 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2603: httpd syntax seems to contain errors, reloading with old configuration
     
  12. Hans

    Hans Moderator Moderator

    Try to track down the syntax errors.
    When there are no syntax errors, iSPConfig is able to recreate the new file.
    That's all i can advise to do.
     
  13. Snowman

    Snowman Member

    You've made my day

    I made it LOL. Thanks for your help and interest. Really.
    Problem was that ispconfig do not recreate file until there is ispconfig backup like Vhosts_ispconfig.conf_24_12_2008_11_00_00 .
    When Vhosts_ispconfig.conf do not exists ispconfig look for some backup as i wrote upper and apache is reloaded with that backuped file.

    So i deleted all backups from /etc/apache2/vhosts/ and i created there only 1 empty file with Vhosts_ispconfig.conf as name. Then changed something in Basis tab. Than ispconfig must create Vhosts_ispconfig.conf file because no backup exists.

    So problem is solved.
    Thanks for your help again and for your MyPhpAdmin releases also :).

    Is it possible to add [SOLVED] before this thread ?
     
    Last edited: Jul 31, 2008
Thread Status:
Not open for further replies.

Share This Page