Automated server installer

Discussion in 'Installation/Configuration' started by danf.1979, Aug 3, 2006.

  1. danf.1979

    danf.1979 ISPConfig Developer ISPConfig Developer

    [¡¡¡¡THIS IS ONLY FOR UBUNTU DAPPER!!!!!]

    Hi, EasyServer is a python program that enables you to install and configure a server in a automated way. You're going to be asked a set of initial questions so the program can install and configure all the needed packages by itself. Then you're off. No more interaction from the administrator is needed. The set of questions are very simple. Here they are:

    - Enter your hostname [server1.example.com]
    - Enter the mysql root password so I can set it for you
    - Enter the cakey.pem new pass phrase (site certificate)
    - Enter the PEM pass phrase
    - Enter your country 2 letter code
    - Enter your province or location
    - Enter your city name
    - Enter your company name
    - Enter your organization section or unit
    - Enter your name
    - Enter a contact email
    - Do you pretend to install ISPConfig control panel afterwards?

    Maybe it seems to be a lot, but it isn't. No more interaction from the administrator is needed. You need to install several servers? This software is for you!

    With EasyServer you get installed and configured:

    - Chrooted Openssh-server
    - Proftpd
    - Chrooted Bind9
    - MySQL 5.0 server with utf-8 support
    - Apache2 server
    --- mod_evasive
    --- mod_security
    --- mod_deflate
    - PHP 5
    - Webalizer statistics
    - Courier-POP3/Courier-IMAP
    - Postfix with SMTP-AUTH and TLS support
    - Rootkits scanners: rkhunter, chkrootkit
    - DenyHosts 2.0
    - NTP Clock Synchronization
    - Logwatch and bwm-ng monitor

    This is the first release, so use it with caution. If you want to test the program first, then you can use qemu.
    You can report bugs, request features, discuss and download de program in here:
    http://www.mundowebhosting.com/forums/index.php
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Great! :) I will test it soon. Did you progtam that?
     
  3. danf.1979

    danf.1979 ISPConfig Developer ISPConfig Developer

    Yes Falko I did the programming. I followed some of the howtos here at howtoforge and some other tutorials elsewhere. For now, there is a problem with the TLS certificate, but I dont know yet what is the problem. I used CA.sh for making the certificates, but TLS is not working. It says it can't load the certificate key, but newreq.pem is there, and with correct permissions.
    Code:
    Aug  5 08:14:59 www postfix/smtpd[9800]: initializing the server-side TLS engine
    Aug  5 08:14:59 www postfix/tlsmgr[9802]: open server TLS cache sdbm:/etc/postfix/smtpd_scache
    Aug  5 08:14:59 www postfix/tlsmgr[9802]: tlsmgr_srvr_cache_run_event: start TLS server session cache cleanup
    Aug  5 08:14:59 www postfix/smtpd[9800]: warning: cannot get private key from file /etc/postfix/ssl/newreq.pem
    Aug  5 08:14:59 www postfix/smtpd[9800]: warning: TLS library problem: 9800:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:644:Expecting: ANY PRIVATE KEY:
    Aug  5 08:14:59 www postfix/smtpd[9800]: warning: TLS library problem: 9800:error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib:ssl_rsa.c:669:
    Aug  5 08:14:59 www postfix/smtpd[9800]: cannot load RSA certificate and key data
    
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /etc/postfix/ssl
    ?
     
  5. danf.1979

    danf.1979 ISPConfig Developer ISPConfig Developer

    I fixed already falko. I also added some new functionalities, and I think I'll now try to automatize ISPC installation in dapper. I would have to ask initially only a couple more questions, but I haven't coded anything yet. I had to review pexpect module code (it allow to send answers to expected strings) so to figure out how to implement it. I guess I can, at least for what I thought today looking at the module. My biggest problem was ISPConfig compilations, they take so long, and the output is piped in, so the user would see nothing until ISPC would have ended all installation. I think there is a way to fix that. Tomorrow I'll test some code with it.
     

Share This Page