Probleme mit Apache2 in Jail [5.3-BETA7]

From: Jonathan Weiss <tomonage2(at)gmx.de>
Date: Mon, 11 Oct 2004 12:20:08 +0200

Cheers,

Ich habe hier Probleme mit Apache2, der will einfach nicht in einer Jail
starten. Ich habe einen Beta-7 Server und mehrere Jails, die jeweills die
Ips 127.0.0.2 bis 127.0.0.5 haben.

SSHD, mysqld und syslogd starten problemlos in der Jail, lediglich apache
meldet sich immer mit Exit1 ab. Auch wenn der Apache auf dem HostSystem
abgeschaltet ist, startet der Jail-Apache nicht (und er ist auch so
eingestellt, dass er nur auf der externen IP horcht).

JAIL:
----------------------------------------------------------------
apachectl -k start -e debug
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
access_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module auth_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
auth_anon_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
auth_dbm_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
charset_lite_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
include_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
deflate_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
log_config_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module logio_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module env_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
mime_magic_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
cern_meta_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
expires_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
headers_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
usertrack_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
unique_id_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
setenvif_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module mime_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
status_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
autoindex_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module asis_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module info_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module cgi_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
vhost_alias_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
negotiation_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module dir_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module imap_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
actions_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
speling_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
userdir_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module alias_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module
rewrite_module
[Mon Oct 11 10:11:25 2004] [debug] mod_so.c(247): loaded module php4_module
Exit 1

rc.conf:
hostname="subversion"
syslogd_flags="-ss"
inetd_enable="NO"
keymap="german.iso"
sshd_enable="YES"
usbd_enable="YES"
sendmail_enable="NO"
apache2_enable="YES"

 diff -u /usr/local/etc/apache2/httpd.conf
/usr/local/etc/apache2/httpd-std.conf

--- /usr/local/etc/apache2/httpd.conf Wed Oct 6 11:09:52 2004
+++ /usr/local/etc/apache2/httpd-std.conf Sun Oct 10 16:30:09 2004
@@ -216,7 +216,7 @@
 #
 #Listen 12.34.56.78:80
 
-Listen 127.0.0.3:80
+Listen 80
 
 #
 # Dynamic Shared Object (DSO) Support
@@ -271,7 +271,6 @@
 LoadModule userdir_module libexec/apache2/mod_userdir.so
 LoadModule alias_module libexec/apache2/mod_alias.so
 LoadModule rewrite_module libexec/apache2/mod_rewrite.so
-LoadModule php4_module libexec/apache2/libphp4.so
 
 #
 # ExtendedStatus controls whether Apache will generate "full" status
@@ -331,7 +330,6 @@
 # redirections work in a sensible way.
 #
 #ServerName www.example.com:80
-ServerName subversion:2080
 
 #
 # UseCanonicalName: Determines how Apache constructs self-referencing
@@ -945,8 +943,7 @@
 # Format: Action media/type /cgi-script/location
 # Format: Action handler-name /cgi-script/location
 #
-AddType application/x-httpd-php .php
-AddType application/x-httpd-php-source .phps
+
 #
 # Customizable error responses come in three flavors:
 # 1) plain text 2) local redirects 3) external redirects

----------------------------------------------------------------
HOST:

rc.conf
#starten der jail subversion `
jail_subversion_rootdir="/usr/jails/127.0.0.3/"
jail_subversion_hostname="subversion"
jail_subversion_ip="127.0.0.3"
jail_subversion_exec="/bin/sh /etc/rc"
jail_subversion_devfs_enable="YES"

---------------------------------------------------------------

Langsam bin ich ratlos....

Gruß,
Jonathan

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 11 Oct 2004 - 12:20:43 CEST

search this site