Logs

Discussion in 'Installation/Configuration' started by srg, Jul 27, 2005.

  1. srg

    srg New Member

    It works not fine. For example, it don't writes configs to disc, just to mysql database. How can I debug, what is wrong?
     
  2. falko

    falko Super Moderator

    You can have a look at the ISPConfig log file: /home/admispconfig/ispconfig/ispconfig.log

    Are no files written at all, or just some files (maybe /etc/postfix/virtusertable is written, and your Vhosts_ispconifg.conf isn't)?

    Does the file /root/ispconfig/.ispconfig_lock exist?
     
  3. srg

    srg New Member

    At log file:
    28.07.2005 - 08:16:41 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1181: cp -fr /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf~
    28.07.2005 - 08:16:41 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2327: WARNING: could not httpd -t &> /dev/null
    28.07.2005 - 08:16:41 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2333: httpd syntax seems to contain err
    ors, reloading with old configuration
    28.07.2005 - 08:16:41 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2334: mv -f /etc/httpd/conf/vhosts/Vhos
    ts_ispconfig.conf /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf_28-07-05_08-16-41
    28.07.2005 - 08:16:41 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2335: mv -f /etc/httpd/conf/vhosts/Vhos
    ts_ispconfig.conf~ /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf

    I noticed, that Vhosts_ispconfig.conf* not included in httpd's config.

    File /root/ispconfig/.ispconfig_lock not exists.
     
    Last edited: Jul 28, 2005
  4. srg

    srg New Member

    Is it right?
    [root@studik ~]# ls -l /etc/httpd/conf/vhosts/
    total 16
    -rw-r--r-- 1 root root 0 Jul 28 08:16 Vhosts_ispconfig.conf
    -rw-r--r-- 1 root root 1809 Jul 27 15:43 Vhosts_ispconfig.conf_27-07-05_15-43-46
    -rw-r--r-- 1 root root 1811 Jul 28 08:16 Vhosts_ispconfig.conf_28-07-05_08-16-41
    [root@studik ~]#
     
  5. falko

    falko Super Moderator

    This means that ISPConfig wrote a new /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf, but httpd -t gave back a syntax error, so ISPConfig replaced /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf with the last working version (which in your case is empty because it it the first web site you tried to create). This looks as if you need to load some modules into your Apache. For example, if you activated PHP for your web site in ISPConfig, the ISPConfig wrote some PHP lines into /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf, but if the PHP module isn't loaded into your Apache then httpd -t gives back an error.

    Try to load some missing modules into your Apache (e.g. php, mod_rewrite, etc.) and restart Apache, and then try to make some changes to your web site in ISPConfig and check if /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf is written correctly then.
     
  6. srg

    srg New Member

    It woks! I found, where was trouble. Thanx.
     

Share This Page