RE: [EMAIL PROTECTED] apache 1.3.33 multiple instances problem

2005-11-28 Thread Ken Murach
Thank you Axel for your help. I will look into what you said on both the 
pid possible problem and and running the truss command with the -f option 
for more information.


Thanks again
Kenny

At 11:02 AM 11/24/2005 +0100, you wrote:
> [EMAIL PROTECTED] 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?


makes me suspect that at least one of the apache instances do not create 
the PID file in the correct directory. In this case, fad may be creating 
the pid file in the directory of able. Check the PidFile directive in the 
apache configurations.


> [EMAIL PROTECTED] bin]$ truss -o /tmp/output httpd start

The only trace this will give you is from the script that starts Apache. 
You should at least give the -f option to truss. Furthermore, as Joshua 
suggests, for trace purposes, start Apache with the -X option.


-ascs

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] apache 1.3.33 multiple instances problem

2005-11-24 Thread Axel-Stéphane SMORGRAV
> [EMAIL PROTECTED] 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?
 
makes me suspect that at least one of the apache instances do not create the 
PID file in the correct directory. In this case, fad may be creating the pid 
file in the directory of able. Check the PidFile directive in the apache 
configurations.

> [EMAIL PROTECTED] bin]$ truss -o /tmp/output httpd start

The only trace this will give you is from the script that starts Apache. You 
should at least give the -f option to truss. Furthermore, as Joshua suggests, 
for trace purposes, start Apache with the -X option.

-ascs

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] apache 1.3.33 multiple instances problem

2005-11-22 Thread Ken Murach

Hi Joshua,

the httpd is actually the name of the script that calls the httpd binary 
(see below):


[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> wrote:
>  Hi Joshua,
>
>  Found out that for solaris, use the truss command instead of strace so I
> ran the truss command (see below):
>
>  [EMAIL PROTECTED] 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 http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] apache 1.3.33 multiple instances problem

2005-11-22 Thread Joshua Slive
On 11/22/05, Ken Murach <[EMAIL PROTECTED]> wrote:
>  Hi Joshua,
>
>  Found out that for solaris, use the truss command instead of strace so I
> ran the truss command (see below):
>
>  [EMAIL PROTECTED] 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 http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] apache 1.3.33 multiple instances problem

2005-11-22 Thread Ken Murach


Hi Joshua,
Found out that for solaris, use the truss command instead of strace so I
ran the truss command (see below):
[EMAIL PROTECTED] 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

[EMAIL PROTECTED] bin]$ cd /tmp
[EMAIL PROTECTED] 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,
0x)
= 0
sigaction(SIGHUP, 0x,
0xFFBFFA70)   = 0
sigaction(SIGHUP, 0xFFBFF9D0,
0xFFBFFA50)   = 0
sigaction(SIGINT, 0x,
0xFFBFFA70)   = 0
sigaction(SIGINT, 0xFFBFF9D0,
0xFFBFFA50)   = 0
sigaction(SIGQUIT, 0x, 0xFFBFFA70) 
= 0
sigaction(SIGQUIT, 0xFFBFF9D0, 0xFFBFFA50) 
= 0
sigaction(SIGILL, 0x,
0xFFBFFA70)   = 0
sigaction(SIGILL, 0xFFBFF9D0,
0xFFBFFA50)   = 0
sigaction(SIGTRAP, 0x, 0xFFBFFA70) 
= 0
sigaction(SIGTRAP, 0xFFBFF9D0, 0xFFBFFA50) 
= 0
sigaction(SIGABRT, 0x, 0xFFBFFA70) 
= 0
sigaction(SIGABRT, 0xFFBFF9D0, 0xFFBFFA50) 
= 0
sigaction(SIGEMT, 0x,
0xFFBFFA70)   = 0
sigaction(SIGEMT, 0xFFBFF9D0,
0xFFBFFA50)   = 0
sigaction(SIGFPE, 0x,
0xFFBFFA70)   = 0
sigaction(SIGFPE, 0xFFBFF9D0,
0xFFBFFA50)   = 0
sigaction(SIGBUS, 0x,
0xFFBFFA70)   = 0
sigaction(SIGBUS, 0xFFBFF9D0,
0xFFBFFA50)   = 0
sigaction(SIGSEGV, 0xFFBFF9D0, 0xFFBFFA50) 
= 0
sigaction(SIGSYS, 0x,
0xFFBFFA70)   = 0
sigaction(SIGSYS, 0xFFBFF9D0,
0xFFBFFA50)   = 0
sigaction(SIGPIPE, 0x, 0xFFBFFA70) 
= 0
sigaction(SIGPIPE, 0xFFBFF9D0, 0xFFBFFA50) 
= 0
sigaction(SIGALRM, 0x, 0xFFBFFA70) 
= 0
sigaction(SIGALRM, 0xFFBFF9D0, 0xFFBFFA50) 
= 0
sigaction(SIGTERM, 0x, 0xFFBFFA70) 
= 0
sigaction(SIGTERM, 0xFFBFF9D0, 0xFFBFFA50) 
= 0
sigaction(SIGUSR1, 0x, 0xFFBFFA70) 
= 0
sigaction(SIGUSR1, 0xFFBFF9D0, 0xFFBFFA50) 
= 0
sigaction(SIGUSR2, 0x, 0xFFBFFA70) 
= 0
sigaction(SIGUSR2, 0xFFBFF9D0, 0xFFBFFA50) 
= 0
sigaction(SIGPWR, 0x,
0xFFBFFA70)   = 0
sigaction(SIGPWR, 0xFFBFF9D0,
0xFFBFFA50)   = 0
sigaction(SIGURG, 0x,
0xFFBFFA70)   = 0
sigaction(SIGURG, 0xFFBFF9D0,
0xFFBFFA50)   = 0
sigaction(SIGPOLL, 0x, 0xFFBFFA70) 
= 0
sigaction(SIGPOLL, 0xFFBFF9D0, 0xFFBFFA50) 
= 0
sigaction(SIGVTALRM, 0x, 0xFFBFFA70)    = 0
sigaction(SIGVTALRM, 0xFFBFF9D0, 0xFFBFFA50)    = 0
sigaction(SIGPROF, 0x, 0xFFBFFA70) 
= 0
sigaction(SIGPROF, 0xFFBFF9D0, 0xFFBFFA50) 
= 0
sigaction(SIGXCPU, 0x, 0xFFBFFA70) 
= 0
sigaction(SIGXCPU, 0xFFBFF9D0, 0xFFBFFA50) 
= 0
sigaction(SIGXFSZ, 0x, 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,
0x0013)  
= 19
close(3)   
= 0
fcntl(19, F_SETFD,
0x0001) 
= 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/b

Re: [EMAIL PROTECTED] apache 1.3.33 multiple instances problem

2005-11-22 Thread Ken Murach

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:


[EMAIL PROTECTED] bin]$ ./httpd stop
kill: 4286: no such process

[EMAIL PROTECTED] bin]$ ./httpd start
Starting the able Apache web server
http://itis-appdev.harvard.edu:10061
https://itis-appdev.harvard.edu:10062

[EMAIL PROTECTED] 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

[EMAIL PROTECTED] bin]$ cd ../logs
[EMAIL PROTECTED] 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
[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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 http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional command

Re: [EMAIL PROTECTED] apache 1.3.33 multiple instances problem

2005-11-22 Thread Joshua Slive
On 11/22/05, Ken Murach <[EMAIL PROTECTED]> 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 http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]