Sirous problems after updating Ispconfig 3.1 to 3.2

Discussion in 'ISPConfig 3 Priority Support' started by virk6, Nov 14, 2020.

  1. virk6

    virk6 Member HowtoForge Supporter

  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  3. virk6

    virk6 Member HowtoForge Supporter

  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Yes, I told you that several times now.

    But I'm not sure if you can select a different database on upgrade.

    What might work is changing the database in /usr/local/ispconfig/interface/lib/config.inc.php, then running the update script and reconfigure services. So
    Code:
    nano /usr/local/ispconfig/interface/lib/config.inc.php
    and then change
    Code:
    $conf['db_database'] = 'dbispconfig';
    to
    Code:
    $conf['db_database'] = 'dbispconfig2';
    and
    Code:
    nano /usr/local/ispconfig/server/lib/config.inc.php
    and then change
    Code:
    $conf['db_database'] = 'dbispconfig';
    to
    Code:
    $conf['db_database'] = 'dbispconfig2';
    After that, run
    Code:
    cd /tmp
    wget https://www.ispconfig.org/downloads/ISPConfig-3.2.tar.gz
    tar xvfz ISPConfig-3.2.tar.gz
    cd ispconfig3_install/install
    php -q update.php
    and select "yes" for reconfigure services.
     
  5. virk6

    virk6 Member HowtoForge Supporter

    oK i have run a force update but still the same result; i can not found the php version and can not add new php version; also i can not add new site in Ispconfig ..
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Did you change the files I mentioned?
     
  7. virk6

    virk6 Member HowtoForge Supporter

    i HAVE DONE ALL THE MODIFICATIONS.
    I get all my PHP versions ... but trying to create a new sites in Ispconfig i got the former message :
    Unknown column 'server_php_id' in 'field list'
     
  8. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Please don't use caps and stay friendly. I am trying to help you.

    It might be that the SQL updates haven't been run for your second database.
    Log in to your database as root and then run the updates from install/sql/incremental/upd_0089.sql and install/sql/incremental/upd_0090.sql manually.
     
  9. virk6

    virk6 Member HowtoForge Supporter

    Ok when it is done i would let know the results
     
  10. virk6

    virk6 Member HowtoForge Supporter

    Can you remind me which database should i load and invoke before executing manually theses two sql files upd_0089.sql and upd_0090.sql manually ?
     
  11. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    dbispconfig2 if that's your correct ISPConfig DB.
     
  12. virk6

    virk6 Member HowtoForge Supporter

    The database is dbispconfig is not it ?
     
  13. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You told us that it used to be dbispconfig2, because you changed it, and that now, when using dbispconfig, data is missing. So then it should be dbispconfig2.
     
  14. virk6

    virk6 Member HowtoForge Supporter

    After making all the modifications in addition to running the .sql files the problem persists because when creating a site I still have the message: Unknown column 'server_php_id' in 'field list'

    I think the problem must be more serious, right ?
     
  15. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Run
    Code:
    ALTER TABLE `web_domain` ADD `server_php_id` INT(11) UNSIGNED NOT NULL DEFAULT 0;
    manually on the DB. If that fixes this, you have not ran the .sql files correctly.
     
  16. virk6

    virk6 Member HowtoForge Supporter

    Can I restore the old version ispcong 3.1?
    I think I have a backup of dbispconfig from before upgrading from ispconfig 3.1 to 3.2?
    How to proceed ? Is it enough to restore the dbispconfig database?
     
  17. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    If you made a backup when updating, there is a backup in /var/backup. But never updating is not a good idea ofcourse. It's better to resolve this. You can also hire professional business support ofcourse.
     
  18. virk6

    virk6 Member HowtoForge Supporter

    When i run the sql i got error ..
    MariaDB [dbispconfig]> ALTER TABLE `web_domain` ADD `server_php_id` INT(11) UNSIGNED NOT NULL DEFAULT 0;
    ERROR 1060 (42S21): Duplicate column name 'server_php_id'
     
  19. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You selected dbispconfig, while you told us before dbispconfig2 was the correct database and you changed your setup to use dbispconfig2. You asked me which db to select for the sql updates and I told you dbispconfig2 and why.

    So again, you should run the updates for dbispconfig2 when you are using dbispconfig2.
     
  20. virk6

    virk6 Member HowtoForge Supporter

    How far is it possible to reinstall Ispconfig ?
     

Share This Page