How to install PHPJSON in centos environment _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
Tags php json
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.