httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Mayer <mymailli...@gmx.at>
Subject Re: [users@httpd] apache2 chrooted on Solaris
Date Wed, 16 Feb 2005 11:09:54 GMT
Thanks for the info.  I got further but don't find a solution to the next two 
problems I've come across.  

The first one is when apache2 is started in the chroot as normal.  It fails 
during the initialisation and preconfiguration stage when it's starting up.  
I tried looking at what was happening using gdb and for what ever reason a 
pile of libraries seem to not be found, although they are there.  

I tried later to use the -X argument for the httpd and it ran happily.  I 
could make requests, and PHP4 seemed to work relatively well, but that's 
where I came across my second problem.

For what ever reason, through PHP in the chrooted environment I'm not able to 
open the socket to the MySQL server that's running on the same machine in a 
normal environment.  I don't know what the solution to this is.

So far I've not been able to find anything in google that would indicate what 
my problem is, so hopefully someone here can point me in the right direction.  
Logs and output from gdb are included below.

regards
Markus

Apache error log:
[Wed Feb 16 10:36:02 2005] [info] Init: Initializing OpenSSL library
[Wed Feb 16 10:36:02 2005] [info] Init: Seeding PRNG with 136 bytes of entropy
[Wed Feb 16 10:36:02 2005] [info] Init: Generating temporary RSA private keys 
(512/1024 bits)
[Wed Feb 16 10:36:02 2005] [info] Init: Generating temporary DH parameters 
(512/1024 bits)
[Wed Feb 16 10:36:02 2005] [warn] Init: Session Cache is not configured [hint: 
SSLSessionCache]
[Wed Feb 16 10:36:02 2005] [info] Init: Initializing (virtual) servers for SSL
[Wed Feb 16 10:36:02 2005] [info] Server: Apache/2.0.53, Interface: 
mod_ssl/2.0.53, Library: OpenSSL/0.9.7e
[Wed Feb 16 10:36:02 2005] [crit] (2)No such file or directory: 
apr_proc_detach failed
Pre-configuration failed


gdb started with gdb /usr/sbin/chroot
(gdb) set follow-fork-mode child
(gdb) set args /chrootjail /usr/local/apache2/bin/httpd
(gdb) run
Starting program: /usr/sbin/chroot /chrootjail /usr/local/apache2/bin/httpd
(no debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...
Program received signal SIGTRAP, Trace/breakpoint trap.
0xff3c2b70 in ?? ()
(gdb) bt
#0  0xff3c2b70 in ?? ()
(gdb) continue
Continuing.
Error while mapping shared library sections:
/usr/local/apache2.0.53/lib/libaprutil-0.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/local/apache2.0.53/lib/libexpat.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/local/apache2.0.53/lib/libapr-0.so.0: No such file or directory.
(no debugging symbols found)...(no debugging symbols found)...Error while 
reading shared library symbols:
/usr/local/apache2.0.53/lib/libaprutil-0.so.0: No such file or directory.
(no debugging symbols found)...(no debugging symbols found)...Error while 
reading shared library symbols:
/usr/local/apache2.0.53/lib/libexpat.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libapr-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libaprutil-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libexpat.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libapr-0.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/local/apache2/modules/libphp4.so: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libaprutil-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libexpat.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libapr-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2/modules/libphp4.so: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libaprutil-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libexpat.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libapr-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2/modules/libphp4.so: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libaprutil-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libexpat.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libapr-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2/modules/libphp4.so: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libaprutil-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libexpat.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libapr-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2/modules/libphp4.so: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libaprutil-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libexpat.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libapr-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libaprutil-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libexpat.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libapr-0.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/local/apache2/modules/libphp4.so: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libaprutil-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libexpat.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2.0.53/lib/libapr-0.so.0: No such file or directory.
Error while reading shared library symbols:
/usr/local/apache2/modules/libphp4.so: No such file or directory.


Browser output when trying to connect to the MySQL database:
Warning: mysql_pconnect(): Can't connect to local MySQL server through socket 
'/tmp/mysql.sock' (2)

On Tuesday 15 February 2005 17:36, Joe Orton wrote:
> On Tue, Feb 15, 2005 at 04:59:11PM +0100, Markus Mayer wrote:
> > I'm having some problems getting Apache 2.0.53 to run chrooted on Solaris
> > 9 sparc architecture.  The error is as follows:
> >
> > chroot /chrootjail/ /usr/local/apache2/bin/httpd
> > [Tue Feb 15 15:55:55 2005] [crit] (EAI 4)DNS non-recoverable failure:
> > alloc_listener: failed to set up sockaddr for ::
> > Syntax error on line 219 of /usr/local/apache2.0.53/conf/httpd.conf:
> > Listen setup failed
>
> Ensure you have /etc/resolv.conf and /etc/nsswitch.conf (and anything
> else needed by the Solaris resolver) copied into the chroot.
>
> joe

---------------------------------------------------------------------
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


Mime
View raw message