|
J.T. - 12 February 2009 10:29 AM Depending on which Linux distro, installing php extensions can be as easy as:
yum install mcrypt
yum install php-curl
yum install php-devel php-pear mysql-devel httpd-devel
pecl install pdo
Then add this to php.ini:
extension=pdo.so
extension=pdo_mysql.so
Partly from: http://karoshiethos.com/2008/07/24/installing-pdo_mysql-on-centos/
OK, here’s where it gets interesting:
I *did* install the PHP extensions pdo, pdo_mysql and curl (can’t remember what I typed, it was probably something with ‘apt-get’ as I’m on Debian - and it spewed out a lot of output to the screen, which I carefully looked through, and there were no errors or warnings).
Then I also *did* add those lines to the end of php.ini, so it now ends with this:
extension=pdo.so
extension=pdo_mysql.so
extension=curl.so
And ... I still got the same error message. (I also stopped and restarted my web server.)
Sleuthing around further, I suspect the following two things may also need to be fixed:
(1) My info.php page in the browser shows:
Configure Command
‘./configure’ ‘--enable-fastcgi’ ‘--enable-fpm’ ‘--with-mcrypt’ ‘--with-zlib’ ‘--enable-mbstring’ ‘--with-openssl’ ‘--with-mysql’ ‘--with-mysql-sock’ ‘--with-gd’ ‘--with-jpeg-dir=/usr/lib’ ‘--enable-gd-native-ttf’ ‘--without-sqlite’ ‘--disable-pdo’ ‘--disable-reflection’
Notice where it says ‘--disable-pdo’ - I guess that’s a problem.
But I can’t remember how I installed PHP the first time (and I’m leery of re-installing with minus the ‘--disable-pdo’ option, or maybe with some ‘--enable-pdo’ option - in case this might somehow disturb my existing apps that also use PHP, ie Drupal, Prestashop, etc.)
(2) In php.ini, there’s a line where it says:
extension_dir = “./”
so maybe I have to change the part between quotes to something like:
/usr/lib/php5/20060613+lfs
/usr/local/lib/php/extensions/no-debug-non-zts-20060613
but who am I to say? I’d rather have someone from Magento support tell me how to do this - and reassure me that I’m not going to blow my existing PHP apps out of the water by doing this.
Anyways, my main point is: everyone seems to know that Magento needs a few extra settings in PHP in order to be installed.
And I think Magento could really increase its user base faster if they put out a FAQ explaining how to handle these, ya know, “frequently asked questions” - instead of forcing us to seek out other e-commerce apps which actually have complete installation instructions.
In other words - configuring PHP should be included in the Magento installation instructions!
Anyways, maybe I’m a hopeless case - since in the interests of speeding up Magento (and my other PHP apps), I’m using also nginx + FastCGI + PHP-FPM (instead of Apache and Zend, which seems to be the standard setup for Magento).
Magento has a lot of good “buzz” surrounding it. Unfortunately I’m not enough of a PHP expert to be able to install it.
|