LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-11-2003, 09:35 AM   #16
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600

...grepping the "netstat" output you posted above: "grep tmp/netstat -ce "^tcp.*ESTABLISHED.*httpd" I get 16 connections, can't see no problem with that. Similar way would be to use "lsof", as root: "lsof -i | grep -ce ESTABLISHED".
 
Old 07-15-2003, 09:52 PM   #17
jiena
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
I've installed apache on linux 7.3 but when i tried to restart the service an error
occured.

Below is the error:

httpd failed to start. The error was: Starting httpd: 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 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. FAILED.

i have no idea what was the error is about. Pls give me suggestion on how to
solve this problem. FYI, i'm new to linux and apache.

thanks in advance.
 
Old 07-16-2003, 04:03 AM   #18
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally posted by unSpawn
What does "netstat -anp -A inet| grep -e "^tcp.*ESTABLISHED.*httpsd" say?
...
...grepping the "netstat" output you posted above: "grep tmp/netstat -ce "^tcp.*ESTABLISHED.*httpd" I get 16 connections, can't see no problem with that.
@unSpawn:
You had a typo in your first post: ...*http_s_d, that's why ...
 
Old 07-16-2003, 04:09 AM   #19
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally posted by jiena
... httpd failed to start. The error was: Starting httpd: 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 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. FAILED.
...
It would have been better to start a new thread for your problem. Who shall find it here?

Anyway: Read the error message you posted yourself: It's all there . So, login as normal user, not root (administrator). That should do the trick.
 
Old 07-16-2003, 04:24 AM   #20
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by JZL240I-U
@unSpawn:
You had a typo in your first post: ...*http_s_d, that's why ...
Yeah, actually he didn't. He was rather referring to an SSL secured apache setup, not really a typo but a look-over. He recognized it in one of his above posts

Cool
 
Old 07-16-2003, 04:45 AM   #21
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally posted by MasterC
... referring to an SSL secured apache setup.
Now why would that be so? I mean, what's the reason that a secured apache has a different daemon? Couldn't they just do it in modular software and add a security layer between daemon and apache?
Quote:
Originally posted by MasterC
He recognized it in one of his above posts
That's right, so he did, sorry for stating the obvious, but I didn't reread the whole thread.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2000 MySQL connections, still "too many connections" newlinuxnewbie Linux - General 0 11-07-2005 01:03 PM
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM
just checking... bandofmercy Linux - Hardware 1 03-28-2003 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration