Debian 10.2

Discussion in 'Installation/Configuration' started by s2angel, Jan 6, 2020.

  1. s2angel

    s2angel New Member

    i took some time to try attempt to install ispconfig on my VPS runing openstack using latest Nov 2019 image debian-10.2.0-openstack-amd6 (Nov 16th 2019)
    I am going to do a fresh install as my debian 7 is too much to update now (No longer supported) I was hoping to use 10 so I get more life. Using the latest recommeneded install
    https://www.howtoforge.com/perfect-server-debian-10-buster-apache-bind-dovecot-ispconfig-3-1/
    Current version: 3.1.15p2 was on the website so I ran through all the settings
    Although I did not comment out the line
    /etc/mysql/mariadb.conf.d/50-server.cnf
    #bind-address = 127.0.0.1
    Some how that felt wrong but I have it uncommented now after my install failed. I mention this incase its the cause of my issues
    Note the [INFO] service not detected
    and [ERROR] s
    Code:
    cd /tmp
    wget  https://ispconfig.org/downloads/ISPConfig-3.1.15p2.tar.gz
    tar xfz ISPConfig-3.1.15p2.tar.gz
    
    cd ispconfig3_install/install/
    php -q install.php
    
    --------------------------------------------------------------------------------
     _____ ___________   _____              __ _         ____
    |_   _/  ___| ___ \ /  __ \            / _(_)       /__  \
      | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _    _/ /
      | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |  |_ |
     _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| | ___\ \
     \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, | \____/
                                                  __/ |
                                                 |___/
    --------------------------------------------------------------------------------
    
    
    >> Initial configuration 
    
    Operating System: Debian 10.0 (Buster) or compatible
    
        Following will be a few questions for primary configuration so be careful.
        Default values are in [brackets] and can be accepted with <ENTER>.
        Tap in "quit" (without the quotes) to stop the installer.
    
    
    Select language (en,de) [en]:
    
    Installation mode (standard,expert) [standard]:
    
    Full qualified hostname (FQDN) of the server, eg server1.domain.tld  [s4.dotcomcanadian.com.novalocal]: s4.dotcomcanadian.com
    
    MySQL server hostname [localhost]:
    
    MySQL server port [3306]:
    
    MySQL root username [root]:
    
    MySQL root password []:
    
    MySQL database to create [dbispconfig]:
    
    MySQL charset [utf8]:
    
    [INFO] service Apache not detected
    [INFO] service nginx not detected
    [INFO] service Postgrey not detected
    [INFO] service Postfix not detected
    [ERROR] Postfix not installed - skipping Mail
    [INFO] service Jailkit not detected
    [INFO] service pureftpd not detected
    [INFO] service BIND not detected
    [INFO] service MyDNS not detected
    [INFO] service OpenVZ not detected
    [INFO] service Ubuntu Firewall not detected
    [INFO] service Bastille Firewall not detected
    [INFO] service Metronome XMPP Server not detected
    Configuring Fail2ban
    Installing ISPConfig
    ISPConfig Port [8080]:
    
    Admin password [a7ae51bb]:
    
    Re-enter admin password []:
    
    Do you want a secure (SSL) connection to the ISPConfig web interface (y,n) [y]:
    
    Generating RSA private key, 4096 bit long modulus (2 primes)
    ............++++
    ..............................................................................++++
    e is 65537 (0x010001)
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    Country Name (2 letter code) [AU]:CA
    State or Province Name (full name) [Some-State]:
    Locality Name (eg, city) []:
    Organization Name (eg, company) [Internet Widgits Pty Ltd]:
    Organizational Unit Name (eg, section) []:
    Common Name (e.g. server FQDN or YOUR name) []:
    Email Address []:[email protected]
    
    Please enter the following 'extra' attributes
    to be sent with your certificate request
    A challenge password []:
    An optional company name []:
    writing RSA key
                
    
    PHP Warning:  chown(): Unable to find uid for ispconfig in /tmp/ispconfig3_install/install/lib/installer_base.lib.php on line 2696
    PHP Warning:  chgrp(): Unable to find gid for ispconfig in /tmp/ispconfig3_install/install/lib/installer_base.lib.php on line 2697
    chown: invalid user: ‘ispconfig:ispconfig’
    Configuring DBServer
    Installing ISPConfig crontab
    [ERROR] Cron not found
    Detect IP addresses
    Restarting services ...
    Installation completed.
    [email protected]:/tmp/ispconfig3_install/install#
    Code:
    cd /tmp
    wget  https://ispconfig.org/downloads/ISPConfig-3.1.15p2.tar.gz
    tar xfz ISPConfig-3.1.15p2.tar.gz
    
    cd ispconfig3_install/install/
    php -q install.php
    
    --------------------------------------------------------------------------------
     _____ ___________   _____              __ _         ____
    |_   _/  ___| ___ \ /  __ \            / _(_)       /__  \
      | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _    _/ /
      | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |  |_ |
     _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| | ___\ \
     \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, | \____/
                                                  __/ |
                                                 |___/
    --------------------------------------------------------------------------------
    
    
    >> Initial configuration 
    
    Operating System: Debian 10.0 (Buster) or compatible
    
        Following will be a few questions for primary configuration so be careful.
        Default values are in [brackets] and can be accepted with <ENTER>.
        Tap in "quit" (without the quotes) to stop the installer.
    
    
    Select language (en,de) [en]:
    
    Installation mode (standard,expert) [standard]:
    
    Full qualified hostname (FQDN) of the server, eg server1.domain.tld  [s4.dotcomcanadian.com.novalocal]: s4.dotcomcanadian.com
    
    MySQL server hostname [localhost]:
    
    MySQL server port [3306]:
    
    MySQL root username [root]:
    
    MySQL root password []:
    
    MySQL database to create [dbispconfig]:
    
    MySQL charset [utf8]:
    
    [INFO] service Apache not detected
    [INFO] service nginx not detected
    [INFO] service Postgrey not detected
    [INFO] service Postfix not detected
    [ERROR] Postfix not installed - skipping Mail
    [INFO] service Jailkit not detected
    [INFO] service pureftpd not detected
    [INFO] service BIND not detected
    [INFO] service MyDNS not detected
    [INFO] service OpenVZ not detected
    [INFO] service Ubuntu Firewall not detected
    [INFO] service Bastille Firewall not detected
    [INFO] service Metronome XMPP Server not detected
    Configuring Fail2ban
    Installing ISPConfig
    ISPConfig Port [8080]:
    
    Admin password [a7ae51bb]:
    
    Re-enter admin password []:
    
    Do you want a secure (SSL) connection to the ISPConfig web interface (y,n) [y]:
    
    Generating RSA private key, 4096 bit long modulus (2 primes)
    ............++++
    ..............................................................................++++
    e is 65537 (0x010001)
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    Country Name (2 letter code) [AU]:CA
    State or Province Name (full name) [Some-State]:
    Locality Name (eg, city) []:
    Organization Name (eg, company) [Internet Widgits Pty Ltd]:
    Organizational Unit Name (eg, section) []:
    Common Name (e.g. server FQDN or YOUR name) []:
    Email Address []:[email protected]
    
    Please enter the following 'extra' attributes
    to be sent with your certificate request
    A challenge password []:
    An optional company name []:
    writing RSA key
                
    
    PHP Warning:  chown(): Unable to find uid for ispconfig in /tmp/ispconfig3_install/install/lib/installer_base.lib.php on line 2696
    PHP Warning:  chgrp(): Unable to find gid for ispconfig in /tmp/ispconfig3_install/install/lib/installer_base.lib.php on line 2697
    chown: invalid user: ‘ispconfig:ispconfig’
    Configuring DBServer
    Installing ISPConfig crontab
    [ERROR] Cron not found
    Detect IP addresses
    Restarting services ...
    Installation completed.
    [email protected]:/tmp/ispconfig3_install/install#
    I checked around and tried things like logging into my mysql with user ispconfig using the password and it works. Not sure where I should go from there

    I do not want to use version 9 debian. what am I missing..
     
  2. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    you missed some steps - the installer does not detect several services.
     
  3. s2angel

    s2angel New Member

    I figured as much but I do not see where I missed steps..

    I will wipe and go over the step by step but its like it wants a user ispconfig does the installer create a user ispconfig. Should I be running the installer as a sudo?



     
  4. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    yes. run have to run install as root.
     
  5. s2angel

    s2angel New Member

    Can i rerun the installer ..

    like wipe drop the database and rerun it? or wiping is easier?
     
  6. s2angel

    s2angel New Member

    I mean in debian I am runing everything as root but as I have noted with the
    a2enconf phpmyadmin
    It did not work until I did
    sudo a2enconf phpmyadmin

    odd for debian linux

    so I will try now sudo php -q install.php
     
  7. s2angel

    s2angel New Member

    It will not let me run install

    I had to run update

    so

    sudo php -q update.php

    ok it actually did something this time though I did get a error.. Last few times it was just a bunch of stuff then a error.. this actually took some time so looked like I got farther.. but did get a error..
    Code:
    ISPConfig 3 installation found. Please use update.php instead if install.php to update the installation.
    [email protected]:/tmp/ispconfig3_install/install# sudo php -q update.php
    
    
    --------------------------------------------------------------------------------
     _____ ___________   _____              __ _         ____
    |_   _/  ___| ___ \ /  __ \            / _(_)       /__  \
      | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _    _/ /
      | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |  |_ |
     _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| | ___\ \
     \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, | \____/
                                                  __/ |
                                                 |___/
    --------------------------------------------------------------------------------
    
    
    >> Update 
    
    Operating System: Debian 10.0 (Buster) or compatible
    
    This application will update ISPConfig 3 on your server.
    
    Shall the script create a ISPConfig backup in /var/backup/ now? (yes,no) [yes]:
    
    Creating backup of "/usr/local/ispconfig" directory...
    Creating backup of "/etc" directory...
    Checking ISPConfig database .. OK
    Starting incremental database update.
    Loading SQL patch file: /tmp/ispconfig3_install/install/sql/incremental/upd_dev_collection.sql
    Reconfigure Permissions in master database? (yes,no) [no]: yes
    
    Service 'mail_server' has been detected (currently disabled) do you want to enable and configure it?  (yes,no) [no]: yes
    
    Service 'dns_server' has been detected (currently disabled) do you want to enable and configure it?  (yes,no) [no]: yes
    
    Service 'web_server' has been detected (currently disabled) do you want to enable and configure it?  (yes,no) [no]: yes
    
    Service 'firewall_server' has been detected (currently disabled) do you want to enable and configure it?  (yes,no) [no]: yes
    
    Reconfigure Services? (yes,no,selected) [yes]:
    
    Configuring Postfix
    Configuring Dovecot
    Creating new DHParams file, this takes several minutes. Do not interrupt the script.
    Configuring Mailman
    Configuring Spamassassin
    Configuring Amavisd
    Configuring Getmail
    Configuring BIND
    Configuring Pureftpd
    Configuring Apache
    Configuring vlogger
    Configuring Apps vhost
    Configuring Jailkit
    Configuring Bastille Firewall
    Configuring Database
    Updating ISPConfig
                
    
    Reconfigure Crontab? (yes,no) [yes]:
    
    Updating Crontab
    no crontab for getmail
    Restarting services ...
    Job for apache2.service failed because the control process exited with error code.
    See "systemctl status apache2.service" and "journalctl -xe" for details.
    Update finished.
    [email protected]:/tmp/ispconfig3_install/install#
    
    # systemctl status apache2.service
    ● apache2.service - The Apache HTTP Server
       Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Mon 2020-01-06 06:02:46 UTC; 3min 16s ago
         Docs: https://httpd.apache.org/docs/2.4/
      Process: 1963 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
    
    Jan 06 06:02:46 s4 systemd[1]: Starting The Apache HTTP Server...
    Jan 06 06:02:46 s4 apachectl[1963]: AH00526: Syntax error on line 6 of /etc/apache2/sites-enabled/000-apps.vhost:
    Jan 06 06:02:46 s4 apachectl[1963]: Listen requires 1 or 2 arguments.
    Jan 06 06:02:46 s4 apachectl[1963]: Action 'start' failed.
    Jan 06 06:02:46 s4 apachectl[1963]: The Apache error log may have more information.
    Jan 06 06:02:46 s4 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
    Jan 06 06:02:46 s4 systemd[1]: apache2.service: Failed with result 'exit-code'.
    Jan 06 06:02:46 s4 systemd[1]: Failed to start The Apache HTTP Server.
    
     
    Last edited: Jan 6, 2020
  8. s2angel

    s2angel New Member

    looks like my
    Syntax error on line 6 of
    /etc/apache2/sites-enabled/000-apps.vhost file is messed up
    Code:
    ######################################################
    # This virtual host contains the configuration
    # for the ISPConfig apps vhost
    ######################################################
    
     Listen
    # NameVirtualHost *:
    
    <VirtualHost _default_:>
      ServerAdmin [email protected]
    
    
      <FilesMatch "\.ph(p3?|tml)$">
        SetHandler None
      </FilesMatch>
    
      <IfModule mod_headers.c>
            RequestHeader unset Proxy early
      </IfModule>
    
    
      <IfModule mod_php5.c>
        DocumentRoot /var/www/apps
        AddType application/x-httpd-php .php
        <Directory /var/www/apps>
                    Options FollowSymLinks
                    AllowOverride None
                                    Require all granted
                        </Directory>
      </IfModule>
    
    so I am missing my ports now when I add my ports back It gives me a
    SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG in firefox

    do I need to redo my certs?
     
  9. s2angel

    s2angel New Member

    I have a feeling because I already installed it it did not install everything.. i mean it did not generate my ports in the apache2 config file I think I need to wipe drop database .. is there anything else for a clean install you might recommend? with out wiping
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    It seems as if somehow that your root user has not full root permissions, this would explain what you said about a2enconf and also why the ISPConfig installer was not able to create the Linux user 'ispconfig' and why it could not detect all services. Maybe it's related to the OpenStack version of Debian that you used as this does not happens on a regular Debian install. What you can try to do is run:

    sudo -s

    before you install the software and ispconfig.
     
  11. s2angel

    s2angel New Member

    I gave up attempting to save time and wiped VM image and started again fresh with latest debian 10.2 openstack image

    I found some commands do not need sudo and some do. The install definatly requires sudo and i had no issues


    all functional at the moment.. need to actualy test it first but I can login to ispconfig and add and do stuff so far so good.

    If your on a VPS that runs openstack and are using the Debian 10.2 make sure to run apache and php commands using the sudo infront.

    Thank you tim for leting me know
     
  12. Steini86

    Steini86 Active Member

    See: https://wiki.debian.org/Cloud#FAQ
     

Share This Page