Apache 2 problem

Discussion in 'General' started by Gimly, Mar 8, 2009.

  1. Gimly

    Gimly Member

    [Resolved] Apache 2 problem

    Hi all,

    I come here because I've serious problem with my apache 2. When I want to start the service with /etc/init.d/apache2 start, I've this error :

    without other error message. When I make cat /var/log/apache2/error.log I don't have any error. When I look at /var/log/syslog, there are no errors.

    I don't know where my problem came.

    If you have an idea ?

    Thank you in advance for your help :)

    OS : Debian Lenny
    ISPConfig : 2.2.29
     
    Last edited: Mar 13, 2009
  2. Gimly

    Gimly Member

    No idea about my problem ?
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    run:

    httpd -t

    and check if there are any configuration errors.
     
  4. Gimly

    Gimly Member

    Thanks Till for your answer.

    This is the return of httpd -t

     
  5. valent

    valent New Member

    Two options:
    1. Have you setup your SELinux correctly?
    2. If you compiled your own Apache from sources, you have to set user.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Search for the variable ${APACHE_RUN_USER} in the file and replace it with the username of the apache user. the apache user is normally named apache, www-data or wwwrun depending on your linux distribution.
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Try this command:

    Code:
    . /etc/apache2/envvars && httpd -t
     
  8. Gimly

    Gimly Member

    Hi all,

    @ valent :

    I don't use SELinux and I use Debian lenny package for apache ;)

    @ falko :

    This is the result for the command

    @ all :
    This is the contain for apache2 error.log before apache crash :

    If anyone have an idea ?

    I precise I use mod_security 2.5 and mod_evasive
     
  9. Gimly

    Gimly Member

    I add my file envvars :

    ls -al /etc/apache2 :

    Do you want to see apache2.conf ?
     
  10. falko

    falko Super Moderator Howtoforge Staff

    What happens when you disable these modules and their configurations?
     
  11. Gimly

    Gimly Member

    I tested with disable this module and I've the same problem. I've remove (with purge), delete conf file et reinstall and the problem persist :/.
     
  12. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    netstat -tap
    ?
     
  13. id10t

    id10t Member

    Is this the system apache or the ispconfig apache? If system, and you have a site in ispconfig, then don't forget that the error logs for the sites are in different locations. FWIW I just set up a Lenny install w/ same ispconfig, had no issues. Followed the perfect server set up, with a few minor changes
     
  14. Gimly

    Gimly Member

    This is the result for

    Other test :

    @ id1ot : I use ispconfig and debian since 3 years ago, I don't want to reinstall my server with their 980 websites =).
     
    Last edited: Mar 11, 2009
  15. Gimly

    Gimly Member

    When I comment this line on apache2.conf "Include /etc/apache2/vhosts/Vhosts_ispconfig.conf", apache start correctly. There is a way to verify the good structure of the file ?

    Where can I look to find the error about this file ? In "/home/admispconfig/ispconfig/ispconfig.log" ?

    Thank you for your help :)
     
  16. Gimly

    Gimly Member

    This is a new quote from error.log's apache :

     
  17. Gimly

    Gimly Member

    Any idea :confused:
     
  18. falko

    falko Super Moderator Howtoforge Staff

    Maybe the file is too long for Apache? What happens when you manually remove some vhosts (make a backup of the file before you do this)? Does Apache start then?
     
  19. Gimly

    Gimly Member

    It's not on my primary server, it's on my second server were there are 20 websites
     
  20. id10t

    id10t Member

    Take a look at the error logs for each hosted site, since it starts normally when you aren't hosting anyone (no vhosts file).

    tail /var/www/web*/log/error.log
     

Share This Page