• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1794
  • Last Modified:

How to activate PHP extensions on Linux Centos

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
phparmy
Asked:
phparmy
  • 3
  • 2
3 Solutions
 
fosiul01Commented:
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
 
phparmyAuthor Commented:
php_zip extension now i want. how can i restarn my apache in linux
0
 
fosiul01Commented:
service httpd restart  


0
 
phparmyAuthor Commented:
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
 
fosiul01Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now