IPSConfig3 unable to install PHP 8.0 CentOS8 Stream

Discussion in 'Installation/Configuration' started by Milen St., Jun 1, 2023.

  1. Milen St.

    Milen St. New Member

    Hi i finally got the ISPConfig 3 installed and running very good on CentOS 8
    spent so much time with different versions OS like Debian and Ubunu , had errors and could not install
    however CentOS 8 went with absolutely no errors from the start to finish, great work with the developers of ISPConfig
    i bought the manual for the support as well..:)
    I have 2 domains working great email and web, however need help with one of the domain i want to install NEXTCLOUD v26 under cloud.domain.com subdomian, all went good once i try to open it it says you have php 7.4 , php 8.0 required..
    I am unable to install it via command line: errors as follow:

    Code:
    root@srv conf.d]# sudo dnf module install php:remi-8.0
    Last metadata expiration check: 8:54:51 ago on Thu 01 Jun 2023 07:24:12 +10.
    Error:
     Problem: cannot install both php-common-8.0.28-4.el8.remi.x86_64 and php-common-7.4.33-6.el8.remi.x86_64
      - package php-pecl-apcu-bc-1.0.5-3.el8.remi.7.4.x86_64 requires php(api) = 20190902-64, but none of the providers can be installed
      - package php-pecl-apcu-bc-1.0.5-3.el8.remi.7.4.x86_64 requires php(zend-abi) = 20190902-64, but none of the providers can be installed
      - cannot install the best candidate for the job
      - problem with installed package php-pecl-apcu-bc-1.0.5-3.el8.remi.7.4.x86_64
      - package php-common-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64 is filtered out by modular filtering
      - package php-common-7.4.19-2.module_el8.6.0+1075+ab70be85.x86_64 is filtered out by modular filtering
      - package php-common-7.4.30-1.module_el8.7.0+1190+d11b935a.x86_64 is filtered out by modular filtering
      - package php-common-7.4.6-4.module_el8.3.0+434+2ab5050a.x86_64 is filtered out by modular filtering
      - package php-common-7.4.33-4.el8.remi.x86_64 is filtered out by modular filtering
      - package php-common-7.4.33-6.el8.remi.x86_64 is filtered out by modular filtering
    (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
    
    if someone can help me with steps how to install php8 will be very appreciated,

    many thanks
    Milen
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    If you install PHP 8 that way, it breaks ISPConfig.
    Use instructions for additional PHP versions instead, that way OS default for PHP can stay intact and each website can be assigned desired PHP version. It uses that same remy repository for the PHP versions.
    I use Debian GNU/Linux, so I do not know the CentOS instructions, but I do remember it exists. Try finding it with something like
    Code:
    site:howtoforge.com additional php versions centos 8
     
    michelangelo likes this.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The problem with centOS is that you can't install additional PHP versions easily, it always exchanges the main PHP version. With centOS 8, exchanging the main PHP version will likely not break ISPConfig ss it always uses the same paths. But I don't use CentOS at all, so Ican't help you with installing PHP 8 on it.

    Just as a side note, you should really have used Ubuntu or Debian, its way easier to install, cleaner and you have less issues with updates.
     
  4. michelangelo

    michelangelo Active Member

    That's not true at all.
    You can install additional PHP versions perfectly fine on CentOS/RHEL and clones without overwriting the main PHP version of the OS.

    Easiest way is to install the correct packages from Remi and nothing of the main PHP version will be overwritten.
     
    ahrasis likes this.
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, good to know that CentOS changed this behavior and REMI provides also PHP version in this style now.
     
    michelangelo likes this.
  6. Milen St.

    Milen St. New Member

    I agree with Taleman, i dont want to mark around with the php7.4 which is working as unit with ISPConfig 3
    anyway i successfully installed Nextcloud v22 that works with with php7.4 and currently I am nexclouding in nextcloud with no problem.
    however as my ISPConfing is on VirtualMachine i will clone it and try some test to load php8 on it as side to side with php7.4, will post if i succeed.
    Thank you for the replies.
     

Share This Page