Problems with Apache2 in Jail (BETA6)

From: Jonathan Weiss (tomonage2_at_gmx.de)
Date: 09/29/04

  • Next message: M. Warner Losh: "Re: Laptop recommendations?"
    Date: Wed, 29 Sep 2004 08:23:22 +0200
    To: FreeBSD-Current <current@freebsd.org>
    
    

    Cheers,

    I have a problem starting apache2 in a jail on my 5.3-BETA6 server.

    The jail has the IP 127.0.0.4 and everything seems running fine (ssh,
    syslog..). I can connect per ssh to the jail, but I cannot start apache:

    The Apache on the host is configured only to bind to the extern ip-adress
    and even if I stop it, the jailed apache wont start:

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

    In rc.conf I have the apache2_enable="YES".

    What have I forgotten or is it a general problem with BETA6?

    I uesd to have multiple jails with the same config back in 5.2.1

    Thanks,
    Jonathan

    ---------------------------------------
    diff -u /usr/local/etc/apache2/httpd.conf
    /usr/local/etc/apache2/httpd-std.conf
    --- /usr/local/etc/apache2/httpd.conf Wed Sep 29 06:12:13 2004
    +++ /usr/local/etc/apache2/httpd-std.conf Thu Sep 23 18:53:36 2004
    @@ -216,7 +216,7 @@
     #
     #Listen 12.34.56.78:80
     
    -Listen 127.0.0.4: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 127.0.0.4:80
     
     #
     # 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

    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: M. Warner Losh: "Re: Laptop recommendations?"

    Relevant Pages

    • Re: Http Accept filters (accf_http)
      ... |> I think adding them to the apache is OK, ... |> gracefully if they are not present in the kernel. ... | filters turned on in a jail environment... ... A jailed apache can't load the module, so to enable the feature you ...
      (freebsd-current)
    • apache in "strange" jail getting permissions errors
      ... I create a master jail that I do not "boot". ... What I want to do is use my Solaris 10 server with 1.7TB ZFS file system exported through NFS as the root for each jail, with the same nullfs mounts as used above in the mdversion. ... So what I did is set up a local directory on the FBSD system with the normal / directories as I do above in the mdway of doing things and left a local directory for the apache stuff. ... The exact same apache config file when using the mdbacked space with all the same files and permissions, ...
      (freebsd-questions)
    • Problem with mail() function and exec
      ... I hava an apache 1.3.28 + php 4.3.3 installation into ... Into the jail I have installed postfix (with ... If I run apache from outside the jail, the scripts runs perfectly and send the ...
      (php.general)
    • Re: Jails and FreeBSD4.3
      ... > I recently installed FreeBSD 4.3, ... and proftpd hosting several anonymous ftp sites. ... > need to get the jail to bind to many IPs, ... You can solve at least apache with IPF and IPFW. ...
      (FreeBSD-Security)
    • Re: jails or chroot?
      ... putting each of my clients into their own jail or chroot. ... apache and their "mass virtual hosting", ... File access can be solved with suexec (compile apache with suexec ...
      (freebsd-questions)