Apache doesn't start again

Discussion in 'Installation/Configuration' started by vaio1, Aug 24, 2007.

  1. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    Hi guys,

    the service httpd doesn't start!

    This is the error logs:

    Code:
    [Fri Aug 24 10:15:47 2007] [error] an unknown filter was not added: PHP
    [Fri Aug 24 10:30:40 2007] [notice] caught SIGTERM, shutting down
    unable to start piped log program '/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d': Permission denied
    Unable to open logs
    unable to start piped log program '/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d': Permission denied
    Unable to open logs
    unable to start piped log program '/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d': Permission denied
    Unable to open logs
    

    Code:
    [Fri Aug 24 10:37:14 2007] [warn] pid file /root/ispconfig/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Fri Aug 24 10:37:14 2007] [notice] Apache/1.3.37 (Unix) PHP/5.2.3 mod_ssl/2.8.28 OpenSSL/0.9.8e configured -- resuming normal operations
    [Fri Aug 24 10:37:14 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)
    
    Code:
    Aug 24 11:47:50 server1 smartd[3293]: Opened configuration file /etc/smartd.conf 
    Aug 24 11:47:50 server1 smartd[3293]: Configuration file /etc/smartd.conf parsed but has no entries (like /dev/hda) 
    Aug 24 11:47:50 server1 smartd[3293]: Monitoring 0 ATA and 0 SCSI devices 
    Aug 24 11:47:50 server1 smartd[3295]: smartd has fork()ed into background mode. New PID=3295. 
    Aug 24 11:50:50 server1 ntpd[2341]: synchronized to 88.198.18.245, stratum 2
    Aug 24 11:50:50 server1 ntpd[2341]: kernel time sync status change 0001
    Aug 24 11:51:10 server1 kernel: audit(1187949070.639:18): avc:  denied  { search } for  pid=3436 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 11:51:11 server1 kernel: audit(1187949071.402:19): avc:  denied  { search } for  pid=3440 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 11:51:11 server1 kernel: audit(1187949071.678:20): avc:  denied  { search } for  pid=3445 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 11:51:11 server1 kernel: audit(1187949071.976:21): avc:  denied  { search } for  pid=3449 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 11:51:12 server1 kernel: audit(1187949072.251:22): avc:  denied  { search } for  pid=3453 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 11:51:14 server1 kernel: audit(1187949074.833:23): avc:  denied  { search } for  pid=3474 comm="httpd" name="ispconfig" dev=dm-0 ino=19596041 scontext=root:system_r:httpd_t:s0 tcontext=root:object_r:user_home_t:s0 tclass=dir
    Aug 24 11:56:17 server1 kernel: audit(1187949377.107:24): avc:  denied  { search } for  pid=3589 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 11:56:17 server1 kernel: audit(1187949377.394:25): avc:  denied  { search } for  pid=3593 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 11:56:17 server1 kernel: audit(1187949377.670:26): avc:  denied  { search } for  pid=3597 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 11:56:17 server1 kernel: audit(1187949377.949:27): avc:  denied  { search } for  pid=3601 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 11:56:18 server1 kernel: audit(1187949378.242:28): avc:  denied  { search } for  pid=3605 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 12:01:23 server1 kernel: audit(1187949683.232:29): avc:  denied  { search } for  pid=3762 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 12:01:23 server1 kernel: audit(1187949683.536:30): avc:  denied  { search } for  pid=3768 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 12:01:23 server1 kernel: audit(1187949683.847:31): avc:  denied  { search } for  pid=3772 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 12:01:24 server1 kernel: audit(1187949684.137:32): avc:  denied  { search } for  pid=3776 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 12:01:24 server1 kernel: audit(1187949684.454:33): avc:  denied  { search } for  pid=3780 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 12:06:30 server1 kernel: audit(1187949990.285:34): avc:  denied  { search } for  pid=3876 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 12:06:30 server1 kernel: audit(1187949990.562:35): avc:  denied  { search } for  pid=3880 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 12:06:30 server1 kernel: audit(1187949990.867:36): avc:  denied  { search } for  pid=3884 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 12:06:31 server1 kernel: audit(1187949991.162:37): avc:  denied  { search } for  pid=3888 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    Aug 24 12:06:31 server1 kernel: audit(1187949991.437:38): avc:  denied  { search } for  pid=3892 comm="dovecot" name="www" dev=dm-0 ino=21102661 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
    

    what happens?
    Thanks
     
    Last edited: Aug 24, 2007
  2. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    I've solved temporary the problem. I have disabled SE-LINUX.

    How can I solve this problem?

    thanks
     
  3. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Leave SE-Linux disabled. This is a prerequisite if you want to run ISPConfig and many other software (see perfect setup guide) as the default SELinux rules are very strict and deny the normal usage of many software. SELinux denies access for many services like apache or dovecote end prevents them from functioning. If you really want to use the software with SELinux, you will have to build custom SELinux rules for all running services incl. ISPConfig.
     

Share This Page