Truemag

  • Categories
    • Tips And Tricks
    • Internet
    • PHP
    • Javascript
    • CSharp
    • SQL Server
    • Linux
  • Lastest Videos
  • Our Demos
  • About
  • Contact
  • Home
  • Write With Us
  • Job Request
Home Linux CentOS install PHP Json Extension by using PECL

CentOS install PHP Json Extension by using PECL

This tutorial will show you steps to install PHP Json Extension on your Linux web server, this case is CentOS. This process is very fast and simple.

Here you go:

1. Login to SSH with your root account or who else can install stuff on your server.

2. Run command below:

[text] pecl install json
[/text]

Note: if you’re getting an error message likes: “-bash pecl command not found”, read this post will help you to solve the issue.

3. Enable Json extension in php.ini

Create a new file in /etc/php.d/ named json.ini with content below:

[text] ; Enable json extension module
extension=json.so
[/text]

4. Restart your apache server by command below:

[text] service httpd restart
[/text]

5. Test your work:

[text] php -r ‘var_dump(function_exists("json_encode"));’
[/text]

It should returns something like: bool(true)

That’s all, enjoy with PHP JSON Extension 🙂

Mar 8, 2011Hoan Huynh
centos -bash pecl command not foundChange or reset MySQL Root Account Password
You Might Also Like:
  • centos -bash pecl command not found
  • Install LAMP (Apache, MySQL and PHP in Linux) on CentOS
  • C# Check File Extension In Array Of Valid Extension
  • How to install PHP extension without re-compiling PHP
  • Install CentOS in VirtualBox
  • Most Popular Video And Photo File Extension
  • C# Get File Extension Without Sub String Or Split Function
  • Ubuntu CentOS Clear Filesystem Memory Cache
  • How To Track Website With Multiple Google Analytisc Accounts
  • sphinx install error access is denied
Hoan Huynh

Hoan Huynh is the founder and head of 4rapiddev.com. Reach him at [email protected]

11 years ago Linuxapache, CentOS, function_exists, httpd, Json Extension, pecl, php.ini, var_dump281
0
GooglePlus
0
Facebook
0
Twitter
0
Digg
0
Delicious
0
Stumbleupon
0
Linkedin
0
Pinterest
Most Viewed
PHP Download Image Or File From URL
24,451 views
Notepad Plus Plus Compare Plugin
How To Install Compare Text Plugin In Notepad Plus Plus
21,832 views
Microsoft SQL Server 2008 Attach Remove Log
Delete, Shrink, Eliminate Transaction Log .LDF File
17,650 views
JQuery Allow only numeric characters or only alphabet characters in textbox
14,985 views
C# Read Json From URL And Parse/Deserialize Json
11,712 views
4 Rapid Development is a central page that is targeted at newbie and professional programmers, database administrators, system admin, web masters and bloggers.
Recent Posts
  • Things to Learn about Installingderm Loan Type S
  • Online Photo Editor – Free Photoediting Software
  • A Guide to Finding the Best Paper Sellers
  • Photoediting in Home Isn’t Hard to Do!

  • Free Photo Editor Online
Categories
  • CSharp (45)
  • Facebook Graph API (19)
  • Google API (7)
  • Internet (87)
  • iPhone XCode (8)
  • Javascript (35)
  • Linux (27)
  • MySQL (16)
  • PHP (84)
  • Problem Issue Error (29)
  • Resources (32)
  • SQL Server (25)
  • Timeline (5)
  • Tips And Tricks (141)
  • Uncategorized (647)
Recommended
  • Custom Software Development Company
  • Online Useful Tools
  • Premium Themes
  • VPS
2014 © 4 Rapid Development