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

    Fog 1.5.7 on centos 8.0

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    6
    599
    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.
    • L
      lebrun78
      last edited by

      Hello
      We bought a nice new server for FOG.
      I’m trying to install fog on a Centos 8.0
      I get no error running the installation script, but when I am at

      This can be done by opening a web browser and going to:
      
         http://192.168.122.12/fog/management
      

      I get a blank screen on my navigator

      In the /var/log/httpd/access_log I have:

      192.168.122.1 - - [29/Oct/2019:13:42:07 -0400] "GET /fog/management/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0"
      
      

      In the /var/log/php-fpm/www-error.log I have

      Insert [29-Oct-2019 17:32:31 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function json_encode() in /var/www/html/fog/lib/db/pdodb.class.php:427
      Stack trace:
      #0 /var/www/html/fog/lib/db/pdodb.class.php(230): PDODB->sqlerror()
      #1 /var/www/html/fog/lib/db/pdodb.class.php(171): PDODB::currentDb(Object(PDODB))
      #2 /var/www/html/fog/lib/db/pdodb.class.php(180): PDODB->_connect(false)
      #3 /var/www/html/fog/lib/db/pdodb.class.php(103): PDODB->_connect()
      #4 /var/www/html/fog/lib/db/databasemanager.class.php(61): PDODB->__construct()
      #5 /var/www/html/fog/lib/fog/loadglobals.class.php(43): DatabaseManager::establish()
      #6 /var/www/html/fog/lib/fog/loadglobals.class.php(81): LoadGlobals::_init()
      #7 /var/www/html/fog/commons/base.inc.php(49): LoadGlobals->__construct()
      #8 /var/www/html/fog/management/index.php(22): require('/var/www/html/f...')
      #9 {main}
        thrown in /var/www/html/fog/lib/db/pdodb.class.php on line 427
      
      

      I tried after install php72-php-json but I get the same error.

      Arnaud

      Fog Version: Fog 1.5.10
      Server OS: AlmaLinux release 8.8

      1 Reply Last reply Reply Quote 0
      • L
        lebrun78
        last edited by

        Since last week, I followed this topic

        https://forums.fogproject.org/topic/13887/blank-install-page/36

        Installed is now completed

        Thank you for your help

        Fog Version: Fog 1.5.10
        Server OS: AlmaLinux release 8.8

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          @lebrun78 said in Fog 1.5.7 on centos 8.0:

          I tried after install php72-php-json but I get the same error.

          Did you restart the PHP-FPM and Apache service after you installed that package? Just restart the whole server to make sure.

          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

          L 1 Reply Last reply Reply Quote 0
          • L
            lebrun78 @Sebastian Roth
            last edited by

            @Sebastian-Roth said in Fog 1.5.7 on centos 8.0:

            @lebrun78 said in Fog 1.5.7 on centos 8.0:

            I tried after install php72-php-json but I get the same error.

            Did you restart the PHP-FPM and Apache service after you installed that package? Just restart the whole server to make sure.

            Yes I restared PHP-FPM and Apache.

            Arnaud

            Fog Version: Fog 1.5.10
            Server OS: AlmaLinux release 8.8

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by

              @lebrun78 I have not had the time to setup a new CentOS 8 machine yet. Will do so and give it a try myself.

              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

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by

                @lebrun78 Just tested on a fresh clean CentOS 8 install. No problem!

                My guess is you have manually added some extern PHP repo before running the FOG installer. CentOS 8 comes with PHP version 7.2(.11) and so it’s not needed to use external repos.

                Please run rpm -qa | grep php and post the result here.

                P.S.: The only thing I had an issue with is the firewall. Seems like our firewall detection in the scripts is failing here and so I didn’t notice that at first.

                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

                1 Reply Last reply Reply Quote 0
                • L
                  lebrun78
                  last edited by

                  Since last week, I followed this topic

                  https://forums.fogproject.org/topic/13887/blank-install-page/36

                  Installed is now completed

                  Thank you for your help

                  Fog Version: Fog 1.5.10
                  Server OS: AlmaLinux release 8.8

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  160

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project