Solved

How to activate PHP extensions on Linux Centos

Posted on 2008-10-30
5
1,760 Views
Last Modified: 2013-12-13
Hello,

iam using putty program to connect my ssh. I know some linux commands basic ones. ls,cd,exit exc... but now i have to make active some php extensions.

i know how to do in windows .windows/php.ini remove ; from extesinon name and restart apache server.

But i dont know how can i do in linux centos 5. Please Help. Thanks.
0
Comment
Question by:phparmy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 29

Assisted Solution

by:fosiul01
fosiul01 earned 500 total points
ID: 22839506
in centos, php.ini is locate in /etc/

or you can do : locate php.ini

then vi php.ini

then enable those extenstion

but if you try to enalbe mysql entenstion then you have to do some other things
let me know
0
 

Author Comment

by:phparmy
ID: 22839517
php_zip extension now i want. how can i restarn my apache in linux
0
 
LVL 29

Assisted Solution

by:fosiul01
fosiul01 earned 500 total points
ID: 22839532
service httpd restart  


0
 

Author Comment

by:phparmy
ID: 22839667
under etc there are 4 php.ini file.
1.php.ini
2.php.ini.rmpne
3.php.ini.saved_by_
4.php.ini.saved_by_psa

PSA means PLESK CONTROL PANEL i think.

How can i edit. php.ini file and then save.
0
 
LVL 29

Accepted Solution

by:
fosiul01 earned 500 total points
ID: 22839686
you need vim editor or nano

vi php.ini

then press  I to insert

finish your edit

then pres ESC
then :wq

it will save the changes and quit
0

Featured Post

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question