You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2012-03-01 08:12:48

ahtshun83
Member
Registered: 2012-03-01
Posts: 7

Installtion Error

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

#2 2012-03-01 08:28:44

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Installtion Error

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

#3 2012-03-01 09:10:23

ahtshun83
Member
Registered: 2012-03-01
Posts: 7

Re: Installtion Error

remi wrote:

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

#4 2012-03-01 09:15:05

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Installtion Error

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

#5 2012-03-01 09:16:45

ahtshun83
Member
Registered: 2012-03-01
Posts: 7

Re: Installtion Error

remi wrote:

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

#6 2012-03-01 09:23:21

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Installtion Error

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

#7 2012-03-01 09:27:37

ahtshun83
Member
Registered: 2012-03-01
Posts: 7

Re: Installtion Error

remi wrote:

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

#8 2012-03-01 09:33:36

ahtshun83
Member
Registered: 2012-03-01
Posts: 7

Re: Installtion Error

hi remi,

beside httpd,mysql-server,php and php-server, what others library do i need to install?

Offline

#9 2012-03-01 09:42:46

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Installtion Error

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

#10 2012-03-01 10:13:25

ahtshun83
Member
Registered: 2012-03-01
Posts: 7

Re: Installtion Error

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

Board footer

Powered by FluxBB