You are not logged in.
Pages: 1
Hi all,
I am very new to GLPI. I installed this software on CentOS 5.2. During the installation, i got this error message
GLPI can't work correctly without the json_encode and json_decode functions
I follow this link as a guide
http://www.dbarticles.com/glpi-asset-ma … tallation/
Can someone help me?
Offline
CentOS 5 provides PHP 5.1.6 which is quite old.
You must
- install php-pecl-json (from EPEL repository)
or
- upgrade your php version (5.3.10 is availble in various repository, including mine)
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
CentOS 5 provides PHP 5.1.6 which is quite old.
You must
- install php-pecl-json (from EPEL repository)
or
- upgrade your php version (5.3.10 is availble in various repository, including mine)
Hi Remi,
My centos 5.2 is already installed as below
PHP 5.3.5 (cli) (built: Jan 7 2011 19:01:17)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Offline
Don't know where your PHP 5.3.5 comes from.
Json extension, is a standard extension since 5.2.0
So should be present.
Not a GLPI issue, really.
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
Don't know where your PHP 5.3.5 comes from.
Json extension, is a standard extension since 5.2.0
So should be present.Not a GLPI issue, really.
can you help me to uninstall my current version and install with 5.2.0?
I'm not so good with Linux
Thank you.
i ran rpm -qa | grep php
php-5.3.5-1.el5.remi
php-mysql-5.3.5-1.el5.remi
php-devel-5.3.5-1.el5.remi
php-mcrypt-5.3.5-1.el5.remi
php-mssql-5.3.5-1.el5.remi
php-common-5.3.5-1.el5.remi
php-ldap-5.3.5-1.el5.remi
php-cli-5.3.5-1.el5.remi
php-mbstring-5.3.5-1.el5.remi
php-pdo-5.3.5-1.el5.remi
php-pear-1.9.1-6.el5.remi
Last edited by ahtshun83 (2012-03-01 09:18:52)
Offline
can you help me to uninstall my current version and install with 5.2.0?
This seems really... hum... uggly...
I said "Json extension, is a standard extension since 5.2.0", which means it is present in all versions of PHP > 5.2.0, so including 5.3, so including 5.3.5
Well... RPM from my repo... (but very old)
Please
php --modules
rpm --verify php-common
ll /usr/lib*/php/modules/json.so
cat /etc/php.d/json.ini
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
can you help me to uninstall my current version and install with 5.2.0?
This seems really... hum... uggly...
I said "Json extension, is a standard extension since 5.2.0", which means it is present in all versions of PHP > 5.2.0, so including 5.3, so including 5.3.5
Well... RPM from my repo... (but very old)
Please
php --modules rpm --verify php-common ll /usr/lib*/php/modules/json.so cat /etc/php.d/json.ini
Sorry i got you. here are the output.
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
ereg
exif
fileinfo
filter
ftp
gettext
gmp
hash
iconv
json
ldap
libxml
mbstring
mcrypt
mssql
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_dblib
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
tokenizer
xml
zip
zlib
[Zend Modules]
# rpm --verify php-common
S.5....T c /etc/php.ini
ll /usr/lib*/php/modules/json.so
-rwxr-xr-x 1 root root 31928 Jan 8 2011 /usr/lib/php/modules/json.so
cat /etc/php.d/json.ini
; Enable json extension module
extension=json.so
Offline
hi remi,
beside httpd,mysql-server,php and php-server, what others library do i need to install?
Offline
As said "php --modules", you have json extension installed.
So... I don't understand...
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
Hi remi,
I managed to install GPLI. i reclone my centos and never install json again.
because my new centos also got the json.
thank you for your help
Offline
Pages: 1