ISPConfig doesn't write the /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf anymore!

Discussion in 'General' started by vaio1, Nov 15, 2009.

  1. vaio1

    vaio1 Member

    Hi Till and Falko,

    I have registered a new domain in ISPConfig but inside the /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf it doesn't appear. Why?!

    I have changed also the name of the domain but it doesn't register the new domain inside that configuration file. Inside the database it is stored.

    I can see it in the control panel but it doesn't work of course.

    This text is expected to be wrtitten in the conf file:

    Code:
    ######################################
    # Vhost: www.test.net:80
    ######################################
    #
    #
    <VirtualHost xx.xx.xx.xxx:80>
    ServerName www.test.net:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web71/web
    ServerAlias test.net
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /var/www/web71/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode Off
    Alias /error/ "/var/www/web71/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web71/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web71/user/$1/web/$3
    <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
      RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    #
    Can you help us?
    thanks
     
    Last edited: Nov 15, 2009
  2. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /etc/httpd/conf/vhosts/
    ?
     
  3. vaio1

    vaio1 Member

    Code:
    # ls -la /etc/httpd/conf/vhosts/
    total 6808
    drwxr-xr-x 2 root root   4096 Nov 15 22:53 .
    drwxr-xr-x 3 root root   4096 Nov 14 05:14 ..
    -rw-r--r-- 1 root root 127335 Nov 15 22:53 Vhosts_ispconfig.conf
    -rw-r--r-- 1 root root  62187 Mar  2  2009 Vhosts_ispconfig.conf_02-03-09_18-11-53
    -rw-r--r-- 1 root root  61992 Mar  2  2009 Vhosts_ispconfig.conf_02-03-09_18-12-35
    -rw-r--r-- 1 root root 126233 Nov 12 09:25 Vhosts_ispconfig.conf_12-11-09_09-25-52
    -rw-r--r-- 1 root root 126233 Nov 12 09:26 Vhosts_ispconfig.conf_12-11-09_09-26-51
    -rw-r--r-- 1 root root 126304 Nov 12 09:27 Vhosts_ispconfig.conf_12-11-09_09-27-51
    -rw-r--r-- 1 root root 126304 Nov 12 10:51 Vhosts_ispconfig.conf_12-11-09_10-51-12
    -rw-r--r-- 1 root root 126304 Nov 12 10:52 Vhosts_ispconfig.conf_12-11-09_10-52-12
    -rw-r--r-- 1 root root 126304 Nov 12 10:53 Vhosts_ispconfig.conf_12-11-09_10-53-15
    -rw-r--r-- 1 root root 126304 Nov 12 10:59 Vhosts_ispconfig.conf_12-11-09_10-59-54
    -rw-r--r-- 1 root root 126304 Nov 12 11:00 Vhosts_ispconfig.conf_12-11-09_11-00-53
    -rw-r--r-- 1 root root 126304 Nov 12 11:01 Vhosts_ispconfig.conf_12-11-09_11-01-54
    -rw-r--r-- 1 root root 126304 Nov 12 11:03 Vhosts_ispconfig.conf_12-11-09_11-03-55
    -rw-r--r-- 1 root root 126304 Nov 12 11:04 Vhosts_ispconfig.conf_12-11-09_11-04-52
    -rw-r--r-- 1 root root 126320 Nov 12 16:34 Vhosts_ispconfig.conf_12-11-09_16-34-44
    -rw-r--r-- 1 root root 126374 Nov 12 17:52 Vhosts_ispconfig.conf_12-11-09_17-52-53
    -rw-r--r-- 1 root root 126374 Nov 12 17:53 Vhosts_ispconfig.conf_12-11-09_17-53-51
    -rw-r--r-- 1 root root 126374 Nov 12 18:44 Vhosts_ispconfig.conf_12-11-09_18-44-36
    -rw-r--r-- 1 root root 126374 Nov 13 13:56 Vhosts_ispconfig.conf_13-11-09_13-56-45
    -rw-r--r-- 1 root root  71713 Jun 15 08:47 Vhosts_ispconfig.conf_15-06-09_08-47-53
    -rw-r--r-- 1 root root  71808 Jun 15 16:01 Vhosts_ispconfig.conf_15-06-09_16-01-59
    -rw-r--r-- 1 root root  71805 Jun 15 16:05 Vhosts_ispconfig.conf_15-06-09_16-05-41
    -rw-r--r-- 1 root root 127524 Nov 15 18:10 Vhosts_ispconfig.conf_15-11-09_18-10-13
    -rw-r--r-- 1 root root 127524 Nov 15 18:11 Vhosts_ispconfig.conf_15-11-09_18-11-10
    -rw-r--r-- 1 root root 127595 Nov 15 18:29 Vhosts_ispconfig.conf_15-11-09_18-29-20
    -rw-r--r-- 1 root root 127592 Nov 15 19:00 Vhosts_ispconfig.conf_15-11-09_19-00-55
    -rw-r--r-- 1 root root 127595 Nov 15 19:02 Vhosts_ispconfig.conf_15-11-09_19-02-52
    -rw-r--r-- 1 root root 126374 Nov 15 19:13 Vhosts_ispconfig.conf_15-11-09_19-13-46
    -rw-r--r-- 1 root root 126374 Nov 15 19:15 Vhosts_ispconfig.conf_15-11-09_19-15-16
    -rw-r--r-- 1 root root 127568 Nov 15 19:16 Vhosts_ispconfig.conf_15-11-09_19-16-49
    -rw-r--r-- 1 root root 127568 Nov 15 19:17 Vhosts_ispconfig.conf_15-11-09_19-17-47
    -rw-r--r-- 1 root root 127565 Nov 15 19:39 Vhosts_ispconfig.conf_15-11-09_19-39-07
    -rw-r--r-- 1 root root 127565 Nov 15 19:41 Vhosts_ispconfig.conf_15-11-09_19-41-26
    -rw-r--r-- 1 root root 127568 Nov 15 19:48 Vhosts_ispconfig.conf_15-11-09_19-48-07
    -rw-r--r-- 1 root root 127639 Nov 15 19:59 Vhosts_ispconfig.conf_15-11-09_19-59-43
    -rw-r--r-- 1 root root 127639 Nov 15 21:32 Vhosts_ispconfig.conf_15-11-09_21-32-26
    -rw-r--r-- 1 root root 127639 Nov 15 21:33 Vhosts_ispconfig.conf_15-11-09_21-33-22
    -rw-r--r-- 1 root root 127639 Nov 15 21:38 Vhosts_ispconfig.conf_15-11-09_21-38-37
    -rw-r--r-- 1 root root 127639 Nov 15 21:42 Vhosts_ispconfig.conf_15-11-09_21-42-15
    -rw-r--r-- 1 root root 127639 Nov 15 21:46 Vhosts_ispconfig.conf_15-11-09_21-46-03
    -rw-r--r-- 1 root root 127666 Nov 15 21:59 Vhosts_ispconfig.conf_15-11-09_21-59-21
    -rw-r--r-- 1 root root 127666 Nov 15 22:53 Vhosts_ispconfig.conf_15-11-09_22-53-22
    -rw-r--r-- 1 root root 169972 Oct 28 18:29 Vhosts_ispconfig.conf_28-10-09_18-29-09
    -rw-r--r-- 1 root root 169991 Oct 28 18:29 Vhosts_ispconfig.conf_28-10-09_18-29-49
    -rw-r--r-- 1 root root 106303 Oct 30 09:10 Vhosts_ispconfig.conf_30-10-09_09-10-33
    -rw-r--r-- 1 root root 106335 Oct 30 12:33 Vhosts_ispconfig.conf_30-10-09_12-33-13
    -rw-r--r-- 1 root root 106352 Oct 30 12:33 Vhosts_ispconfig.conf_30-10-09_12-33-55
    -rw-r--r-- 1 root root 106399 Oct 30 12:34 Vhosts_ispconfig.conf_30-10-09_12-34-34
    -rw-r--r-- 1 root root 106399 Oct 30 12:35 Vhosts_ispconfig.conf_30-10-09_12-35-15
    -rw-r--r-- 1 root root 106470 Oct 30 13:14 Vhosts_ispconfig.conf_30-10-09_13-14-26
    -rw-r--r-- 1 root root 106605 Oct 30 13:22 Vhosts_ispconfig.conf_30-10-09_13-22-07
    -rw-r--r-- 1 root root 106595 Oct 30 13:25 Vhosts_ispconfig.conf_30-10-09_13-25-17
    -rw-r--r-- 1 root root 106470 Oct 30 13:27 Vhosts_ispconfig.conf_30-10-09_13-27-08
    -rw-r--r-- 1 root root 106470 Oct 30 13:32 Vhosts_ispconfig.conf_30-10-09_13-32-57
    -rw-r--r-- 1 root root  49784 Oct 31  2008 Vhosts_ispconfig.conf_31-10-08_09-29-44
    
    
     
  4. PavementPounder

    PavementPounder New Member

    I have a similar problem. Everything was working for a while, then at some point no new Vhosts file is ever loaded. Every Vhosts file fails the syntax test, even the current one that is not suppose to have any errors with the following error:

    Code:
    administrator@viktor:/etc/apache2/vhosts$ sudo apache2ctl -t -f Vhosts_ispconfig.conf
    Syntax error on line 31 of Vhosts_ispconfig.conf:
    Invalid command 'DirectoryIndex', perhaps misspelled or defined by a module not included in the server configuration
    administrator@viktor:/etc/apache2/vhosts$ sudo apache2ctl -t -f Vhosts_ispconfig.conf_05-11-09_19-33-03
    Syntax error on line 31 of Vhosts_ispconfig.conf_05-11-09_19-33-03:
    Invalid command 'DirectoryIndex', perhaps misspelled or defined by a module not included in the server configuration
    
    It seems as if the modules are not getting loaded correctly. If you put <IfModule mod_dir.c> tags around the DirectoryIndex line then it just complains about the alias tag which is on the next line after the DirectoryIndex tag.

    Code:
    administrator@viktor:/etc/apache2$ ls mods-enabled/
    alias.conf       auth_digest.load    authz_groupfile.load  autoindex.conf  dav.load      deflate.conf  dir.load      fcgid.conf    mime.conf         negotiation.load  python.load   setenvif.conf  ssl.load     suexec.load
    alias.load       authn_file.load     authz_host.load       autoindex.load  dav_svn.conf  deflate.load  env.load      fcgid.load    mime.load         php5.conf         rewrite.load  setenvif.load  status.conf
    auth_basic.load  authz_default.load  authz_user.load       cgi.load        dav_svn.load  dir.conf      expires.load  include.load  negotiation.conf  php5.load         ruby.load     ssl.conf       status.load
    
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Which Linux distribution do you use? Did you installed any linux updates?
     
  6. vaio1

    vaio1 Member

    I have the CentOs 5.3.
    Yes, the server install automatically all the updates.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Then it might be that your httpd.conf file has been replaced by a centos update. Check if there is a httpd.conf.rpmsave in the same directory with a recent date.
     
  8. PavementPounder

    PavementPounder New Member

    I have Debian 5.03 with the latest ISPConfig 2. I update regularly with apt-get.
     
  9. vaio1

    vaio1 Member

    No there is not any .rpmsave in that directory.

    How have I do?

    If I try to create a co-domain the file is not updated by ISPConfig. How can I solve this problem?

    I have tested it again and seems that the file is updated but not written. I mean that the date and hour of that file are updated but its content doesn't!

    Thanks
     
    Last edited: Nov 19, 2009
  10. till

    till Super Moderator Staff Member ISPConfig Developer

  11. PavementPounder

    PavementPounder New Member

    Just so that anybody else who finds this thread, here is how I solved the problem. I did the following steps posted in another thread http://www.howtoforge.com/forums/showthread.php?t=7719:

    Code:
    There must be a error in your apache configuration.
    
    1) Make a backup of /etc/apache2/vhosts/Vhosts_ispconfig.conf
    2) Rename the latest file /etc/apache2/vhosts/Vhosts_ispconfig.conf_.... that has a date appended to /etc/apache2/vhosts/Vhosts_ispconfig.conf
    3) run
    
    httpd -t
    
    to get the error message. 
    
    Code:
    administrator@viktor:/etc/apache2/vhosts$ sudo apache2ctl -t
    Syntax error on line 85 of /etc/apache2/vhosts/Vhosts_ispconfig.conf:
    Unknown DAV provider: filesystem
    That error means that the dav_fs module was not loaded into apache. So I loaded it in by:

    Code:
    administrator@viktor:/etc/apache2/vhosts$ sudo a2enmod dav_fs
    Considering dependency dav for dav_fs:
    Module dav already enabled
    Enabling module dav_fs.
    Run '/etc/init.d/apache2 restart' to activate new configuration!
    Restart apache:

    Code:
    administrator@viktor:/etc/apache2/vhosts$ sudo /etc/init.d/apache2 restart
    Restarting web server: apache2 ... waiting ..
    And then test again:

    Code:
    administrator@viktor:/etc/apache2/vhosts$ sudo apache2ctl -t
    Syntax OK
    Now after editing a web site configuration you can check and see if the new /etc/apache2/vhosts/Vhosts_ispconfig.conf has been written.
     

Share This Page