You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Adam Griffiths <ne...@adam-griffiths.co.uk> on 2003/11/05 13:02:49 UTC
[users@httpd] Re: starting httpd as a non-root user
Here is a transcript running without the &:
[...]$ httpd -X -D SSL -D NONROOT
[...]$
I hit enter and get no error message and there is no error message in the
log either...
-Adam
"Dan Trainor" <da...@cavecreek.net> wrote in message
news:1068033221.31076.22.camel@xserv.cavecreek.net...
> Try running that command without the &, it should exit with some sort of
> error, or code.
>
> -dant
>
>
>
> On Wed, 2003-11-05 at 04:46, Adam Griffiths wrote:
> > Hi,
> > I have been running apache httpd for over three years on a server
provided
> > to me by an ISP. The server automatically starts httpd from it's
/etc/rc.
> >
> > I have a login, but not root access, I can kill the httpd process
(killall
> > httpd) and I would like to be able to start it again, without rebooting
my
> > server and having /etc/rc do the job. The reason for this is that I need
to
> > do some debugging and I would like to be able to stop and start httpd at
> > will from my non-root login account. However try as I might I can't
start
> > http at non-root.
> >
> > I am logging in using ssh, with my non-root account and attempting to
start
> > httpd, here is an example of what happens:
> >
> > [...]$ httpd -X -D SSL -D NONROOT &
> > [1] 3548
> > [...]$
> > [1]+ Exit 1 httpd -X -D SSL -D NONROOT
> > [...]$
> >
> > httpd exits! but no errors appear in the error log.
> >
> > I would be very grateful for any suggestions. My httpd.conf is below.
> >
> > Kind Regards
> >
> > Adam
> >
>
> <--------------------- BIG 'OLE SNIP ------------------>
>
>
>
> ---------------------------------------------------------------------
> 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
[users@httpd] Re: Re: starting httpd as a non-root user
Posted by Adam Griffiths <ne...@adam-griffiths.co.uk>.
The version of apachectl on my server doesn't work, it fails with:
line 26: /etc/rc.d/init.d/functions: No such file or directory
However,
$ http -t
returns:
Syntax OK
"Dan Trainor" <da...@cavecreek.net> wrote in message
news:1068033954.31076.26.camel@xserv.cavecreek.net...
> apachectl configtest, rather. graveyard shift, sorry. heh.
>
> -dant
>
>
> On Wed, 2003-11-05 at 05:02, Adam Griffiths wrote:
> > Here is a transcript running without the &:
> >
> > [...]$ httpd -X -D SSL -D NONROOT
> >
> > [...]$
> >
> > I hit enter and get no error message and there is no error message in
the
> > log either...
> >
> > -Adam
> >
> > "Dan Trainor" <da...@cavecreek.net> wrote in message
> > news:1068033221.31076.22.camel@xserv.cavecreek.net...
> > > Try running that command without the &, it should exit with some sort
of
> > > error, or code.
> > >
> > > -dant
> > >
> > >
> > >
> > > On Wed, 2003-11-05 at 04:46, Adam Griffiths wrote:
> > > > Hi,
> > > > I have been running apache httpd for over three years on a server
> > provided
> > > > to me by an ISP. The server automatically starts httpd from it's
> > /etc/rc.
> > > >
> > > > I have a login, but not root access, I can kill the httpd process
> > (killall
> > > > httpd) and I would like to be able to start it again, without
rebooting
> > my
> > > > server and having /etc/rc do the job. The reason for this is that I
need
> > to
> > > > do some debugging and I would like to be able to stop and start
httpd at
> > > > will from my non-root login account. However try as I might I can't
> > start
> > > > http at non-root.
> > > >
> > > > I am logging in using ssh, with my non-root account and attempting
to
> > start
> > > > httpd, here is an example of what happens:
> > > >
> > > > [...]$ httpd -X -D SSL -D NONROOT &
> > > > [1] 3548
> > > > [...]$
> > > > [1]+ Exit 1 httpd -X -D SSL -D NONROOT
> > > > [...]$
> > > >
> > > > httpd exits! but no errors appear in the error log.
> > > >
> > > > I would be very grateful for any suggestions. My httpd.conf is
below.
> > > >
> > > > Kind Regards
> > > >
> > > > Adam
> > > >
> > >
> > > <--------------------- BIG 'OLE SNIP ------------------>
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> >
>
>
>
> ---------------------------------------------------------------------
> 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] Re: starting httpd as a non-root user
Posted by Dan Trainor <da...@cavecreek.net>.
apachectl configtest, rather. graveyard shift, sorry. heh.
-dant
On Wed, 2003-11-05 at 05:02, Adam Griffiths wrote:
> Here is a transcript running without the &:
>
> [...]$ httpd -X -D SSL -D NONROOT
>
> [...]$
>
> I hit enter and get no error message and there is no error message in the
> log either...
>
> -Adam
>
> "Dan Trainor" <da...@cavecreek.net> wrote in message
> news:1068033221.31076.22.camel@xserv.cavecreek.net...
> > Try running that command without the &, it should exit with some sort of
> > error, or code.
> >
> > -dant
> >
> >
> >
> > On Wed, 2003-11-05 at 04:46, Adam Griffiths wrote:
> > > Hi,
> > > I have been running apache httpd for over three years on a server
> provided
> > > to me by an ISP. The server automatically starts httpd from it's
> /etc/rc.
> > >
> > > I have a login, but not root access, I can kill the httpd process
> (killall
> > > httpd) and I would like to be able to start it again, without rebooting
> my
> > > server and having /etc/rc do the job. The reason for this is that I need
> to
> > > do some debugging and I would like to be able to stop and start httpd at
> > > will from my non-root login account. However try as I might I can't
> start
> > > http at non-root.
> > >
> > > I am logging in using ssh, with my non-root account and attempting to
> start
> > > httpd, here is an example of what happens:
> > >
> > > [...]$ httpd -X -D SSL -D NONROOT &
> > > [1] 3548
> > > [...]$
> > > [1]+ Exit 1 httpd -X -D SSL -D NONROOT
> > > [...]$
> > >
> > > httpd exits! but no errors appear in the error log.
> > >
> > > I would be very grateful for any suggestions. My httpd.conf is below.
> > >
> > > Kind Regards
> > >
> > > Adam
> > >
> >
> > <--------------------- BIG 'OLE SNIP ------------------>
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
---------------------------------------------------------------------
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
[users@httpd] Re: Re: starting httpd as a non-root user
Posted by Adam Griffiths <ne...@adam-griffiths.co.uk>.
A normal start-up of httpd (i.e via etc/rc and as root gives the error log
show bellow.
I noticed mention of suEXEC, could this be anything do with the problem,
i.e. when I'm trying to start as a non-root user might this conflict with
the suEXEC mechanism?
-Adam
[Wed Nov 5 12:37:40 2003] [info] created shared memory segment #802422829
[Wed Nov 5 12:37:40 2003] [notice] Apache/1.3.28 (Unix) (Red-Hat/Linux)
AxKit/1.62 mod_ssl/2.8.15 OpenSSL/0.9.7a mod_perl/1.26 config
ured -- resuming normal operations
[Wed Nov 5 12:37:40 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Wed Nov 5 12:37:40 2003] [info] Server built: Aug 18 2003 12:10:52
[Wed Nov 5 12:37:40 2003] [notice] Accept mutex: flock (Default: flock)
"Adam Griffiths" <ne...@adam-griffiths.co.uk> wrote in message
news:boaqp2$tjc$1@sea.gmane.org...
> with:
> SSLLogLevel debug
> LogLevel debug
>
> I get nothing in error_log, and the follwoing in ssl_engine_log:
>
> [05/Nov/2003 12:29:16 17654] [info] Server: Apache/1.3.28, Interface:
> mod_ssl/2.8.15, Library: OpenSSL/0.9.7a
> [05/Nov/2003 12:29:16 17654] [info] Init: 1st startup round (still not
> detached)
> [05/Nov/2003 12:29:16 17654] [info] Init: Initializing OpenSSL library
> [05/Nov/2003 12:29:16 17654] [info] Init: Seeding PRNG with 136 bytes of
> entropy
> [05/Nov/2003 12:29:16 17654] [info] Init: Generating temporary RSA
private
> keys (512/1024 bits)
> [05/Nov/2003 12:29:16 17654] [info] Init: Configuring temporary DH
> parameters (512/1024 bits)
>
> The for each virtual host (my.domain)
>
> [05/Nov/2003 12:29:16 17654] [trace] Init: (my.domain:1234) Creating new
> proxy SSL context (protocols: SSLv2, SSLv3)
> [05/Nov/2003 12:29:16 17654] [trace] Init: (my.domain:1234) Configuring
> permitted SSL ciphers for SSL
>
>
> "Dan Trainor" <da...@cavecreek.net> wrote in message
> news:1068034548.31076.38.camel@xserv.cavecreek.net...
> > It might also be worth your while to change LogLevel to debug from warn
> > and try to fire it up. What about the SSL logs, do they show anything?
> >
> > -dant
> >
> >
> > On Wed, 2003-11-05 at 05:14, Adam Griffiths wrote:
> > > One more point, it also fails with:
> > >
> > > $ httpd -X -D NONROOT
> > >
> > > i.e. without the "-D SSL", which enables SSL. This is important
because
> ,as
> > > a non-root user, httpd would not be able to bind to the SSL port 443
(in
> > > fact with "-D SSL" it gives a message to this effect in the error
log).
> > >
> > > Anyway, my problem remains, the httpd process just exits with no error
> > > message and nothing in the log.
> > >
> > >
> > > "Adam Griffiths" <ne...@adam-griffiths.co.uk> wrote in message
> > > news:boaorn$o9k$1@sea.gmane.org...
> > > > Here is a transcript running without the &:
> > > >
> > > > [...]$ httpd -X -D SSL -D NONROOT
> > > >
> > > > [...]$
> > > >
> > > > I hit enter and get no error message and there is no error message
in
> the
> > > > log either...
> > > >
> > > > -Adam
> > > >
> > > > "Dan Trainor" <da...@cavecreek.net> wrote in message
> > > > news:1068033221.31076.22.camel@xserv.cavecreek.net...
> > > > > Try running that command without the &, it should exit with some
> sort of
> > > > > error, or code.
> > > > >
> > > > > -dant
> > > > >
> > > > >
> > > > >
> > > > > On Wed, 2003-11-05 at 04:46, Adam Griffiths wrote:
> > > > > > Hi,
> > > > > > I have been running apache httpd for over three years on a
server
> > > > provided
> > > > > > to me by an ISP. The server automatically starts httpd from it's
> > > > /etc/rc.
> > > > > >
> > > > > > I have a login, but not root access, I can kill the httpd
process
> > > > (killall
> > > > > > httpd) and I would like to be able to start it again, without
> > > rebooting
> > > > my
> > > > > > server and having /etc/rc do the job. The reason for this is
that
> I
> > > need
> > > > to
> > > > > > do some debugging and I would like to be able to stop and start
> httpd
> > > at
> > > > > > will from my non-root login account. However try as I might I
> can't
> > > > start
> > > > > > http at non-root.
> > > > > >
> > > > > > I am logging in using ssh, with my non-root account and
attempting
> to
> > > > start
> > > > > > httpd, here is an example of what happens:
> > > > > >
> > > > > > [...]$ httpd -X -D SSL -D NONROOT &
> > > > > > [1] 3548
> > > > > > [...]$
> > > > > > [1]+ Exit 1 httpd -X -D SSL -D NONROOT
> > > > > > [...]$
> > > > > >
> > > > > > httpd exits! but no errors appear in the error log.
> > > > > >
> > > > > > I would be very grateful for any suggestions. My httpd.conf is
> below.
> > > > > >
> > > > > > Kind Regards
> > > > > >
> > > > > > Adam
> > > > > >
> > > > >
> > > > > <--------------------- BIG 'OLE SNIP ------------------>
> > > > >
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > 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
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> 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
[users@httpd] Re: Re: starting httpd as a non-root user
Posted by Adam Griffiths <ne...@adam-griffiths.co.uk>.
with:
SSLLogLevel debug
LogLevel debug
I get nothing in error_log, and the follwoing in ssl_engine_log:
[05/Nov/2003 12:29:16 17654] [info] Server: Apache/1.3.28, Interface:
mod_ssl/2.8.15, Library: OpenSSL/0.9.7a
[05/Nov/2003 12:29:16 17654] [info] Init: 1st startup round (still not
detached)
[05/Nov/2003 12:29:16 17654] [info] Init: Initializing OpenSSL library
[05/Nov/2003 12:29:16 17654] [info] Init: Seeding PRNG with 136 bytes of
entropy
[05/Nov/2003 12:29:16 17654] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[05/Nov/2003 12:29:16 17654] [info] Init: Configuring temporary DH
parameters (512/1024 bits)
The for each virtual host (my.domain)
[05/Nov/2003 12:29:16 17654] [trace] Init: (my.domain:1234) Creating new
proxy SSL context (protocols: SSLv2, SSLv3)
[05/Nov/2003 12:29:16 17654] [trace] Init: (my.domain:1234) Configuring
permitted SSL ciphers for SSL
"Dan Trainor" <da...@cavecreek.net> wrote in message
news:1068034548.31076.38.camel@xserv.cavecreek.net...
> It might also be worth your while to change LogLevel to debug from warn
> and try to fire it up. What about the SSL logs, do they show anything?
>
> -dant
>
>
> On Wed, 2003-11-05 at 05:14, Adam Griffiths wrote:
> > One more point, it also fails with:
> >
> > $ httpd -X -D NONROOT
> >
> > i.e. without the "-D SSL", which enables SSL. This is important because
,as
> > a non-root user, httpd would not be able to bind to the SSL port 443 (in
> > fact with "-D SSL" it gives a message to this effect in the error log).
> >
> > Anyway, my problem remains, the httpd process just exits with no error
> > message and nothing in the log.
> >
> >
> > "Adam Griffiths" <ne...@adam-griffiths.co.uk> wrote in message
> > news:boaorn$o9k$1@sea.gmane.org...
> > > Here is a transcript running without the &:
> > >
> > > [...]$ httpd -X -D SSL -D NONROOT
> > >
> > > [...]$
> > >
> > > I hit enter and get no error message and there is no error message in
the
> > > log either...
> > >
> > > -Adam
> > >
> > > "Dan Trainor" <da...@cavecreek.net> wrote in message
> > > news:1068033221.31076.22.camel@xserv.cavecreek.net...
> > > > Try running that command without the &, it should exit with some
sort of
> > > > error, or code.
> > > >
> > > > -dant
> > > >
> > > >
> > > >
> > > > On Wed, 2003-11-05 at 04:46, Adam Griffiths wrote:
> > > > > Hi,
> > > > > I have been running apache httpd for over three years on a server
> > > provided
> > > > > to me by an ISP. The server automatically starts httpd from it's
> > > /etc/rc.
> > > > >
> > > > > I have a login, but not root access, I can kill the httpd process
> > > (killall
> > > > > httpd) and I would like to be able to start it again, without
> > rebooting
> > > my
> > > > > server and having /etc/rc do the job. The reason for this is that
I
> > need
> > > to
> > > > > do some debugging and I would like to be able to stop and start
httpd
> > at
> > > > > will from my non-root login account. However try as I might I
can't
> > > start
> > > > > http at non-root.
> > > > >
> > > > > I am logging in using ssh, with my non-root account and attempting
to
> > > start
> > > > > httpd, here is an example of what happens:
> > > > >
> > > > > [...]$ httpd -X -D SSL -D NONROOT &
> > > > > [1] 3548
> > > > > [...]$
> > > > > [1]+ Exit 1 httpd -X -D SSL -D NONROOT
> > > > > [...]$
> > > > >
> > > > > httpd exits! but no errors appear in the error log.
> > > > >
> > > > > I would be very grateful for any suggestions. My httpd.conf is
below.
> > > > >
> > > > > Kind Regards
> > > > >
> > > > > Adam
> > > > >
> > > >
> > > > <--------------------- BIG 'OLE SNIP ------------------>
> > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > 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
> > >
> > >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
---------------------------------------------------------------------
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] Re: starting httpd as a non-root user
Posted by Dan Trainor <da...@cavecreek.net>.
It might also be worth your while to change LogLevel to debug from warn
and try to fire it up. What about the SSL logs, do they show anything?
-dant
On Wed, 2003-11-05 at 05:14, Adam Griffiths wrote:
> One more point, it also fails with:
>
> $ httpd -X -D NONROOT
>
> i.e. without the "-D SSL", which enables SSL. This is important because ,as
> a non-root user, httpd would not be able to bind to the SSL port 443 (in
> fact with "-D SSL" it gives a message to this effect in the error log).
>
> Anyway, my problem remains, the httpd process just exits with no error
> message and nothing in the log.
>
>
> "Adam Griffiths" <ne...@adam-griffiths.co.uk> wrote in message
> news:boaorn$o9k$1@sea.gmane.org...
> > Here is a transcript running without the &:
> >
> > [...]$ httpd -X -D SSL -D NONROOT
> >
> > [...]$
> >
> > I hit enter and get no error message and there is no error message in the
> > log either...
> >
> > -Adam
> >
> > "Dan Trainor" <da...@cavecreek.net> wrote in message
> > news:1068033221.31076.22.camel@xserv.cavecreek.net...
> > > Try running that command without the &, it should exit with some sort of
> > > error, or code.
> > >
> > > -dant
> > >
> > >
> > >
> > > On Wed, 2003-11-05 at 04:46, Adam Griffiths wrote:
> > > > Hi,
> > > > I have been running apache httpd for over three years on a server
> > provided
> > > > to me by an ISP. The server automatically starts httpd from it's
> > /etc/rc.
> > > >
> > > > I have a login, but not root access, I can kill the httpd process
> > (killall
> > > > httpd) and I would like to be able to start it again, without
> rebooting
> > my
> > > > server and having /etc/rc do the job. The reason for this is that I
> need
> > to
> > > > do some debugging and I would like to be able to stop and start httpd
> at
> > > > will from my non-root login account. However try as I might I can't
> > start
> > > > http at non-root.
> > > >
> > > > I am logging in using ssh, with my non-root account and attempting to
> > start
> > > > httpd, here is an example of what happens:
> > > >
> > > > [...]$ httpd -X -D SSL -D NONROOT &
> > > > [1] 3548
> > > > [...]$
> > > > [1]+ Exit 1 httpd -X -D SSL -D NONROOT
> > > > [...]$
> > > >
> > > > httpd exits! but no errors appear in the error log.
> > > >
> > > > I would be very grateful for any suggestions. My httpd.conf is below.
> > > >
> > > > Kind Regards
> > > >
> > > > Adam
> > > >
> > >
> > > <--------------------- BIG 'OLE SNIP ------------------>
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> 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
[users@httpd] Re: starting httpd as a non-root user
Posted by Adam Griffiths <ne...@adam-griffiths.co.uk>.
One more point, it also fails with:
$ httpd -X -D NONROOT
i.e. without the "-D SSL", which enables SSL. This is important because ,as
a non-root user, httpd would not be able to bind to the SSL port 443 (in
fact with "-D SSL" it gives a message to this effect in the error log).
Anyway, my problem remains, the httpd process just exits with no error
message and nothing in the log.
"Adam Griffiths" <ne...@adam-griffiths.co.uk> wrote in message
news:boaorn$o9k$1@sea.gmane.org...
> Here is a transcript running without the &:
>
> [...]$ httpd -X -D SSL -D NONROOT
>
> [...]$
>
> I hit enter and get no error message and there is no error message in the
> log either...
>
> -Adam
>
> "Dan Trainor" <da...@cavecreek.net> wrote in message
> news:1068033221.31076.22.camel@xserv.cavecreek.net...
> > Try running that command without the &, it should exit with some sort of
> > error, or code.
> >
> > -dant
> >
> >
> >
> > On Wed, 2003-11-05 at 04:46, Adam Griffiths wrote:
> > > Hi,
> > > I have been running apache httpd for over three years on a server
> provided
> > > to me by an ISP. The server automatically starts httpd from it's
> /etc/rc.
> > >
> > > I have a login, but not root access, I can kill the httpd process
> (killall
> > > httpd) and I would like to be able to start it again, without
rebooting
> my
> > > server and having /etc/rc do the job. The reason for this is that I
need
> to
> > > do some debugging and I would like to be able to stop and start httpd
at
> > > will from my non-root login account. However try as I might I can't
> start
> > > http at non-root.
> > >
> > > I am logging in using ssh, with my non-root account and attempting to
> start
> > > httpd, here is an example of what happens:
> > >
> > > [...]$ httpd -X -D SSL -D NONROOT &
> > > [1] 3548
> > > [...]$
> > > [1]+ Exit 1 httpd -X -D SSL -D NONROOT
> > > [...]$
> > >
> > > httpd exits! but no errors appear in the error log.
> > >
> > > I would be very grateful for any suggestions. My httpd.conf is below.
> > >
> > > Kind Regards
> > >
> > > Adam
> > >
> >
> > <--------------------- BIG 'OLE SNIP ------------------>
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
---------------------------------------------------------------------
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] Re: starting httpd as a non-root user
Posted by Dan Trainor <da...@cavecreek.net>.
What if you were to run apachectl configcheck, does that come back with
any errors, or does it report 'Syntax OK'?
-dant
On Wed, 2003-11-05 at 05:02, Adam Griffiths wrote:
> Here is a transcript running without the &:
>
> [...]$ httpd -X -D SSL -D NONROOT
>
> [...]$
>
> I hit enter and get no error message and there is no error message in the
> log either...
>
> -Adam
>
> "Dan Trainor" <da...@cavecreek.net> wrote in message
> news:1068033221.31076.22.camel@xserv.cavecreek.net...
> > Try running that command without the &, it should exit with some sort of
> > error, or code.
> >
> > -dant
> >
> >
> >
> > On Wed, 2003-11-05 at 04:46, Adam Griffiths wrote:
> > > Hi,
> > > I have been running apache httpd for over three years on a server
> provided
> > > to me by an ISP. The server automatically starts httpd from it's
> /etc/rc.
> > >
> > > I have a login, but not root access, I can kill the httpd process
> (killall
> > > httpd) and I would like to be able to start it again, without rebooting
> my
> > > server and having /etc/rc do the job. The reason for this is that I need
> to
> > > do some debugging and I would like to be able to stop and start httpd at
> > > will from my non-root login account. However try as I might I can't
> start
> > > http at non-root.
> > >
> > > I am logging in using ssh, with my non-root account and attempting to
> start
> > > httpd, here is an example of what happens:
> > >
> > > [...]$ httpd -X -D SSL -D NONROOT &
> > > [1] 3548
> > > [...]$
> > > [1]+ Exit 1 httpd -X -D SSL -D NONROOT
> > > [...]$
> > >
> > > httpd exits! but no errors appear in the error log.
> > >
> > > I would be very grateful for any suggestions. My httpd.conf is below.
> > >
> > > Kind Regards
> > >
> > > Adam
> > >
> >
> > <--------------------- BIG 'OLE SNIP ------------------>
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
---------------------------------------------------------------------
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