LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-07-2010, 09:50 AM   #1
risoknop
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
Add PHP Extensions In Debian 5


Hello,

I have installed apache 2 and php 5 on my server. It works great but what I need is to add few extensions to PHP so it supports my website:

PDO (with MySQL and PostgreSQL driver)
curl
GD2 or Imagick

How can I do that?

I have located my php.ini file. It's in the /etc/php5/apache2.php.ini. I have used nano /etc/php5/apache2/php.ini to open it and I searched for "curl", "pdo" etc but there is no mention of them in the php.ini file. No commented lines with these extensions.

Will it work if I just add this on the end of my php.ini?

extension=php_pdo.dll
extension=php_pdo_mysql.dll
extension=php_pdo_pgsql.dll

Sorry if this is stupid question, I'm pretty new to server Unix.
 
Old 01-09-2010, 06:55 AM   #2
dreamwalking
Member
 
Registered: Dec 2005
Distribution: Slackware 14
Posts: 106

Rep: Reputation: 31
For the PDO, I think all you have to activate it is to add in your php.ini the
extension=pdo.so
line.

For curl and imagemagick extensions, are the modules installed?

Quote:
sudo apt-get install php5-curl php5-imagick
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox add file extensions powadha Linux - Software 2 01-28-2007 10:12 AM
Add/Remove php service (Debian GUI) malesandro Linux - Software 1 12-22-2005 10:03 PM
php-devel & PHP extensions EHCanadian Mandriva 0 06-23-2005 06:06 PM
add compile-time extensions to php built from a package chr15t0 Slackware 2 02-24-2005 04:17 PM
php AND extensions kaiozero Linux - Software 1 05-30-2002 05:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration