LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Add PHP Extensions In Debian 5 (https://www.linuxquestions.org/questions/linux-server-73/add-php-extensions-in-debian-5-a-780554/)

risoknop 01-07-2010 09:50 AM

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.

dreamwalking 01-09-2010 06:55 AM

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


All times are GMT -5. The time now is 04:53 AM.