Log file issues

Discussion in 'Installation/Configuration' started by Zoon, Sep 3, 2005.

  1. Zoon

    Zoon New Member

    Heya,

    Firstly, ISPConfig is excellent, especially for a free product.

    Secondly, am having some problems with the log files.

    The build is a brand new flat install of redhat FC4 and I followed the howtoforge "perfect setup" guide exactly, EXCEPT I have SELinux enabled and I'm using the firewall which comes with FC4 instead of the firewall built in to ISPConfig

    httpd wouldn't start originally with the original CustomLog statement in httpd.conf as follows:

    Code:
    CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig
    I had to comment it out in order for httpd to start correctly. I removed part of the line and httpd would start - as follows:

    Code:
    CustomLog "/var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig
    ... this shows which bit was not working but obviously the CustomLog command does not do the same thing as before.

    Once I had gotten past this, I added a vhost, and httpd failed to start again.

    Going methodically, I commented out every line in Vhosts_ispconfig.conf and one by one set them active again until I found the command causing httpd to fail starting.

    This is the command which caused the issue:

    Code:
    ErrorLog /home/web4/log/error.log
    This is ls -l on the vhost folder

    Code:
    [root@emily web4]# ls -l
    total 48
    drwxrwxr-x  2 apache web4 4096 Sep  3 18:10 cgi-bin
    drwxr-xr-x  2 apache web4 4096 Sep  3 19:50 log
    drwxrwxrwx  2 apache web4 4096 Sep  3 18:10 phptmp
    drwxr-xr-x  2 apache web4 4096 Sep  3 18:10 ssl
    drwxr-xr-x  2 apache web4 4096 Sep  3 18:10 user
    drwxrwxr-x  3 apache web4 4096 Sep  3 18:10 web
    Any help on this would be appreciated ... I'm not too fussed about logs myself but chances are I won't be the only one with websites on this server and they may want to look at their logs.

    Cheers :)
     
  2. Zoon

    Zoon New Member

    Oh and one other thing differ from the default, I used /home instead of /home/www for the root dir for web account folders.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    With your modifications the apache Logging in ISPConfig wont work anymore.

    SELinux dont like apache directories in the /home directory. You can a) disable SELinux b) reconfigure SELinux that it accepts the home directory and the cronolog logging application (dont know how) or c) find out in which directory SELinux accepts apache vhosts and install ISPConfig with this settings (maybe you have to copy the cronolog binary to another location too).
     
  4. Zoon

    Zoon New Member

    I just did

    vi /etc/sysconfig/selinux

    and set

    SELINUX=disabled

    and its all working ok now. I don't need it on anyway, cheers for the help :D
     

Share This Page