08-21-2008
The reason that directive exist, is that only the apache-processes that serve out pages run as a different user. Did you notice that one process always runs as root (when started as root)? The other child-processes run as a different user.
When there is a compromise of your system, the intruder will have the privileges of the apache-user and not root. Always make sure that your apache-user has no more rights than it needs...
Quote:
Originally Posted by
rs266
then what is the usage of
#User <RUN_AS_USER> in httpd.conf.
Please explain a bit details for this.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, like a lot of people that post here, I am new at UNIX. The only UNIX I have ever messed with is my iBook running MacOSX (10.1). I have a grasp of the basic commands and understanding of the system but only to a point.
I searched the archive and FreeBSD.org and apache.org but I couldn't find... (4 Replies)
Discussion started by: Alpha_Harblo
4 Replies
2. UNIX for Dummies Questions & Answers
I need to know, which script starts the apache web server on start up? If anyone could help me that would be great. I'm in deep trouble if I can't find the script.
thanks very much
dan donohd
If you know my e-mail is donohd@sage.edu thanks:( (1 Reply)
Discussion started by: donohd
1 Replies
3. AIX
I am in the process of reorging my Lawson db. I need to turn off the RMI server...not a problem. However my instructions also state that I must also
shutdown my Servlet Container....I believe it is Apache.
I have looked in /usr/apache/bin/apachectl
What is the command for stopping and... (2 Replies)
Discussion started by: MILLERJ62
2 Replies
4. Solaris
Hi,
I have installed apache webserver on my solaris 10(x86). When I tried to start the server it gives following error,
ld.so.1: /usr/local/apache2/bin/httpd: fatal: libssl.so.0.9.8: open failed: No such file or directory
Killedld.so.1:: Too many arguments
Can somebody please guide me how... (1 Reply)
Discussion started by: maheshsri
1 Replies
5. Solaris
help me please.................bro
i was install apache2 and i have been configure httpd.conf on my solaris 10 machine n i already running my httd service but why my webserver couldn't run on my browser?
some buddy help me.............:confused::confused::confused::confused::confused: (5 Replies)
Discussion started by: yatmianto
5 Replies
6. Solaris
hi all
i'm having a problem with apache on solaris 10 SPARC
I'm trying to start httpd as root
but it fails with the following error
/usr/local/apache2/bin/httpd -k start
httpd: Could not determine the server's fully qualified domain name, using 192.168.1.11 for ServerName
(20014)Error... (16 Replies)
Discussion started by: h@foorsa.biz
16 Replies
7. Red Hat
Hi,
I have 2 apache instance on my machine (RedHat), and i need to start the "apache2" after any reboot but could not find the way ( searching into "httpd.conf" ), so i'am starting "apache2" manually.
After a reboot, none of them starts and when i when doing : httpd -k start, i got "apache"... (14 Replies)
Discussion started by: mehdi1973
14 Replies
8. UNIX for Advanced & Expert Users
After i added this line to my apache httpd.conf it does not start.
AuthUserFile /apps/apache22/conf/httpd.passwd
and i see the below error.
Syntax error on line 876 of /apps/apache22/conf/httpd.conf:
AuthUserFile not allowed here
Kindly help. (4 Replies)
Discussion started by: mohtashims
4 Replies
9. Red Hat
I have a new server, installed everything and tried to get it all up and running.
Got the following issue:
# /usr/local/apache/bin/apachectl start
httpd: Syntax error on line 54 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server:... (0 Replies)
Discussion started by: Tommyk
0 Replies
10. Shell Programming and Scripting
Hello,
I know this is not a simple question so I just need to know where to start for below project:
I am running under Ubuntu 18.04
What I'd like to see in apache page is to display status of particular process pids.
ps aux | grep keywords.txt
keywords.txt
word1
word2
word3
word4... (9 Replies)
Discussion started by: baris35
9 Replies
LEARN ABOUT DEBIAN
pidfilehack
pidfilehack(8) System Manager's Manual pidfilehack(8)
NAME
pidfilehack - work around daemons that always fork
SYNOPSIS
pidfilehack servicename pidfile command [parameters]
DESCRIPTION
pidfilehack is used to work around daemons that insist on forking into the background, but that do write a correct pid file.
pidfilehack forks the actual service, then waits for the pidfile to be written. Once it can read the pid from the pidfile it will tell
minit the real pid and quit.
USAGE
usually pidfilehack is symlinked as run command of a service.
servicename
the name of the service pidfilehack is installed for.
pidfile
the filename to read the pid from
command
the real command to start
parameters
additional parameters for the command
A typical use of this command will look like this:
/etc/minit/apache
/etc/minit/apache/params
apache
/var/run/apache.pid
apachectl
start
/etc/minit/apache/run
-> /sbin/pidfilehack
AUTHOR
minit was written by Felix von Leitner and can be downloaded from his page at http://www.fefe.de/minit/
This manpage was written by Erich Schubert <erich@debian.org> for the Debian GNU/Linux operating system.
SEE ALSO
msvc(8), pidfilehack(8)
pidfilehack(8)