You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ken Murach <ke...@harvard.edu> on 2005/11/22 17:16:42 UTC
[users@httpd] apache 1.3.33 multiple instances problem
Hi everyone,
My name is Ken Murach and I'm relatively new to the apache world. I'm a
unix administrator and I was recently asked to install apache 1.3.33 on one
of our servers. I was able to install/configure apache 1.3.33 successfully.
However, the user itisgrp is unable to start apache 1.3.33 for either the
able or fad account. However, I am able as root to start up apache 1.3.33
for both able & fad and have 2 instances running simultaneously.
Can't figure out why I can get this to work for root, but not as the
non-root user itisgrp. I verified that able will be using port 10061 and
fad will be using port 10055. I also verified that the script which calls
the httpd binary for each uses the -f flag to specify different configs.
I've also verified that the User directive for each config file specifies
the itisgrp account and the Group directive specifies the itis group.
Any help is greatly appreciated.
Thank you much
Sincerely
Ken Murach
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] apache 1.3.33 multiple instances problem
Posted by Ken Murach <ke...@harvard.edu>.
Hi Joshua,
Thanks for replying to my posting. The logs directory for each account
(able & fad) are 777 across the board and they are owned by itisgrp:itis.
Here's what I get when I try to start up apache 1.3.33 for the able account
for example as itisgrp:
[itisgrp@itis-appdev bin]$ ./httpd stop
kill: 4286: no such process
[itisgrp@itis-appdev bin]$ ./httpd start
Starting the able Apache web server
http://itis-appdev.harvard.edu:10061
https://itis-appdev.harvard.edu:10062
[itisgrp@itis-appdev bin]$ ps -ef|grep able
root 11425 11420 0 Nov 14 ? 0:00
/usr/local/apache_1.3.28_ssl/bin/rotatelogs /www/qa/logs/able/apache/able-error
root 11512 11504 0 Nov 14 ? 0:00
/usr/local/apache_1.3.28_ssl/bin/rotatelogs /www/qa/logs/able/apache/able-acces
root 11504 11352 0 Nov 14 ? 0:00 /bin/sh
-c /usr/local/apache_1.3.28_ssl/bin/rotatelogs /www/qa/logs/able/apach
root 11419 11352 0 Nov 14 ? 0:00 /bin/sh
-c /usr/local/apache_1.3.28_ssl/bin/rotatelogs /www/qa/logs/able/apach
root 11449 11443 0 Nov 14 ? 0:00
/usr/local/apache_1.3.28_ssl/bin/rotatelogs /www/qa/logs/able/apache/able-rewri
root 11516 11503 0 Nov 14 ? 0:00
/usr/local/apache_1.3.28_ssl/bin/rotatelogs /www/qa/logs/able/apache/able-acces
root 11423 11419 0 Nov 14 ? 0:00
/usr/local/apache_1.3.28_ssl/bin/rotatelogs /www/qa/logs/able/apache/able-error
root 11443 11352 0 Nov 14 ? 0:00 /bin/sh
-c /usr/local/apache_1.3.28_ssl/bin/rotatelogs /www/qa/logs/able/apach
root 11503 11352 0 Nov 14 ? 0:00 /bin/sh
-c /usr/local/apache_1.3.28_ssl/bin/rotatelogs /www/qa/logs/able/apach
root 11420 11352 0 Nov 14 ? 0:00 /bin/sh
-c /usr/local/apache_1.3.28_ssl/bin/rotatelogs /www/qa/logs/able/apach
itisgrp 4375 3764 0 11:28:14 pts/11 0:00 grep able
[itisgrp@itis-appdev bin]$ cd ../logs
[itisgrp@itis-appdev logs]$ ls -al
total 82
drwxrwxrwx 2 itisgrp itis 512 Nov 22 11:17 .
drwxrwxrwx 10 itisgrp itis 512 Oct 25 2004 ..
-rw-r--r-- 1 itisgrp itis 10575 Nov 22 11:06 access.log
-rw-r--r-- 1 itisgrp itis 146 Nov 22 11:27 error.log
-rw-r--r-- 1 itisgrp itis 5 Nov 22 11:27 httpd.pid
-rw-r--r-- 1 itisgrp itis 25606 Nov 22 11:27 ssl_engine_log
-rw------- 1 root other 0 Nov 9 15:04 ssl_mutex.1173
-rw------- 1 itisgrp itis 0 Aug 11 15:13 ssl_mutex.4268
-rw------- 1 itisgrp itis 0 May 27 18:52 ssl_mutex.8080
[itisgrp@itis-appdev logs]$ tail error.log
[Tue Nov 22 11:27:59 2005] [warn] pid file
/usr/users/itisgrp/servers/able/logs/httpd.pid overwritten -- Unclean
shutdown of previous Apache run?
I don't get any errors when trying to start up apache. The only apache that
is currently running for able is 1.3.28 but user would like to have 1.3.28
and 1.3.33 running simultaneously. Eventually will be moving from 1.3.28 to
1.3.33.
What is strace and how do I run it??
Thanks again Joshua for your time
Kenny
At 11:22 AM 11/22/2005 -0500, you wrote:
>On 11/22/05, Ken Murach <ke...@harvard.edu> wrote:
> > Hi everyone,
> >
> > My name is Ken Murach and I'm relatively new to the apache world. I'm a
> > unix administrator and I was recently asked to install apache 1.3.33 on one
> > of our servers. I was able to install/configure apache 1.3.33 successfully.
> > However, the user itisgrp is unable to start apache 1.3.33 for either the
> > able or fad account. However, I am able as root to start up apache 1.3.33
> > for both able & fad and have 2 instances running simultaneously.
> >
> > Can't figure out why I can get this to work for root, but not as the
> > non-root user itisgrp. I verified that able will be using port 10061 and
> > fad will be using port 10055. I also verified that the script which calls
> > the httpd binary for each uses the -f flag to specify different configs.
> >
> > I've also verified that the User directive for each config file specifies
> > the itisgrp account and the Group directive specifies the itis group.
>
>The User and Group directive will be ignored if you aren't root when
>you start the server.
>
>Do you get any error message when you start as non-root? Are the log
>directories writable by the non-root user? Have you tried running
>under strace (or equivalent) to catch failing syscalls?
>
>Joshua.
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] apache 1.3.33 multiple instances problem
Posted by Ken Murach <ke...@harvard.edu>.
Hi Joshua,
the httpd is actually the name of the script that calls the httpd binary
(see below):
[itisgrp@itis-appdev bin]$ cat httpd
#!/sbin/sh
#
# Start up the Apache web server
case "$1" in
'start')
LD_LIBRARY_PATH=/usr/lib:/usr/local/lib;export LD_LIBRARY_PATH
if [ -x /usr/local/apache_1.3.33_ssl/bin/httpd -a -f
/usr/users/itisgrp/servers/able/apache-conf/httpd.conf ]; then
echo "Starting the able Apache web server"
echo "\thttp://itis-appdev.harvard.edu:10061"
echo "\thttps://itis-appdev.harvard.edu:10062"
/usr/local/apache_1.3.33_ssl/bin/httpd -f
/usr/users/itisgrp/servers/able/apache-conf/httpd.conf
fi
;;
'stop')
pid=`cat /usr/users/itisgrp/servers/able/logs/httpd.pid`
if [ X = "$pid"X ]; then
echo "HTTPD is not running, or pid file was shot dead."
else
/usr/bin/kill $pid
fi
;;
'restart')
$0 stop
$0 start
;;
*)
echo "Usage: $0 { start | stop | restart }"
exit 1
;;
esac
exit 0
Kenny
At 02:36 PM 11/22/2005 -0500, you wrote:
>On 11/22/05, Ken Murach <ke...@harvard.edu> wrote:
> > Hi Joshua,
> >
> > Found out that for solaris, use the truss command instead of strace so I
> > ran the truss command (see below):
> >
> > itisgrp@itis-appdev bin]$ truss -o /tmp/output httpd start
>
>I don't know what that "httpd" is, but it certainly isn't the one that
>comes from httpd.apache.org, becuase "start" is not a valid httpd
>command line option.
>
>In any case, you should try using the -X command line option to force
>httpd into single-process mode for the truss.
>
>Joshua.
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] apache 1.3.33 multiple instances problem
Posted by Joshua Slive <js...@gmail.com>.
On 11/22/05, Ken Murach <ke...@harvard.edu> wrote:
> Hi Joshua,
>
> Found out that for solaris, use the truss command instead of strace so I
> ran the truss command (see below):
>
> itisgrp@itis-appdev bin]$ truss -o /tmp/output httpd start
I don't know what that "httpd" is, but it certainly isn't the one that
comes from httpd.apache.org, becuase "start" is not a valid httpd
command line option.
In any case, you should try using the -X command line option to force
httpd into single-process mode for the truss.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] apache 1.3.33 multiple instances problem
Posted by Ken Murach <ke...@harvard.edu>.
Hi Joshua,
Found out that for solaris, use the truss command instead of strace so I
ran the truss command (see below):
itisgrp@itis-appdev bin]$ truss -o /tmp/output httpd start
Starting the able Apache web server
http://itis-appdev.harvard.edu:10061
https://itis-appdev.harvard.edu:10062
[itisgrp@itis-appdev bin]$ cd /tmp
[itisgrp@itis-appdev tmp]$ more output
execve("/sbin/sh", 0xFFBFFBFC, 0xFFBFFC0C) argc = 3
getpid() = 4921 [4920]
getpgid(4921) = 4920
getsid(4921) = 25379
brk(0x0006CAB0) = 0
sysconfig(_CONFIG_SIGRT_MIN) = 39
sysconfig(_CONFIG_SIGRT_MAX) = 46
sigaltstack(0xFFBFFAF4, 0x00000000) = 0
sigaction(SIGHUP, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGHUP, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGINT, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGINT, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGQUIT, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGQUIT, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGILL, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGILL, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGTRAP, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGTRAP, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGABRT, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGABRT, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGEMT, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGEMT, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGFPE, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGFPE, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGBUS, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGBUS, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGSEGV, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGSYS, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGSYS, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGPIPE, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGPIPE, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGALRM, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGALRM, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGTERM, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGTERM, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGUSR1, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGUSR1, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGUSR2, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGUSR2, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGPWR, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGPWR, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGURG, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGURG, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGPOLL, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGPOLL, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGVTALRM, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGVTALRM, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGPROF, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGPROF, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGXCPU, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGXCPU, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGXFSZ, 0x00000000, 0xFFBFFA70) = 0
sigaction(SIGXFSZ, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGRTMIN, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGRTMIN+1, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGRTMIN+2, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGRTMIN+3, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGRTMAX-3, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGRTMAX-2, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGRTMAX-1, 0xFFBFF9D0, 0xFFBFFA50) = 0
sigaction(SIGRTMAX, 0xFFBFF9D0, 0xFFBFFA50) = 0
brk(0x0006CCB0) = 0
brk(0x0006CE48) = 0
brk(0x0006D148) = 0
getuid() = 1775 [1775]
getuid() = 1775 [1775]
getgid() = 1054 [1054]
getgid() = 1054 [1054]
open64("httpd", O_RDONLY) = 3
close(19) Err#9 EBADF
fcntl(3, F_DUPFD, 0x00000013) = 19
close(3) = 0
fcntl(19, F_SETFD, 0x00000001) = 0
ioctl(2, TCGETA, 0xFFBFFA1C) = 0
ioctl(19, TCGETA, 0xFFBFFA1C) Err#25 ENOTTY
read(19, " # ! / s b i n / s h\n #".., 128) = 128
read(19, " _ P A T H\n\t i f [ ".., 128) = 128
brk(0x0006D448) = 0
read(19, " o " S t a r t i n g ".., 128) = 128
read(19, " u : 1 0 0 6 2 "\n\t\t /".., 128) = 128
read(19, " d = ` c a t / u s r /".., 128) = 128
brk(0x0006D848) = 0
read(19, " h o t d e a d . "\n\t".., 128) = 128
read(19, "\n\t e x i t 1\n\t ; ;".., 128) = 25
getuid() = 1775 [1775]
stat64("/usr/local/apache_1.3.33_ssl/bin/httpd", 0xFFBFF538) = 0
access("/usr/local/apache_1.3.33_ssl/bin/httpd", 9) = 0
stat64("/usr/users/itisgrp/servers/able/apache-conf/httpd.conf",
0xFFBFF4D8) = 0
write(1, " S t a r t i n g t h e".., 36) = 36
write(1, "\t h t t p : / / i t i s".., 38) = 38
write(1, "\t h t t p s : / / i t i".., 39) = 39
fork() = 4922
waitid(P_PID, 4922, 0xFFBFF628, WEXITED|WTRAPPED|WNOWAIT) (sleeping...)
waitid(P_PID, 4922, 0xFFBFF628, WEXITED|WTRAPPED|WNOWAIT) = 0
ioctl(0, TIOCGPGRP, 0xFFBFF5E4) = 0
ioctl(0, TCGETS, 0x0006B178) = 0
waitid(P_PID, 4922, 0xFFBFF628, WEXITED|WTRAPPED) = 0
brk(0x0006D648) = 0
_exit(0)
[itisgrp@itis-appdev tmp]$
This is in regards to not being able to start up the 1.3.33 apache as a non
root user.
I can start up this apache as root for multiple instances but I can't start
it as a non-root user??
I've verified that the port is above 1000 (for a non-root user)
I've verified that the script which calls the httpd command uses the -f to
specify different config files for each instance (one for able and one for fad)
I'm stumped as to why I can start up 1.3.33 as root and be able to start up
multiple instances, but it won't start up for non-root user itisgrp??
Kenny
At 11:22 AM 11/22/2005 -0500, you wrote:
>On 11/22/05, Ken Murach <ke...@harvard.edu> wrote:
> > Hi everyone,
> >
> > My name is Ken Murach and I'm relatively new to the apache world. I'm a
> > unix administrator and I was recently asked to install apache 1.3.33 on one
> > of our servers. I was able to install/configure apache 1.3.33 successfully.
> > However, the user itisgrp is unable to start apache 1.3.33 for either the
> > able or fad account. However, I am able as root to start up apache 1.3.33
> > for both able & fad and have 2 instances running simultaneously.
> >
> > Can't figure out why I can get this to work for root, but not as the
> > non-root user itisgrp. I verified that able will be using port 10061 and
> > fad will be using port 10055. I also verified that the script which calls
> > the httpd binary for each uses the -f flag to specify different configs.
> >
> > I've also verified that the User directive for each config file specifies
> > the itisgrp account and the Group directive specifies the itis group.
>
>The User and Group directive will be ignored if you aren't root when
>you start the server.
>
>Do you get any error message when you start as non-root? Are the log
>directories writable by the non-root user? Have you tried running
>under strace (or equivalent) to catch failing syscalls?
>
>Joshua.
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] apache 1.3.33 multiple instances problem
Posted by Joshua Slive <js...@gmail.com>.
On 11/22/05, Ken Murach <ke...@harvard.edu> wrote:
> Hi everyone,
>
> My name is Ken Murach and I'm relatively new to the apache world. I'm a
> unix administrator and I was recently asked to install apache 1.3.33 on one
> of our servers. I was able to install/configure apache 1.3.33 successfully.
> However, the user itisgrp is unable to start apache 1.3.33 for either the
> able or fad account. However, I am able as root to start up apache 1.3.33
> for both able & fad and have 2 instances running simultaneously.
>
> Can't figure out why I can get this to work for root, but not as the
> non-root user itisgrp. I verified that able will be using port 10061 and
> fad will be using port 10055. I also verified that the script which calls
> the httpd binary for each uses the -f flag to specify different configs.
>
> I've also verified that the User directive for each config file specifies
> the itisgrp account and the Group directive specifies the itis group.
The User and Group directive will be ignored if you aren't root when
you start the server.
Do you get any error message when you start as non-root? Are the log
directories writable by the non-root user? Have you tried running
under strace (or equivalent) to catch failing syscalls?
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org