Fog 1.5.7 on centos 8.0



  • 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



  • 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



  • 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


  • Senior Developer

    @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.


  • Senior Developer

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



  • @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


  • Senior Developer

    @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.


Log in to reply
 

273
Online

7.4k
Users

14.5k
Topics

136.7k
Posts