problem with virtual hosts

Discussion in 'Installation/Configuration' started by andron26, Feb 25, 2011.

  1. andron26

    andron26 New Member

    Hello,

    Installed ISPConfig 2.2.37 on Debian 5.0.8.
    Everything worked fine, I've created 3 sites. When created forth noticed that site is pointing to shared ip. checked apache configuration and noticed that there is no info about 4th site. Users, folders for web4 created ok, also can create db from ispconfig. But no input about web4 in vhost configuration at all. If I create new site everything is the same. Users, folders, databases are created but no info in vhost configuration.
    Tried to reinstall ISPConfig there is such infog in the end:

    All prerequisites are fulfilled.
    Here we go...

    Connected successfully to db db_ispconfig
    cp: cannot stat `customized_templates/*': No such file or directory
    Restarting some services...
    Stopping Postfix Mail Transport Agent: postfix.
    Starting Postfix Mail Transport Agent: postfix.
    Stopping ftp server: proftpd.
    Starting ftp server: proftpd - setting default address to 127.0.0.1
    .
    Shutting down ISPConfig system...
    /root/ispconfig/httpd/bin/apachectl stop: httpd (no pid file) not running
    ISPConfig system stopped!
    Starting ISPConfig system...
    /root/ispconfig/httpd/bin/apachectl startssl: httpd started
    ISPConfig system is now up and running!
    Congratulations! Your ISPConfig system is now installed. If you had to install quota, please take the steps described in the installation manual. Otherwise your system is now available without reboot.

    So I have no idea what happend. What does this mean:
    cp: cannot stat `customized_templates/*': No such file or directory
     
  2. falko

    falko Super Moderator

    This is nothing to worry about. ISPConfig's templates are stored in /root/ispconfig/isp/conf/; if you want to modify a template, you can create the directory /root/ispconfig/isp/conf/customized_templates and store the modified template there (instead of modifying the original template) so that your modified template will not be affected by an ISPConfig upgrade. If ISPConfig finds a template in /root/ispconfig/isp/conf/customized_templates, it will use that one instead of the otiginal one. If the directory doesn't exist, that's prefectly ok.

    To your problem: what's the output of
    Code:
    ls -la /root/ispconfig/
    ?

    Do you see any error messages when you run
    Code:
    /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php
    on the shell?
     
  3. andron26

    andron26 New Member

    ls -la /root/ispconfig/

    total 104
    drwxr-xr-x 10 root root 4096 2011-02-25 20:50 .
    drwxr-xr-x 6 root root 4096 2011-02-25 20:17 ..
    -rwxr-xr-x 1 root root 34690 2011-02-25 20:17 cronolog
    -rwxr-xr-x 1 root root 9673 2011-02-25 20:17 cronosplit
    drwxr-xr-x 12 root root 4096 2011-02-25 20:04 httpd
    drwxr-xr-x 16 root root 4096 2011-02-25 20:17 isp
    drwxr-xr-x 7 root root 4096 2011-02-25 20:04 libmcrypt
    -rw-r--r-- 1 root root 8 2011-02-25 20:50 .old_path_httpd_root
    drwxr-xr-x 6 root root 4096 2011-02-25 20:04 openssl
    drwxr-xr-x 6 root root 4096 2011-02-25 20:07 php
    drwxr-xr-x 4 root root 4096 2011-02-25 20:17 scripts
    drwxr-xr-x 4 root root 4096 2011-02-25 20:17 standard_cgis
    drwxr-xr-x 2 root root 4096 2011-02-25 20:17 sv
    -rwx------ 1 root root 9405 2011-02-25 20:17 uninstall

    /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php

    export APACHE_RUN_USER=www-data
    start
    ende
     
  4. admin

    admin Administrator Staff Member

    Both outputs look ok.

    Are the new sites listed in /etc/apache2/vhosts/Vhosts_ispconfig.conf?
     
  5. andron26

    andron26 New Member

    I can create ne sites, users, databases, but there is no input i vhosts file. I forgot to mention that I forgot ispconfig password and changed it in mysql (UPDATE sys_user SET passwort = md5('myNewPassword') WHERE username = 'admin')
     
  6. falko

    falko Super Moderator

    Can you post the output of
    Code:
    ls -la /etc/apache2/vhosts/
    ?
     
  7. andron26

    andron26 New Member

    ls -la /etc/apache2/vhosts/
    total 264
    drwxr-xr-x 2 root root 4096 2011-03-03 08:10 .
    drwxr-xr-x 8 root root 4096 2011-02-22 00:46 ..
    -rw-r--r-- 1 root root 6804 2011-03-01 19:54 Vhosts_ispconfig.conf
    -rw-r--r-- 1 root root 7330 2011-03-01 17:39 Vhosts_ispconfig.conf_01-03-11_17-39-26
    -rw-r--r-- 1 root root 8408 2011-03-01 19:54 Vhosts_ispconfig.conf_01-03-11_19-54-08
    -rw-r--r-- 1 root root 4105 2011-02-23 14:34 Vhosts_ispconfig.conf_23-02-11_14-34-36
    -rw-r--r-- 1 root root 2436 2011-02-23 15:50 Vhosts_ispconfig.conf_23-02-11_15-50-12
    -rw-r--r-- 1 root root 5440 2011-02-24 13:18 Vhosts_ispconfig.conf_24-02-11_13-18-03
    -rw-r--r-- 1 root root 5440 2011-02-24 13:20 Vhosts_ispconfig.conf_24-02-11_13-20-13
    -rw-r--r-- 1 root root 5440 2011-02-24 13:21 Vhosts_ispconfig.conf_24-02-11_13-21-14
    -rw-r--r-- 1 root root 6689 2011-02-24 13:23 Vhosts_ispconfig.conf_24-02-11_13-23-44
    -rw-r--r-- 1 root root 6842 2011-02-24 13:24 Vhosts_ispconfig.conf_24-02-11_13-24-25
    -rw-r--r-- 1 root root 6842 2011-02-24 13:25 Vhosts_ispconfig.conf_24-02-11_13-25-26
    -rw-r--r-- 1 root root 6842 2011-02-24 13:26 Vhosts_ispconfig.conf_24-02-11_13-26-56
    -rw-r--r-- 1 root root 6689 2011-02-25 10:27 Vhosts_ispconfig.conf_25-02-11_10-27-17
    -rw-r--r-- 1 root root 6746 2011-02-25 10:29 Vhosts_ispconfig.conf_25-02-11_10-29-39
    -rw-r--r-- 1 root root 5440 2011-02-25 10:33 Vhosts_ispconfig.conf_25-02-11_10-33-20
    -rw-r--r-- 1 root root 5440 2011-02-25 10:38 Vhosts_ispconfig.conf_25-02-11_10-38-51
    -rw-r--r-- 1 root root 6689 2011-02-25 10:43 Vhosts_ispconfig.conf_25-02-11_10-43-50
    -rw-r--r-- 1 root root 6689 2011-02-25 10:49 Vhosts_ispconfig.conf_25-02-11_10-49-12
    -rw-r--r-- 1 root root 6746 2011-02-25 11:00 Vhosts_ispconfig.conf_25-02-11_11-00-03
    -rw-r--r-- 1 root root 6746 2011-02-25 11:15 Vhosts_ispconfig.conf_25-02-11_11-15-54
    -rw-r--r-- 1 root root 6753 2011-02-25 11:17 Vhosts_ispconfig.conf_25-02-11_11-17-15
    -rw-r--r-- 1 root root 6753 2011-02-25 11:17 Vhosts_ispconfig.conf_25-02-11_11-17-46
    -rw-r--r-- 1 root root 6753 2011-02-25 20:17 Vhosts_ispconfig.conf_25-02-11_20-17-27
    -rw-r--r-- 1 root root 7023 2011-02-25 20:18 Vhosts_ispconfig.conf_25-02-11_20-18-17
    -rw-r--r-- 1 root root 7330 2011-02-25 20:49 Vhosts_ispconfig.conf_25-02-11_20-49-38
    -rw-r--r-- 1 root root 7330 2011-02-25 20:50 Vhosts_ispconfig.conf_25-02-11_20-50-39
    -rw-r--r-- 1 root root 7330 2011-02-28 08:09 Vhosts_ispconfig.conf_28-02-11_08-09-01
    -rw-r--r-- 1 root root 7330 2011-02-28 08:12 Vhosts_ispconfig.conf_28-02-11_08-12-25
    -rw-r--r-- 1 root root 7330 2011-02-28 08:24 Vhosts_ispconfig.conf_28-02-11_08-24-23
    -rw-r--r-- 1 root root 7330 2011-02-28 08:28 Vhosts_ispconfig.conf_28-02-11_08-28-03
    -rw-r--r-- 1 root root 7330 2011-02-28 08:29 Vhosts_ispconfig.conf_28-02-11_08-29-34
    -rw-r--r-- 1 root root 7330 2011-02-28 08:34 Vhosts_ispconfig.conf_28-02-11_08-34-15
     
  8. falko

    falko Super Moderator

    Make a backup of Vhosts_ispconfig.conf, rename Vhosts_ispconfig.conf_01-03-11_19-54-08 to Vhosts_ispconfig.conf and run
    Code:
    httpd -t
    Does it show any syntax errors?
     
  9. andron26

    andron26 New Member

    httpd -t

    httpd: Syntax error on line 331 of /etc/apache2/apache2.conf: Syntax error on line 205 of /etc/apache2/vhosts/Vhosts_ispconfig.conf: Expected </VirtualHost> but saw </Directory>
     
  10. falko

    falko Super Moderator

    What's in /etc/apache2/vhosts/Vhosts_ispconfig.conf? Did you modify the file?
     
  11. andron26

    andron26 New Member

    Attached vhosts file.
     

    Attached Files:

  12. falko

    falko Super Moderator

    Looks ok to me. Is that the file that gave the
    error?
     
  13. andron26

    andron26 New Member

    No. This is current Vhost config file. That error I've got from renamed file.
     
  14. falko

    falko Super Moderator

    Please post the file where the error is from.
     
  15. andron26

    andron26 New Member

    Attached file.
     

    Attached Files:

  16. falko

    falko Super Moderator

    Did you modify the file manually? In line 200, you have
    Code:
    Directory /var/www/web4/web>
    but it must be
    Code:
    [B][COLOR="Red"]<[/COLOR][/B]Directory /var/www/web4/web>
     
  17. andron26

    andron26 New Member

    Yes,
    I've modified manually. Is it possible to fix it by ispconfig? Current vhost config is without errors. But still there is no new input about new sites.
     
  18. falko

    falko Super Moderator

    Remove your manual changes and use the Apache Directives field in ISPConfig instead. And please make sure to introduce no sysntax errors.
     

Share This Page