Solved

How to activate PHP extensions on Linux Centos

Posted on 2008-10-30
5
1,739 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
  • 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now