How to install PHPJSON in centos environment. 1. download the source package: wgetwww.javasre.netprojectsphp-json2.decompress tarxvjfphp-json-ext-1.2.0.tar.bz2 3. go to the directory cdphp-json-ext-1.2.04. initialize PHP environment phpize report
1. download the source file package:
Wget http://www.aurore.net/projects/php-json/
2. extract
Tar xvjf php-json-ext-1.2.0.tar.bz2
3. enter the Directory
Cd php-json-ext-1.2.0
4. initialize the PHP environment
Phpize
Error: phpize commend not found
Install phpize before installing PHP JSON
This can be installed in yum
Yum-y install php-devel
If php json installation cannot be completed, it indicates that your compilation tool is faulty. just install it.
Yum-y install autoconf
Yum-y install automake
Yum-y install libtool
Run phpize
(Succeeded)
5 ../configure
6. make
7. makeinstall
8. check whether php json is successfully installed.
Find/-name '* json. so'
./Usr/lib/php/modules/json. so
It indicates that
9. modify php. ini
I include a folder/etc/php. d in php. ini.
Add a json. ini file to this file.
Vim json. ini
The content is as follows:
Extension = json. so
10. restart the service.
11. you will see in phpinfo ()
Json support enabled
Json version
The above are all the steps for installing php json.
Unzip wget http://www.aurore.net/projects/php-json/ 2. unzip tar xvjf php-json-ext-1.2.0.tar.bz2 3. enter directory cd php-json-ext-1.2.0 4. initialize PHP environment phpize report...