Solved

Can't restart the APache webserver

Posted on 2004-09-02
3
297 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
ID: 11966483
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
ID: 11966775
thanks,,, yes i do recall seeing that..

i will go check
0
 

Author Comment

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

0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Squid Connection Pools 3 67
Ubuntu not booting - How get past GRUB? 3 41
linux installs 6 59
How code a 301 redirect for folder files -> 1 file 2 39
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

776 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