standalone control panel

Discussion in 'Installation/Configuration' started by Stelios, Sep 15, 2020.

  1. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi all,

    On a multi-server setup, I want to install a small VM with just the control panel on it.
    Under the manual it says to follow the web server installation which I did up to a point where it suggests installing pureftpd,quota,fail2ban,awstats and webalizer.

    Do I really need to install all the above or I can ignore them and move to the ISPconfig installation?

    PS: For a paid manual (it is very low price but anyway) it should be up to date...last time it updated in 2017 and most of the commands are not up to date with latest Debian etc
     
  2. Stelios

    Stelios Active Member HowtoForge Supporter

    By mistake, I posted to the wrong forum. If admins can move it under ISPconfig 3 it will be very much appreciated.
     
  3. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    So you want to install a VM through the VM module of ISPConfig? And what do you want to run on that VM?

    The manual will be updated after the release of 3.2. We are looking into a different system for the manual as maintaining one big file is not very nice.
     
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Of those, install fail2ban, the control panel node doesn't need the others.
     
  5. Stelios

    Stelios Active Member HowtoForge Supporter

    @Thom thanks for the update.

    Not VM through VM; just the control panel itself on a server (on a virtual machine) without any other service. All the rest services will be on different servers/VMs.

    @Jesse Norell thanks for the confirmation. I've just finished that installation and looks ok.
     
    elmacus likes this.
  6. Stelios

    Stelios Active Member HowtoForge Supporter

  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    So your new VM is not joining the current setup?
     
  8. Stelios

    Stelios Active Member HowtoForge Supporter

    I'm setting up a multi-server environment with 10 servers total.
    I've just finished the 1st once which is running on a VM who will hold just the control panel, nothing else. The rest will hold the rest of the services (email, db etc).
     
  9. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    I understand now ;)

    Indeed only fail2ban is needed of the ones you mentioned. Let us know if you need any help!
     
  10. Stelios

    Stelios Active Member HowtoForge Supporter

    A few more questions :)

    I've installed 2 x DB servers, 2 x email servers and 2 x web servers. I want users to access phpmyadmin & roundcube only from the controlpanel server.

    Do I just have to follow the manual on installing phpmyadmin & roundcube and just point them afterwards to mycontrolpanel.com/roundcube or /phpmyadmin ?
    Is there any specific configuration that needs both phpmyadmin & roundcube to access my available db & email servers?

    For example, when someone goes to mycontrolpanel.com/roundcube and enters the email/password it should know or somehow to select the appropriate email server that this domain/email belongs.
    Same for phpmyadmin, it should display a list of the db servers to select prior login.

    Kind regards
     
  11. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I think you can read this tutorial to solve your problem for PMA in different server.

    With regards to use RC in different server, you can try solving it by reading this thread.
     
  12. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Automatically selecting the correct server is possible, see ispconfig3_autoselect (and the other plugins): https://github.com/w2c/ispconfig3_roundcube
     
  13. Stelios

    Stelios Active Member HowtoForge Supporter

    Many thanks for the replies. Before I install phpmyadmin I've seen that on the control panel server the Apache is running on 8080 which holds the control panel.
    I need to be able to access the Apache from 80 port simply on controlpanel.com in order to install afterwards the phpmyadmin & roundcube. How can I achieve this without destroying the current setup?
     
  14. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    If you followed the perfect server setup, you can reach it on any port that's opened in your firewall, so controlpanel.com/roundcube or controlpanel.com/phpmyadmin would work.
     
  15. Stelios

    Stelios Active Member HowtoForge Supporter

    Th0m on the controlpanel server the apache listen only on 8080 which is the ISPconfig admin url. The 80 port doesn't work at all while is opened in firewall.
     
  16. Stelios

    Stelios Active Member HowtoForge Supporter

    I guess I might need to create a virtual host?
     
  17. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Create controlpanel.com as site in the interface, hosted on your control panel server.
     
  18. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    You should not run phpmyadmin or roundcube unencrypted on put 80, even in a private network; setup SSL and redirect to that, it's very easy and we'll supported to do so.
     
  19. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    You only need to add PMA and RC in your ISPConfig vhost so it can only be opened later via ISPConfig control panel 8080. No need to create another vhost for it.

    However, securing your ISPConfig control panel is important to ensure your PMA and RC will also only be accessed encrypted via the same port, as advised above.
     
  20. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi again,

    I've managed to set up PHPMyAdmin with remote access to the server by using the installed example files. The tutorial that @ahrasis posted is out of date and doesn't exist in such a file (mysqli.dbi.lib.php).
    Anyway, when I log in to the localhost everything is fine. When I log in to any remote server I'm getting:

    Configuration of pmadb… not OK

    The PHPMyAdmin and pma user is already in place on all DB servers and has the proper settings on the relevant files. Any idea how to troubleshoot this?

    This is my multi server file (config.manyhosts.inc.php):


    PHP:
    $i=0;
    $hosts = array (
        
    "localhost"
        
    "10.0.0.6"
        
    "10.0.0.7"
        
    //"baz.example.com",
        //"quux.example.com",
    );

    foreach (
    $hosts as $host) {
        
    $i++;
        
    $cfg['Servers'][$i]['host']     = $host;
        
    $cfg['Servers'][$i]['port']     = '';
        
    $cfg['Servers'][$i]['socket']   = '';
        
    $cfg['Servers'][$i]['connect_type']     = 'tcp';
        
    $cfg['Servers'][$i]['extension']        = 'mysql';
        
    $cfg['Servers'][$i]['compress'] = FALSE;
        
    $cfg['Servers'][$i]['controluser']      = 'pma';
        
    $cfg['Servers'][$i]['controlpass']      = 'mypassword';
        
    $cfg['Servers'][$i]['auth_type']        = 'cookie';
        
    $cfg['Servers'][$i]['user']     = '';
        
    $cfg['Servers'][$i]['password'] = '';
        
    $cfg['Servers'][$i]['only_db']  = '';
        
    $cfg['Servers'][$i]['verbose']  = '';
        
    $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
        
    $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
        
    $cfg['Servers'][$i]['relation'] = 'pma__relation';
        
    $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
        
    $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
        
    $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
        
    $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
        
    $cfg['Servers'][$i]['history'] = 'pma__history';
        
    $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
        
    $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
        
    $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
        
    $cfg['Servers'][$i]['recent'] = 'pma__recent';
        
    $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
        
    $cfg['Servers'][$i]['users'] = 'pma__users';
        
    $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
        
    $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
        
    $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
        
    $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
        
    $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
        
    $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';

        
    //$cfg['Servers'][$i]['ssl']=true;
    }
     

Share This Page