Re: [users@httpd] apache 1.3.33 multiple instances problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <ken_murach@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux