On Tue, Mar 06, 2001 at 04:08:28PM +0100, Torben Nehmer wrote:
> Hi.
> 
> --On Dienstag, 6. März 2001 17:04 +0200 Alexander Bokovoy
> <[EMAIL PROTECTED]> wrote:
> >> I've made some more experiments, and my problem is really funny. I
> >> start apache (apachectl or httpd directly) and apache terminates
> >> immediately after the start. A log message from mod_unique_id is the
> >> one and only thing that appears. Apache exits normally (exit code
> >> 0)!!! >>
> >> If I disable the php module, apache starts up normally. > Where is php.ini 
>situated? It should be inside chrooted environment as
> > well.
> I've relocated it into apaches conf-directory with the
> --with-config-file-path directive. Though the file doesn't exist yet.
Try to put it there (even with default values).

>  >> Mysql is located outside the chroot environment and I access it via
> >> tcp/ip. I'm using 127.0.0.1 for the mysql host. This is compiled
> >> statically into midgard-lib (default.h)
> > Change it to IP addres _different_ from localhost's address. MySQL
> > has hardcoded behaviour for localhost: it opens only sockets with it
> > (if they are available on running system).
> I thought it only uses the file socket if you give the string
> "localhost". I'll try the real IP of the host. Maybe it helps. 
In fact, it does call gethostbyname(3).

> What puzzles me is the fact that I don't get any error message. Apache
> just quits. Not even some kind of "caught SIGTERM" log message, which
> apachectl stop normally produces.
I've experienced a lot things like this one with Apache. Try to run
'gdb httpd' as chroot process. Or even 'strace httpd'.
-- 
Sincerely yours, Alexander Bokovoy 
  The Midgard Project   | www.midgard-project.org |    Aurora R&D team 
Minsk Linux Users Group |    www.minsk-lug.net    |  www.aurora-linux.com  
    ALT Linux Team      |    www.alt-linux.org    | Architecte Open Source
-- Dijkstra probably hates me
(Linus Torvalds, in kernel/sched.c)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to