• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

FOG server under RHEL 9 and PHP 8

Scheduled Pinned Locked Moved Solved
Bug Reports
2
6
1.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    Fernando Gietz Developer
    last edited by Feb 13, 2023, 4:00 PM

    Hi again! I am back 🙂
    I am installing a new server under RHEL 9, but I am having problems with the install process.

    Two big problems:

    • PHP version 8: the implode function is deprecated and have changed (https://www.php.net/manual/en/function.implode.php)
     implode(string $separator, array $array): string
    
    Alternative signature (not supported with named arguments):
    implode(array $array): string
    
    Legacy signature (deprecated as of PHP 7.4.0, removed as of PHP 8.0.0):
    implode(array $array, string $separator): string
    
    Join array elements with a separator string. 
    

    The order of the parameters is different. This affects to all calls of the implode function.

    *xinetd package is not available in RHEL 9
    From https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/pdf/considerations_in_adopting_rhel_9/red_hat_enterprise_linux-9-considerations_in_adopting_rhel_9-en-us.pdf

    The xinetd package is not available in RHEL
    9. Its functionality is now provided by
    systemd.
    
    1 Reply Last reply Reply Quote 0
    • F
      Fernando Gietz Developer
      last edited by Feb 13, 2023, 5:27 PM

      Workaround: Install php 7.4 in RHEL 9
      Install PHP 7.4 (https://www.linuxcapable.com/how-to-install-php-on-centos-stream/)

      # dnf upgrade –refresh
      # dnf config-manager --set-enabled crb
      # dnf install \
          https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
          https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
      # dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-9.rpm -y
      # dnf module list php
      # dnf module enable php:remi-7.4 –y
      # dnf install php php-cli php-common php-fpm php-gd php-json php-ldap php-mbstring php-mysqlnd php-process –y
      
      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Feb 15, 2023, 5:32 AM

        @Fernando-Gietz Hi Fernando, great to see you around!

        I guess you tried to install FOG 1.5.9. This version still lacks PHP 8 support. Either install dev-branch (you can easily update from dev-branch to the next official release) or wait two weeks until the new release is out.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        F 1 Reply Last reply Feb 15, 2023, 3:05 PM Reply Quote 0
        • F
          Fernando Gietz Developer @Sebastian Roth
          last edited by Feb 15, 2023, 3:05 PM

          @Sebastian-Roth Hi Sebastian!
          I will try the dev-branch, the new server is the develop server. If the new release version has PHP 8 support then great 🙂
          The problem with the xinetd is more “special”, only affect to RHEL 9 and higher.

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Feb 16, 2023, 7:28 AM

            @Fernando-Gietz said in FOG server under RHEL 9 and PHP 8:

            The problem with the xinetd is more “special”, only affect to RHEL 9 and higher.

            Not exactly sure but back in my head this rings a bell. We might have fixed that in dev-branch as well.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            F 1 Reply Last reply Feb 20, 2023, 12:07 PM Reply Quote 0
            • F
              Fernando Gietz Developer @Sebastian Roth
              last edited by Feb 20, 2023, 12:07 PM

              Hi @Sebastian-Roth,
              Yes, I think that the dev-branch solves the problem. I tried to install from master branch and the problem with the xinetd appeared, but with the dev-branch apparently works fine

              1 Reply Last reply Reply Quote 0
              • [[undefined-on, S Sebastian Roth, Feb 20, 2023, 7:56 PM]]
              • 1 / 1
              1 / 1
              • First post
                6/6
                Last post

              161

              Online

              12.1k

              Users

              17.3k

              Topics

              155.3k

              Posts
              Copyright © 2012-2024 FOG Project