new to PHP. Installed WordPress (currently running latest version), and noticed I couldn't manipulate image sizes in the WP admin. Googling suggested that I needed GD installed.
I'm on a CentOS VPS that's only running my blog. While I would rather not crash it, I do take some risks in trying to learn.
First thing I did was yum install php-gd
, which gave me:
Error: Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-gd-5.1.6-27.el5_5.3.i386 (base)
I had then found a link (and I'm sorry, but I can't find it again) that suggested doing:
rpm -e --justdb --nodeps php-common
Did that, and then did yum install php-gd
again. This time it worked (w00t!).
But when I do a php -m
, I get:
PHP Warning: PHP Startup: dbase: Unable to initialize module
Module compiled with module API=20050922
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
I've restarted Apache, and I see the same error in error_log during startup.
Unfortunately I'm a bit out of my league at this point. Well, I have been, but up until now have been willing to swing wildly at anything. Hope I've given enough information (and not too much). If anybody has any thoughts, I'd appreciate hearing 'em. What can I do at this point to get GD running properly?
Ah, one last bit... php --version
gives me:
PHP Warning: PHP Startup: dbase: Unable to initialize module
Module compiled with module API=20050922
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP 5.3.6 (cli) (built: May 16 2011 19:18:00)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
yum remove php-gd
, restarted Apache, and still see the same behavior :\