OpenVZ container update problems

Discussion in 'Installation/Configuration' started by DKLeader, Sep 19, 2012.

  1. DKLeader

    DKLeader New Member

    Hi,

    I have installed OpenVZ (Linux vm1 2.6.32-5-openvz-amd64) on a Dell SC1435 with 2 GB Ram. This server is part of my multiserver system.

    All seems to be OK and I can create containers from ISPConfig with "debian-6.0-amd64-minimal"

    My problem is that when I try to setup the containers following this guide : "http://www.howtoforge.com/virtual-multiserver-environment-with-dedicated-web-mysql-email-dns-servers-on-debian-squeeze-with-ispconfig-3" and when I get at this point
    Code:
    a2enmod suexec rewrite ssl actions include ruby dav_fs dav auth_digest headers expires
    I get
    I then tried to do an
    Code:
    apt-get upgrade
    and got this
    .
    If I do a
    Code:
    cat /proc/user_beancounters
    I get
    Anyone that have an idea what I have done wrong or missed?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /etc/apache2/
    ?

    This is what should be in /etc/apache2/envvars:

    Code:
    # envvars - default environment variables for apache2ctl
    
    # this won't be correct after changing uid
    unset HOME
    
    # for supporting multiple apache2 instances
    if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
            SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
    else
            SUFFIX=
    fi
    
    # Since there is no sane way to get the parsed apache2 config in scripts, some
    # settings are defined via environment variables and then used in apache2ctl,
    # /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
    export APACHE_RUN_USER=www-data
    export APACHE_RUN_GROUP=www-data
    export APACHE_PID_FILE=/var/run/apache2$SUFFIX.pid
    export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
    export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
    # Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
    export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
    
    ## The locale used by some modules like mod_dav
    export LANG=C
    ## Uncomment the following line to use the system default locale instead:
    #. /etc/default/locale
    
    export LANG
    
    ## The command to get the status for 'apache2ctl status'.
    ## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
    #export APACHE_LYNX='www-browser -dump'
    
    ## If you need a higher file descriptor limit, uncomment and adjust the
    ## following line (default is 8192):
    #APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'
     
  3. DKLeader

    DKLeader New Member

    On the command
    Code:
    ls -la /etc/apache2/
    I get :
    Code:
    drwxr-xr-x  7 root root  4096 Sep 18 20:12 .
    drwxr-xr-x 66 root root  4096 Sep 20 16:17 ..
    -rw-r--r--  1 root root  7994 Apr  1 07:13 apache2.conf
    drwxr-xr-x  2 root root  4096 Sep 18 20:13 conf.d
    -rw-r--r--  1 root root  1169 Apr  1 07:13 envvars
    -rw-r--r--  1 root root     0 Sep 18 20:12 httpd.conf
    -rw-r--r--  1 root root 31063 Apr  1 07:13 magic
    drwxr-xr-x  2 root root  4096 Sep 18 20:13 mods-available
    drwxr-xr-x  2 root root  4096 Sep 18 20:13 mods-enabled
    -rw-r--r--  1 root root   750 Apr  1 07:13 ports.conf
    drwxr-xr-x  2 root root  4096 Sep 18 20:12 sites-available
    drwxr-xr-x  2 root root  4096 Sep 18 20:12 sites-enabled
    
    My envvars looks like this :
    Code:
    # envvars - default environment variables for apache2ctl
    
    # this won't be correct after changing uid
    unset HOME
    
    # for supporting multiple apache2 instances
    if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
            SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
    else
            SUFFIX=
    fi
    
    # Since there is no sane way to get the parsed apache2 config in scripts, some
    # settings are defined via environment variables and then used in apache2ctl,
    # /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
    export APACHE_RUN_USER=www-data
    export APACHE_RUN_GROUP=www-data
    export APACHE_PID_FILE=/var/run/apache2$SUFFIX.pid
    export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
    export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
    # Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
    export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
    
    ## The locale used by some modules like mod_dav
    export LANG=C
    ## Uncomment the following line to use the system default locale instead:
    #. /etc/default/locale
    
    export LANG
    
    ## The command to get the status for 'apache2ctl status'.
    ## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
    #export APACHE_LYNX='www-browser -dump'
    
    So I haven't changed anything to that file. And chmod set to 644 should be ok ?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    That's strange... :confused:
     

Share This Page