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.

Apache not working

Discussion in 'EasyApache' started by knoore, Jun 30, 2007.

  1. knoore

    knoore Member

    Joined:
    Jun 11, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Dear sir/madam,

    Since an hour or so, apache stopped working on my server. After trying to
    install GD for PHP 5.2.3 via "Apache Update", it could not restart
    httpd.

    I tried to convert "Apache Update" to default settings, but that also
    did not work out well.

    [root@m190 ~]# /usr/sbin/httpd configtest
    Error: Apache has not been designed to serve pages while
    running as root. There are known race conditions that
    will allow any local user to read any file on the system.
    If you still desire to serve pages as root then
    add -DBIG_SECURITY_HOLE to the EXTRA_CFLAGS line in your
    src/Configuration file and rebuild the server. It is
    strongly suggested that you instead modify the User
    directive in your httpd.conf file to list a non-root
    user.

    Yours sincerely,
    Jeroen Knooren
     
    #1 knoore, Jun 30, 2007
    Last edited: Jun 30, 2007
  2. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    Try starting Apache from SSH that will show you more detailed error that why it is failing. Also you can check /usr/local/apache/logs/error_log for any errors.
     
  3. knoore

    knoore Member

    Joined:
    Jun 11, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Does not work either, updated first post with error message.
     
  4. knoore

    knoore Member

    Joined:
    Jun 11, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I hoped that a reboot would do the trick, but after the reboot I recieved this email:

    "cpsrvd failed @ Sun Jul 1 01:13:01 2007. A restart was attempted automagicly."

    I cant login to my cpanel anymore. Already asked for help from Cpanel support.
     
  5. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    See what "/usr/local/apache/bin/apachectl configtest" tells you ...

    Now as far as getting your PHP and Apache fixed, I can get you up within the hour.

    Contact me and I'll be glad to give you a hand with that.
     
  6. knoore

    knoore Member

    Joined:
    Jun 11, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    [root@m190 ~]# /usr/local/apache/bin/apachectl configtest
    Error: Apache has not been designed to serve pages while
    running as root. There are known race conditions that
    will allow any local user to read any file on the system.
    If you still desire to serve pages as root then
    add -DBIG_SECURITY_HOLE to the EXTRA_CFLAGS line in your
    src/Configuration file and rebuild the server. It is
    strongly suggested that you instead modify the User
    directive in your httpd.conf file to list a non-root
    user.
     
Loading...

Share This Page