centos 8 phpmyadmin error

Discussion in 'Installation/Configuration' started by George Girgolas, Dec 6, 2021.

  1. George Girgolas

    George Girgolas New Member

    Hello,

    installed perfect server centos 8 following your detailed how to.
    I've also install an additional php version (5.6)
    But now phpmyadmin uses this one rather than the default. I get the message
    PHP 7.1.3+ is required.
    Currently installed version is: 5.6.40

    php -v gives
    Code:
    PHP 7.4.26 (cli) (built: Nov 16 2021 15:31:30) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
        with Zend OPcache v7.4.26, Copyright (c), by Zend Technologies
    
    Any ideas?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Addtitional PHP versions are possible, but must be added so the OS default PHP version remains the same it was originally.
    Consult https://www.ispconfig.org/documentation/ chapter "Using multiple PHP versions".
    See how to turn the default PHP version back.
     
  3. George Girgolas

    George Girgolas New Member

    My other sites works perfectly, using the Default php version
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Websites do work with any PHP version, but ISPConfig must have the PHP version that is default for the OS. Seems neither does PHPMyAdmin work with PHP 5.6, but requires 7.x.
    I do not use CentOS so I do not know how this is done there, but on Debian and Ubuntu the most recently installed PHP version becomes the default PHP and command update-alternatives must be used to change the OS default back to what it was originally.
     
  5. George Girgolas

    George Girgolas New Member

    I do have access to ispconfig web interface though...
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    You might not notice it directly when using the wrong PHP version as only some functions will not work. In general, ISPConfig will work with PHP between 5.6 and 7.4, it will not work with PHP 8.x yet.
     
  7. George Girgolas

    George Girgolas New Member

    So,nobody knows how to restore default php version on centos 8?
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I wrote I do not know how to do it. Surely CentOS users can help you out. Or Internet Search Engines with
    Code:
    centos 8 default PHP version
     

Share This Page