Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
...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".
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.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
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 ...
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
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.
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
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.