LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Installing PHP extensions (https://www.linuxquestions.org/questions/linux-server-73/installing-php-extensions-664553/)

dipuasks 08-22-2008 05:23 AM

Installing PHP extensions
 
Hi,

I have installed installed Apache 2.2.9 + php 5.2.6 on a CentOS 4 server. Now I want to install some php extensions. I don't know how to do that for linux. I know about php.ini and extension_dir, but where to find the .dll & .so files? I see an ext directory with the downloaded php-5.2.6.tar.gz, inside that I see all extension directories but those are source codes. How to get them installed in php? I don't want to recompile.

Please help. I googled a lot but helpless.



--Dipu
--------------
ou know, windows didn't get that bad over night! It took fifteen years of careful development!

trickykid 08-22-2008 09:47 AM

Perhaps you're referring to PHP additional modules? Linux doesn't use dll files, that's Windows. If you are looking for extensions or modules, those are usually installed with PEAR.

dipuasks 08-22-2008 10:03 AM

Yeah I heard that word "PEAR" while googling but no ideas how to go with that. Can you please guide me installing(step by step) one extension say "mcrypt", so that I can do the rest?

--Dipu
--------------
You know, windows didn't get that bad over night! It took fifteen years of careful development!

trickykid 08-22-2008 10:39 AM

It's usually as easy as:

Code:

pear install <package-name>
That's if pear is already installed. Check out http://pear.php.net for more info. Good online manual on how to install and use here: http://pear.php.net/manual/en/


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