ISPConfig and OpenVZ

Discussion in 'Installation/Configuration' started by Elfchen, Oct 20, 2008.

  1. Elfchen

    Elfchen New Member

    I have already installed ISPConfig on 7 debian and SuSE servers without any problems.

    Now I have tried on OpenVZ debian.

    All works will till shortly before the end:
    Code:
    ./setup2: line 1090: mysql_config: No such file or directory
    ./setup2: line 1091: httpd: No such file or directory
    ./setup2: line 1092: httpd2: No such file or directory
    ./setup2: line 1093: httpd2: No such file or directory
    ./setup2: line 1100: ip_addresses: No such file or directory
    ./setup2: line 1105: /root/ispconfig/php/php: No such file or directory
    ./setup2: line 1106: /root/ispconfig/dist.info: No such file or directory
    chmod: cannot access `/home/admispconfig/ispconfig/tools/suphp/usr/bin/php-wrapper': No such file or directory
    ./setup2: line 1119: /home/admispconfig/ispconfig/sysconf.txt: No such file or directory
    ./setup2: line 1120: /home/admispconfig/ispconfig/sysconf.txt: No such file or directory
    Neustart einiger Dienste...
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    apache2: Could not reliably determine the server's fully qualified domain name, using 88.198.230.220 for ServerName
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    Stopping Postfix Mail Transport Agent: postfix.
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    Starting Postfix Mail Transport Agent: postfixchdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    .
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    Stopping ftp server: proftpd.
    Starting ftp server: proftpd - IPv6 getaddrinfo 'ix-kpn' error: Name or service not known
    .
    ./setup2: line 1163: /etc/init.d/ispconfig_server: No such file or directory
    Herzlichen Glueckwunsch! Ihr ISPConfig-System ist jetzt installiert. Falls Sie Quota nachinstalliert haben, fuehren Sie noch die in der Installationsanleitung beschriebenen Schritte durch. Ansonsten ist Ihr System jetzt ohne Reboot einsatzbereit.
    Bitte gehen Sie mit Ihrem Browser auf
    
    https://meinhost.meinedomain.de:81
    
    und loggen sich ein:
    Benutzername: admin
    Passwort: admin
    
    ./setup2: line 1189: cd: /home/rob/install_ispconfig/compile_aps/../..: No such file or directory
    So apache is not working - no panel - why I cant install on OpenVZ?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    There must be errors above the lines that you posted. Please post the first error.
     
  3. guardian

    guardian Member

    Try to disable second level quota and install again
    QUOTAUGIDLIMIT
     
  4. Elfchen

    Elfchen New Member

    and how to do that, please?

    A bit confused - HowTo tells me I should install quota. Really quota or vzquota?

    Then I should edit /etc/fstab - but on a new VZ this file shows:

    # UNCONFIGURED FSTAB FOR BASE SYSTEM

    There is nothing to edit there.

    df shows:

    Filesystem 1K-blocks Used Available Use% Mounted on
    simfs 12582912 315464 12267448 3% /
    tmpfs 128376 0 128376 0% /lib/init/rw
    tmpfs 128376 0 128376 0% /dev/shm

    So should I go on with quota or vzquota with or without editing this file and if I need to edit - what must be inside the file?

    Thank you for your very fast response.
     
    Last edited: Oct 21, 2008
  5. guardian

    guardian Member

    If you don't know I assume that second level quota is not enabled in the first place. So maybe the problem is with the resources for the VM. Please post your openvz conf file for the vm in which you are installing ispconfig.
     
  6. Elfchen

    Elfchen New Member

    Thanks. I am using the standard OpenVZ settings without any modification:

    Code:
    #  Copyright (C) 2000-2007 SWsoft. All rights reserved.
    #
    #  This program is free software; you can redistribute it and/or modify
    #  it under the terms of the GNU General Public License as published by
    #  the Free Software Foundation; either version 2 of the License, or
    #  (at your option) any later version.
    #
    #  This program is distributed in the hope that it will be useful,
    #  but WITHOUT ANY WARRANTY; without even the implied warranty of
    #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    #  GNU General Public License for more details.
    #
    #  You should have received a copy of the GNU General Public License
    #  along with this program; if not, write to the Free Software
    #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    #
    
    ONBOOT="yes"
    
    # UBC parameters (in form of barrier:limit)
    KMEMSIZE="367001600:419430400"
    LOCKEDPAGES="256:256"
    PRIVVMPAGES="65536:69632"
    SHMPAGES="21504:21504"
    NUMPROC="240:240"
    PHYSPAGES="0:2147483647"
    VMGUARPAGES="33792:2147483647"
    OOMGUARPAGES="26112:2147483647"
    NUMTCPSOCK="360:360"
    NUMFLOCK="188:206"
    NUMPTY="16:16"
    NUMSIGINFO="256:256"
    TCPSNDBUF="1720320:2703360"
    TCPRCVBUF="1720320:2703360"
    OTHERSOCKBUF="1126080:2097152"
    DGRAMRCVBUF="262144:262144"
    NUMOTHERSOCK="360:360"
    DCACHESIZE="3409920:3624960"
    NUMFILE="9312:9312"
    AVNUMPROC="180:180"
    NUMIPTENT="128:128"
    
    # Disk quota parameters (in form of softlimit:hardlimit)
    DISKSPACE="12582912:15728640"
    DISKINODES="200000:220000"
    QUOTATIME="0"
    
    # CPU fair sheduler parameter
    CPUUNITS="1000"
    
    
    VE_ROOT="/var/lib/vz/root/$VEID"
    VE_PRIVATE="/var/lib/vz/private/$VEID"
    OSTEMPLATE="debian-4.0-i386-minimal"
    ORIGIN_SAMPLE="vps.basic"
    HOSTNAME="ichbineinserver.einedomain.com"
    IP_ADDRESS="123.123.123.123"
    NAMESERVER="123.123.123.2 123.123.123.3 123.123.123.4"
    Already made apt-get update, apt-get upgrade in container and updated to latest debian releases. What to do with the qouta-section in the perfect setup howto, when I miss the entries inside OpenVZ?

    Susi

    @till

    found during step 6 on howto (php installation):

    and I needed to skip the quoata step, cause I don´t have requested files or entries.
     
    Last edited: Oct 21, 2008
  7. Elfchen

    Elfchen New Member

    @till

    Installation errors:

    Code:
    virtual memory exhausted: Cannot allocate memory
    make: *** [ext/date/lib/parse_date.lo] Fehler 1
    ERROR: Could not make PHP
    cd: error retrieving current directory: getcwd: cannot access parent directories: Datei oder Verzeichnis nicht gefunden
    mv: Aufruf von stat für âbinaries/aps.tar.gzâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    mv: Aufruf von stat für âbinaries/spamassassin.tar.gzâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    mv: Aufruf von stat für âbinaries/uudeview.tar.gzâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    mv: Aufruf von stat für âbinaries/clamav.tar.gzâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    mv: Aufruf von stat für âbinaries/cronologâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    mv: Aufruf von stat für âbinaries/cronosplitâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    mv: Aufruf von stat für âbinaries/ispconfig_tcpserverâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    mv: Aufruf von stat für âbinaries/zipâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    mv: Aufruf von stat für âbinaries/unzipâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    tar: spamassassin.tar.gz: Kann open nicht ausführen: Datei oder Verzeichnis nicht gefunden
    tar: Nicht behebbarer Fehler: Programmabbruch.
    tar: Child returned status 2
    tar: Fehler beim Beenden, verursacht durch vorhergehende Fehler.
    mv: Aufruf von stat für âspamassassinâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    tar: uudeview.tar.gz: Kann open nicht ausführen: Datei oder Verzeichnis nicht gefunden
    tar: Nicht behebbarer Fehler: Programmabbruch.
    tar: Child returned status 2
    tar: Fehler beim Beenden, verursacht durch vorhergehende Fehler.
    mv: Aufruf von stat für âuudeviewâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    tar: clamav.tar.gz: Kann open nicht ausführen: Datei oder Verzeichnis nicht gefunden
    tar: Nicht behebbarer Fehler: Programmabbruch.
    tar: Child returned status 2
    tar: Fehler beim Beenden, verursacht durch vorhergehende Fehler.
    mv: Aufruf von stat für âclamavâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    tar: aps.tar.gz: Kann open nicht ausführen: Datei oder Verzeichnis nicht gefunden
    tar: Nicht behebbarer Fehler: Programmabbruch.
    tar: Child returned status 2
    tar: Fehler beim Beenden, verursacht durch vorhergehende Fehler.
    mv: Aufruf von stat für âispconfig_tmpâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    cp: Aufruf von stat für âdist.infoâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    Alle Voraussetzungen erfuellt.
    Here we go...
    chmod: Zugriff auf â./install.phpâ nicht möglich: Datei oder Verzeichnis nicht gefunden
    Wie heisst der MySQL-Server?
    ...

    Already tried to add another 100 MB of RAM - same result.

    What happens here?

    Is maybe ISPConfig incompatible with OpenVZ?
     
    Last edited: Oct 21, 2008
  8. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    cat /proc/user_beancounters
    in the vm?
     
  9. Elfchen

    Elfchen New Member

    Hi Falko.

    Here is the VM output (I try to install on VM because my ISPConfig get always hacked by an unsecure PHP script and hacker is possible to open an SSH via PHP. I need to find out what he did - this is why I use now VM instead of pure debian):

     
  10. falko

    falko Super Moderator Howtoforge Staff

    Try to increase the value of PRIVVMPAGES in the vm configuration.
     
  11. Elfchen

    Elfchen New Member

    which value would you suggest, cause the engine has only 512 MB RAM?
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Double the values in
    Code:
    PRIVVMPAGES="65536:69632"
    and try again.
     
  13. Elfchen

    Elfchen New Member

    Now installation was successful.

    The only error I saw during installation was:

    Code:
    /bin/sh /home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/mbstring/ -I/home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/mbstring/ -DPHP_ATOM_INC -I/home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/include -I/home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/main -I/home/ichderserver/install_ispconfig/compile_aps/php-5.2.6 -I/root/ispconfig/openssl/include -I/home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/date/lib -I/home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/mbstring/oniguruma -I/home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/mbstring/libmbfl -I/home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/mbstring/libmbfl/mbfl -I/root/ispconfig/libmcrypt/include -I/usr/include/mysql -I/home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/TSRM -I/home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/Zend    -I/usr/include -g -O2  -prefer-non-pic -c /home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/mbstring/mbstring.c -o ext/mbstring/mbstring.lo
    /home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/mbstring/mbstring.c:152: warning: initialization discards qualifiers from pointer target type
    /home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/mbstring/mbstring.c:153: warning: initialization discards qualifiers from pointer target type
    /home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/mbstring/mbstring.c:154: warning: initialization discards qualifiers from pointer target type
    /home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/mbstring/mbstring.c:155: warning: initialization discards qualifiers from pointer target type
    /home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/mbstring/mbstring.c:156: warning: initialization discards qualifiers from pointer target type
    /home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/mbstring/mbstring.c:157: warning: initialization discards qualifiers from pointer target type
    /home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/mbstring/mbstring.c:158: warning: initialization discards qualifiers from pointer target type
    /home/ichderserver/install_ispconfig/compile_aps/php-5.2.6/ext/mbstring/mbstring.c:159: warning: initialization discards qualifiers from pointer target type
    
    Do I need to reinstall or can this error be ignored?

    Thanks for your assistance.
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats just a wrning and not a error and can be ignored.
     
  15. Elfchen

    Elfchen New Member

    Now my next problem is, that I cant reach adminpanel on https://<ip>:81 from outside.

    When I try it with lynx at localhost it works ...

    How to solve that?

    Thanks.
    Susi
     
    Last edited: Oct 29, 2008
  16. guardian

    guardian Member

    Is there any firewall between ispconfig server and internet?
    Are you using a public IP address on ispconfig server?
     
  17. Elfchen

    Elfchen New Member

    No. No firewall and public IP.

    When I call the ip without port 81 I get the standard apache site:

     
    Last edited: Oct 29, 2008
  18. Elfchen

    Elfchen New Member

    tried to reinstall and got following errors:

    Now I have reinstalled whole VZ-engine.

    Same result - installation without error, but on https://<ip>:81 I get nothing (site not accessable).

    When I try lynx localhost:81 I get apache standard-page "It works!".

    What to do now? (can it result on the fact that VZ uses venet0:0 instead of eth0 ? Maybe its blocked by ISPconfig itself anywhere ...

    ... now ispconfig seems up and running, but I can not execute panel on port 81.

    When I call localhost:81 I see apache standard page "It works!" When I try external IP and port 81 site is not accessable. So I installed webmin to see if maybe ports are blocked, but webmin works well - so what to do now? Why adminpanel is not shown on 81? Why only "It works!" standard page is shown - as I remember there should be shown a page with "shared IP info".

    Hope anybody can help.
     
    Last edited: Oct 30, 2008
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Post the output of:

    netstat -tap

    and:

    iptables -L

    2) Which internet browser did you use to connect to the ispconfig control panel?
     
  20. Elfchen

    Elfchen New Member



    Opera:


    IE without HTTPS - only http:

    automatically forwarded to:

    IE:

    Mozilla same result.





     
    Last edited: Oct 30, 2008

Share This Page