Restore an existing backup

Discussion in 'Installation/Configuration' started by dx007, Mar 19, 2015.

  1. dx007

    dx007 Member

    Hello,
    I am under Debian 7 and I have a problem with ispconfig3.
    In fact I would like to know how to restore ispconfig3 from an existing backup that is located in /var/backup/ispconfig_2014-12-07 on my server.
    In the "ispconfig_2014-12-07" folder there are:
    - etc.tar.gz
    - ispconfig_db_backup.sql
    - ispconfig_software.tar.gz

    Thank you very much for your answers!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Restoring a old version should only be the last resort. Which problem do you have?
     
  3. dx007

    dx007 Member

    In fact I followed the tutorial "The Perfect Server - Debian Wheezy ( Apache2 , BIND, Dovecot , ISPConfig 3) " to the end and everything worked well.
    Except now I have added additional versions of PHP ( 5.6.6 and 5.5.22 ) and I think there was a mistake because ispconfg no longer appears at: https://mydomain.com : 8080 / and I do not have access to phpmyadmin via the link https://mydomain.com:8080/phpmyadmin
    The page displays "Connection failed" [status: Aborted] .

    Thank you for your response.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, the issue is most likely related to the compiling of the additional php versions, so a restore of the ispconfig backup wont help as ispconfig has not been altered.

    Try this:

    Code:
    apt-get install --reinstall apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libruby libapache2-mod-ruby libapache2-mod-python php5-curl php5-intl php5-memcache php5-memcached php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl memcached
     
  5. dx007

    dx007 Member

    thank you for your quick response
    However, I have the following error when i run the command:
    --------------------------------------------------------------------
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    php5-ming : Depends: phpapi-20100525
    php5-ps : Depends: phpapi-20100525
    E: Unable to correct problems, you have held broken packages.
    ---------------------------------------------------------------------
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    try:

    apt-get update

    and then run the command again.
     
  7. dx007

    dx007 Member

    the error persists...
     
  8. dx007

    dx007 Member

    The following packages have unmet dependencies:
    php5-ming : Depends: phpapi-20100525
    php5-ps : Depends: phpapi-20100525
    E: Unable to correct problems, you have held broken packages.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you change anything in the debian sources.list file?
     
  10. dx007

    dx007 Member

    I don't know where is this file but if you tell me the link to access I can stick its content here
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    The file is /etc/apt/sources.list
     
  12. dx007

    dx007 Member

  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, someone must have altered that file as dotdeb repositories are not used in the perfect server gide and they are cuasing the conflict now.

    you can try to leave out the ming and ps package as dotdeb does not seem to offer them.

    Code:
    apt-get install --reinstall apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libruby libapache2-mod-ruby libapache2-mod-python php5-curl php5-intl php5-memcache php5-memcached php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl memcached
     
  14. dx007

    dx007 Member

    OK, I launched the command and now by accessing the page https://mydomain.com:8080/
    I get an error 500 [Internal Server Error]
     
  15. dx007

    dx007 Member

    but the logo is displayed in the browser tab
    it's a good sign :p
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok. please take a look at the apache error.log and the suexec.log to find out the reason for this error.
     
  17. dx007

    dx007 Member

    Can you give me the links to access these 2 files please ?
    thanks.
     
  18. dx007

    dx007 Member

    /var/log/apache2/error.log
    -------------------------------------------
    [Fri Mar 20 05:51:40 2015] [warn] [client 78.192.220.99] mod_fcgid: stderr: PHP Warning: ob_start(): function 'ob_gzhandler' not found or invalid function name in /usr/local/ispconfig/interface/lib/app.inc.php on line 32
    [Fri Mar 20 05:51:40 2015] [warn] [client 78.192.220.99] mod_fcgid: stderr: PHP Notice: ob_start(): failed to create buffer in /usr/local/ispconfig/interface/lib/app.inc.php on line 32
    [Fri Mar 20 05:51:40 2015] [warn] [client 78.192.220.99] mod_fcgid: stderr: PHP Fatal error: Class 'mysqli' not found in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php on line 31
     
  19. dx007

    dx007 Member

    /var/log/apache2/suexec.log
    -------------------------------------------------
    [2015-03-16 20:10:23]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2015-03-17 13:40:44]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2015-03-17 13:51:10]: uid: (5011/web8) gid: (5005/client0) cmd: .php-fcgi-starter
    [2015-03-17 13:54:43]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2015-03-17 15:33:10]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2015-03-17 15:38:39]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
    [2015-03-20 05:16:44]: uid: (5003/ispconfig) gid: (5004/ispconfig) cmd: .php-fcgi-starter
     
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    try to install:

    apt-get install php5-mysqlng
     

Share This Page