Restore an existing backup

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

  1. dx007

    dx007 Member

    after running command:
    --------------------------------------
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package php5-mysqlng
     
  2. dx007

    dx007 Member

    like I said would it not be wiser to reinstall downright ispconfig?
     
  3. dx007

    dx007 Member

  4. dx007

    dx007 Member

  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Your problem is not directly related to ispconfig, the problem is that the php setup of the server is broken so that essential php functions like the mysqli extension are missing. Thats why a reinstall of ispconfig nor a restore of the backup will help.

    please post the output of the command

    php -v
     
  6. dx007

    dx007 Member

    php -v
    -----------------------------------
    PHP 5.5.22 (cli) (built: Mar 16 2015 14:29:41)
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, that seems to be one of your manually compiled php versions which lacks mysql support. Please post the output of:

    ls -la /usr/bin/php-cgi
    ls -la /usr/bin/php
    ls -la /usr/bin/php5-cgi

    and

    which php
    which php-cgi
    which php5-cgi
     
  8. dx007

    dx007 Member

    ls -la /usr/bin/php-cgi
    -rwxr-xr-x 1 root root 28146832 Mar 16 14:30 /usr/bin/php-cgi

    ls -la /usr/bin/php
    -rwxr-xr-x 1 root root 28250008 Mar 16 14:30 /usr/bin/php

    ls -la /usr/bin/php5-cgi
    -rwxr-xr-x 1 root root 8930352 Feb 19 13:09 /usr/bin/php5-cgi

    which php
    /usr/local/bin/php

    which php-cgi
    /usr/local/bin/php-cgi

    which php5-cgi
    /usr/bin/php5-cgi
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    run:

    mv /usr/local/bin/php-cgi /usr/local/bin/php-cgi_bak

    then restart apache and try to login again. The cause of the problem is that you compiled the new php 5.5 wwithous specifying a custom directory like /opt/php-5.5.22 in the configure command and other modules like mysql were missing in that php as well. When you used one of the tutorails from falko here at howtoforge to compile pjp then ensure that there is no whitespace after the backslash \ in the configure lines. The whole configure statement is just one command,
     
  10. dx007

    dx007 Member

    I executed the command and restarted apache2
    ---------------------------------------
    [....] Restarting web server: apache2[Fri Mar 20 09:04:53 2015] [warn] NameVirtualHost *:443 has no VirtualHosts
    ... waiting [Fri Mar 20 09:04:54 2015] [warn] NameVirtualHost *:443 has no VirtualHosts
    . ok
    -----------------------------------------
    the blank page persists at https://mydomain.com:8080/
     
  11. dx007

    dx007 Member

    what should I do now please?
     
  12. dx007

    dx007 Member

  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the apache error.log again.
     
  14. dx007

    dx007 Member

    [Fri Mar 20 10:56:22 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 10:56:22 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 10:56:22 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
    [Fri Mar 20 10:56:23 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 10:56:23 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 10:56:23 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
     
  15. dx007

    dx007 Member

    it looks like there are many files that it cannot find
     
  16. dx007

    dx007 Member

    are you still there ?
     
  17. dx007

    dx007 Member

    this is what i got in
    /opt/php-5.5.22/etc# ls
    ----------------------------------------
    php-fpm.conf php-fpm.conf.default pool.d
     

Share This Page