I have a Ubuntu 9.10 server. I have installed apache2 and php5 using the apt-get commands.

How does one install php extensions? Are there commands like apt-get to get them? Or should I manually look for the files on the php website and set them up in the php.ini?

More specifically, I need mcrypt, curl and gd.

Thanks

link|improve this question

feedback

2 Answers

up vote 3 down vote accepted

All you need to do is:

sudo apt-get install php5-mcrypt php5-curl php5-gd

If you need to check what is installed php-wise you can:

sudo dpkg --list | grep php
link|improve this answer
no need for sudo when doing: dpkg --list ;) – rkthkr Apr 15 '10 at 5:57
feedback

Additionally, you can review the available PHP extensions on your Debian/Ubuntu system by:

apt-cache search php|egrep ^php5-
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.