Upgrade from 2.2.17 to 2.2.27 fails.

Discussion in 'Installation/Configuration' started by StevenD, Feb 17, 2011.

  1. StevenD

    StevenD Member

    Hi All,

    I have a problem with updating ISPConfig2 from 2.2.17 to 2.2.37, sorry put 2.2.27 in the title.
    I am running Debian 6.0 Squeeze.

    I have downloaded the tar.gz from ISPConfig.org and extracted the files.
    I then cd into install_ispconfig and type ./setup

    It all starts beavering away but then comes up with the following message.

    Code:
    ./configure:Error: APACI failed
    ERROR: Could not configure Apache
    
    I have looked in the apache logs and see nothing around the time it was installed.

    If i go to https://192.168.2.3:81 I only get a reply saying "This webpage is not available"

    Any help is greatly appreciated, even if it means helping me revert back to 2.2.17 as that was working.

    Thanks

    Steve
     
    Last edited: Feb 17, 2011
  2. StevenD

    StevenD Member

    Sorry just realised there is more to the apache setup as follows.

    Code:
    Configuring for Apache, Version 1.3.41
     + Warning: Your 'echo' command is slightly broken.
     + It interprets escape sequences per default. We already
     + tried 'echo -E' but had no real success. If errors occur
     + please set the SEO variable in 'configure' manually to
     + the required 'echo' options, i.e. those which force your
     + 'echo' to not interpret escape sequences per default.
     + using installation path layout: Apache (config.layout)
    Creating Makefile
    Creating Configuration.apaci in src
    Syntax error --- The configuration file is used only to
    define the list of included modules or to set Makefile in src
    options or Configure rules, and I don't see that at all:
    /root/ispconfig/openssl
    yes
    default
    no
    no
    no
     `$(SRCDIR)/apaci`
    no
    default
    default
    no
    no
    no
    yes
    no
    default
    no
    default
    default
    
    ./configure:Error: APACI failed
    ERROR: Could not configure Apache
    
    
    A little more info that happens when I try to restart it.

    Code:
    server:/etc/init.d# ./ispconfig_server restart
    Shutting down ISPConfig system...
    ./ispconfig_server: line 66: /root/ispconfig/httpd/bin/apachectl: No such file or directory
    ISPConfig system stopped!
    Starting ISPConfig system...
    ./ispconfig_server: line 45: /root/ispconfig/httpd/bin/apachectl: No such file or directory
    ./ispconfig_server: line 48: /root/ispconfig/php/php: No such file or directory
    ISPConfig system is now up and running!
    
    Thanks

    Steve
     
    Last edited: Feb 17, 2011
  3. falko

    falko Super Moderator Howtoforge Staff

  4. StevenD

    StevenD Member

    Hi Falko,

    Thanks for your reply.
    I have done what was said, and installation did get beyond that point but when it tried to start the ISPConfig server it gave the following errors.

    Code:
    Starting ISPConfig system...
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    [Fri Feb 18 17:49:48 2011] [alert] ispconfig_httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
    /root/ispconfig/httpd/bin/apachectl startssl: httpd could not be started
    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
    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
    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
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    ISPConfig system is now up and running!
    
    Thanks

    Steve
     
  5. StevenD

    StevenD Member

    OK I tried to reinstall the previous version by extracting the files out of temp into /home and
    /root

    That seemed to work but I still cant start the server.

    It seems that its the ssl that causing the problem.

    The mySQL database remains intact with all the data.

    See below, I a just start apachectl it start ok, but if I try apachectl startssl it cant start.

    Code:
    server:~# /root/ispconfig/httpd/bin/apachectl start
    [Fri Feb 18 18:31:46 2011] [alert] ispconfig_httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
    /root/ispconfig/httpd/bin/apachectl start: httpd started
    
    server:~# /root/ispconfig/httpd/bin/apachectl stop
    /root/ispconfig/httpd/bin/apachectl stop: httpd stopped
    
    server:~# /root/ispconfig/httpd/bin/apachectl startssl
    [Fri Feb 18 18:33:21 2011] [alert] ispconfig_httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
    /root/ispconfig/httpd/bin/apachectl startssl: httpd could not be started
    
    Thanks

    Steve
     
    Last edited: Feb 18, 2011
  6. falko

    falko Super Moderator Howtoforge Staff

    Try
    Code:
    /etc/init.d/ispconfig_server restart
    If that doesn't work, check the error log in /root/ispconfig/httpd/logs.
     
  7. StevenD

    StevenD Member

    Hi Falko,

    Thank you again for your reply.

    I tried that and it failed again with the same error.

    This is what was recorded in the error log.

    Code:
    [Sat Feb 19 17:58:56 2011] [error] mod_ssl: Init: Unable to read server certificate from file /root/ispconfig/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
    [Sat Feb 19 17:58:56 2011] [error] OpenSSL: error:0D06B08E:asn1 encoding routines:ASN1_D2I_READ_BIO:not enough data
    
    This is the contents of ssl_engine_log

    Code:
    [19/Feb/2011 17:58:56 24799] [info]  Server: Apache/1.3.41, Interface: mod_ssl/2.8.31, Library: OpenSSL/0.9.8m
    [19/Feb/2011 17:58:56 24799] [info]  Init: 1st startup round (still not detached)
    [19/Feb/2011 17:58:56 24799] [info]  Init: Initializing OpenSSL library
    [19/Feb/2011 17:58:56 24799] [info]  Init: Loading certificate & private key of SSL-aware server www.127.0.0.1:81
    [19/Feb/2011 17:58:56 24799] [error] Init: Unable to read server certificate from file /root/ispconfig/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
    [19/Feb/2011 17:58:56 24799] [error] OpenSSL: error:0D06B08E:asn1 encoding routines:ASN1_D2I_READ_BIO:not enough data
    
    Thanks

    Steve
     
  8. StevenD

    StevenD Member

    Hi Falko,

    I have remade a new key etc by entering the following commands.
    Code:
    openssl req -nodes -newkey rsa:2048 -keyout myserver.key -out server.csr
    openssl genrsa -des3 -out server.key 1024
    openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
    
    I then copied the server.key into /root/ispconfig/httpd/conf/ssl.key
    copied server.crt into /root/ispconfig/httpd/conf/ssl.crt
    and copied server.csr into /root/ispconfig/httpd/conf/ssl.csr/server.csr

    I basically just followed the steps upto and including step 4 here - http://www.akadia.com/services/ssh_test_certificate.html

    I then restarted the server using /etc/init.d/ispconfig_server restart

    All worked ok.

    I'm just wondering if this is a correct fix?

    One thing it no longer asks me for a passphrase when starting the server like it used to?

    By the way I have backed up any of the files that I have replaced just in case.

    Thanks for your time.

    Steve
     
    Last edited: Feb 19, 2011
  9. falko

    falko Super Moderator Howtoforge Staff

    That's how it's supposed to be. Take a look at http://www.ispconfig.org/ispconfig-2/installation-instructions-for-ispconfig-2/ :

    "In step 7 (“Encrypting RSA private key of CA with
    a pass phrase for security [ca.key]“)and step 8 (“Encrypting
    RSA private key of SERVER with a pass phrase for security
    [server.key]“) of the certificate creation process
    you are asked if you want to encrypt the respective key now.
    Choose n there because otherwise you will always
    be asked for a password whenever you want to restart the ISPConfig
    system which means it cannot be restarted without human interaction!"
     
  10. StevenD

    StevenD Member

    Thanks Falko,

    I must have done it wrong when I set it up originally over 2 years ago, I just thought it was the norm.

    Once again your support has been fantastic.

    Steve
     

Share This Page