The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How I Fix My Apache ? [moved]

Discussion in 'EasyApache' started by vb_packets, Jul 1, 2005.

  1. vb_packets

    vb_packets Member

    Joined:
    Nov 12, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    How I Fix My Apache ?

    my apache wont start. i click Restart httpd and it says failed please contact sysadmin. anyone know how i can fix it ? or reset apache to default as it came with my server coz its annoyin me :confused:
     
  2. __arjun__

    __arjun__ Guest

    If you have shell access ( as root ), try starting from the shell:

    root# /etc/init.d/httpd start

    If it still fails, check apache error logs ( /usr/local/apache/logs/error_log )
    and paste the error.
     
  3. vb_packets

    vb_packets Member

    Joined:
    Nov 12, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    root@DH2 [~]# /usr/local/apache/logs/error_log
    -bash: /usr/local/apache/logs/error_log: Permission denied
    root@DH2 [~]#
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That's not how you view a file from shell. You need to use a utility like tail or cat. You are going to either teach yourself some basic Linux skills or, if you're not interested, hire a server administrator to look after your server for you. Here's some useful tutorials:
    http://www.tldp.org/guides.html
     
  5. vb_packets

    vb_packets Member

    Joined:
    Nov 12, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    root@DH2 [~]# tail -f /usr/local/apache/logs/error_log
    [Fri Jul 1 06:57:01 2005] [warn] NameVirtualHost 66.235.181.93:80 has no VirtualHosts
    [Fri Jul 1 06:57:02 2005] [notice] Apache/1.3.33 (Unix) mod_jk/1.2.8 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a PHP-CGI/0.1b configured -- resuming normal operations
    [Fri Jul 1 06:57:02 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Fri Jul 1 06:57:02 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)
    [Fri Jul 1 07:01:45 2005] [notice] caught SIGTERM, shutting down
    [Fri Jul 1 07:01:49 2005] [warn] NameVirtualHost 66.235.181.93:80 has no VirtualHosts
    [Fri Jul 1 07:01:49 2005] [notice] Apache/1.3.33 (Unix) mod_jk/1.2.8 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a PHP-CGI/0.1b configured -- resuming normal operations
    [Fri Jul 1 07:01:49 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Fri Jul 1 07:01:49 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)
    [Fri Jul 1 07:08:00 2005] [notice] caught SIGTERM, shutting down

    and i have a Server Admin but he is offline today. :cool:
     
    #5 vb_packets, Jul 1, 2005
    Last edited: Jul 1, 2005
  6. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    I don't see any major issue related to apache in this portion of your errolog file. Youre' better off hiring a sys admin to fix this problem for you.
     
Loading...

Share This Page