Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Aug 2006
    Posts
    9

    Default Apache won't start - httpd configtest won't run as root??

    Hello,

    I am having a problem getting apache to start... when I try to run httpd configtest, it says that I can't because I am basically logged in as root... another thing - when I check the /etc/httpd/logs/error_log, it says that apache has not been designed to serve pages while running as root???

    I appreciate any help!

  2. #2
    Member
    Join Date
    Nov 2005
    Posts
    83

    Lightbulb Hint!

    Try:
    # /usr/local/apache/bin/httpd -c /usr/local/apache/conf/httpd.conf

    and let us know the errors.

    Anyway, the basic fix will be /scripts/easyapache or WHM -> Apache update.
    Please let me know if i can assist you further,
    For more support contact me: designeru {at} gmail {dot} com

  3. #3
    Member
    Join Date
    Aug 2006
    Posts
    9

    Default

    From the console it gives this error:

    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.

    From the rebuild in WHM, it says:

    httpd has failed, please contact the sysadmin.
    ./build install
    Executing /scripts/postbuildapache (if exists)...Done
    /etc/rc.d/init.d/httpd start: httpd could not be started
    initfpsuexec: using apache 1.x support

    Attempting to restart httpd

    Waiting for httpd to restart....
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    finished.




    httpd status




    httpd has failed, please contact the sysadmin.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge jester.ro's Avatar
    Join Date
    Feb 2004
    Location
    Bucharest, Romania
    Posts
    304

    Default

    look in /etc/httpd/conf/httpd.conf

    and search for these

    User nobody
    Group nobody


    I think yours are

    User root
    Group root

    Running apache as root is a BIG mistake.
    If you find User root in httpd.conf change it to nobody and the broup too. And then restart httpd.
    Reliable dedicated and colocation services in Romania
    www.etp.ro

  5. #5
    Member
    Join Date
    Aug 2006
    Posts
    9

    Default

    They actually say:
    User nobody
    Group nodody

  6. #6
    Member
    Join Date
    Nov 2005
    Posts
    83

    Lightbulb Hint!

    search in httpd.conf a directive named:

    "User root"

    This can be added at a user (VHosts) too . Modify it so the root user won't appear in the httpd.conf file.
    Please let me know if i can assist you further,
    For more support contact me: designeru {at} gmail {dot} com

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by linearfusion
    I am having a problem getting apache to start... when I try to run httpd configtest, it says that I can't because I am basically logged in as root... another thing - when I check the /etc/httpd/logs/error_log, it says that apache has not been designed to serve pages while running as root???
    You might want to check on gid/uid of root. Using your favorite editor,
    pico /etc/passwd
    and make sure that this directive is there:
    root:x:0:0:root

    In /etc/group, it should be
    root:x:0:root

    No other entry in both files should have gid/uid of root (0).
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  8. #8
    Member
    Join Date
    Aug 2006
    Posts
    9

    Default

    I ended up getting cPanel support on the problem. Thanks to all who helped! Ends up, one of our other accounts was given 'root' access... I appreciate all of the suggestions!

Similar Threads & Tags
Similar threads

  1. httpd/named won't start, VirtualHost error.
    By rajonbh in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-18-2009, 07:26 AM
  2. Cpanel HTTPD and other services won't start
    By praveenkv1988 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 11-28-2008, 01:06 PM
  3. Apache won't Start httpd: [ != HTTP/1..]
    By a.sheipani in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-11-2007, 05:41 AM
  4. httpd won't start new problem?
    By beanvez in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-13-2005, 01:12 AM
  5. Apache won't start with no errors when running configtest
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-22-2004, 08:35 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube