Solved

Can't restart the APache webserver

Posted on 2004-09-02
3
278 Views
Last Modified: 2012-05-05
[root@************ var]#  ../etc/rc.d/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Syntax error on line 235 of /etc/httpd/conf/httpd.conf:
Error:\tApache has not been designed to serve pages while\n\trunning as root.  There are known race conditions that\n\twill allow any local user to read any file on the system.\n\tIf you still desire to serve pages as root then\n\tadd -DBIG_SECURITY_HOLE to the CFLAGS env variable\n\tand then rebuild the server.\n\tIt is strongly suggested that you instead modify the User\n\tdirective in your httpd.conf file to list a non-root\n\tuser.\n
                                                           [FAILED]

PLEASE ADVISE
0
Comment
Question by:jibranilyas
  • 2
3 Comments
 
LVL 36

Accepted Solution

by:
grblades earned 500 total points
Comment Utility
Hi jibranilyas,
Edit the /etc/httpd/conf/httpd.conf configuration file and look where it sais what user the apache software should be running as. Normally it runs as a user called 'apache'. I expect yours is set to run as root which is causing this error.
0
 

Author Comment

by:jibranilyas
Comment Utility
thanks,,, yes i do recall seeing that..

i will go check
0
 

Author Comment

by:jibranilyas
Comment Utility
yuppp.. got it.. so now the username is apache and group is apache also

0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now