JustinK101 Posted December 28, 2006 Share Posted December 28, 2006 Currently I have PHP 5.1.6 installed on CentOs 4.4, and I am looking for an easy way to install the following extensions:php_gd2.dllphp_mcrypt.dllphp_mssql.dllphp_json.dlllibpdf_php.dllCan I use yum or update2date? Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/32080-how-to-install-extensions-centos/ Share on other sites More sharing options...
wildteen88 Posted December 28, 2006 Share Posted December 28, 2006 Your will need to recompile PHP in order to enable those extensions, example for the gd library:add the --with-gd option when compiling PHP.For the others you will do the same/something similar. Go to php.net for more info. Quote Link to comment https://forums.phpfreaks.com/topic/32080-how-to-install-extensions-centos/#findComment-148881 Share on other sites More sharing options...
JustinK101 Posted December 28, 2006 Author Share Posted December 28, 2006 This is absolutely insane, I never compiled. Reading over the instructions on php.net made my head spin. I simply did a update2date command and it did everything for me, there must be an easier way to install some extensions. Quote Link to comment https://forums.phpfreaks.com/topic/32080-how-to-install-extensions-centos/#findComment-148888 Share on other sites More sharing options...
wildteen88 Posted December 29, 2006 Share Posted December 29, 2006 I am not experienced with unix based systems however I do know in order to get extensions loaded you have to recompile PHP. Quote Link to comment https://forums.phpfreaks.com/topic/32080-how-to-install-extensions-centos/#findComment-149297 Share on other sites More sharing options...
JustinK101 Posted December 29, 2006 Author Share Posted December 29, 2006 This is insane, I download mcrypt, and extracted it. I cant figure out how the heck to get it installed into php though. There are a dozens of files, such as mkinstalldirs, Makefile.in, Makefile.am, install-sh, configure, config.guess, and a whole bunch more. Does anybody know how to compile this thing?In windows its easy, simply drop the dll in the extensions directory and add the extension to your php.ini. Damn linux, its nice, but often times so cryptic and hard to use, honestly shouldnt be this hard. Quote Link to comment https://forums.phpfreaks.com/topic/32080-how-to-install-extensions-centos/#findComment-149535 Share on other sites More sharing options...
the_oliver Posted January 1, 2007 Share Posted January 1, 2007 if your using centOS you can do it via 'yum'.Have you used this before? Makes life very simple...First you neet to run something like: rpm --import /usr/share/rhn/RPM-GPG-KEY* in a terminal as root. (THIS IS NOT THE CORRECT ONE!!).Ones this is working just login in as root any type 'yum search php-whatever' or 'yum search whatever you wish to install' then find the one you like from the list produced. 'yum install whateveryoufound' . . . . . Much simpler!! Quote Link to comment https://forums.phpfreaks.com/topic/32080-how-to-install-extensions-centos/#findComment-150809 Share on other sites More sharing options...
JustinK101 Posted January 10, 2007 Author Share Posted January 10, 2007 I have learned much:untar the thingrun the following:./configure makemake installMost of time you get horrible warnings and errors in ./configure saying you are missing dependent packages, its a real pain in the butt, just cross your fingures and hope for the best. Nobody ever said Linux was eaiser to use then windows. Quote Link to comment https://forums.phpfreaks.com/topic/32080-how-to-install-extensions-centos/#findComment-157193 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.