Solved

How to activate PHP extensions on Linux Centos

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SMB share across internet 15 65
php help 34 58
Need to remove %20 from url in get 17 36
Seeking WordPress plugin for logged in users to be able to upload required documents 6 65
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

830 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