Trying to install pdo_mysql for Magento but get stuck :-(

webguy

Verified User
Joined
Apr 13, 2005
Messages
41
Location
Best, Netherlands
Hi all,

I'm trying to configure my fedora core 5 server to use pdo-mysql for the Magento eCommerce application.

I am using Custombuild on a Fedora Core 5 machine.
I have PHP 5.2.5 running with MySQL 5.

Now I need PDO-MYSQL.
What I did was the following:

pecl download pdo
tar xvzf PDO-1.0.3.tgz
cd PDO-1.0.3
./configure
make
make install
cd ..
pecl download pdo_mysql
tar xvzf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
./configure
make
make install
cd ..

This all seemed to have gone ok.

I now have the following:

ls -l /usr/local/lib/php/extensions/no-debug-non-zts-20060613

total 368
-rwxr-xr-x 1 root root 124017 Jan 2 15:19 pdo_mysql.so
-rwxr-xr-x 1 root root 238008 Jan 2 14:52 pdo.so

Now my question is: how to configure this in
/usr/local/directadmin/custombuild/configure/ap2/configure.php5 ?

I have tried several settings. The last one I have now is:

#!/bin/sh
./configure \
--with-apxs2 \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-mysqli=/usr/bin/mysql_config \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-mbstring \
--enable-pdo \
--with-pdo-mysql=shared

But that doesn't seem to work.

Who can tell me how to setup the configure.php5 in the correct way?

Thanks,
Rene
 
I would like to know this aswell, Magento eCommerce is soon to become stable and it looks good.
 
I did it like this

hi!

I have this:
Apache 2.2.6
DirectAdmin 1.31.1
MySQL 5.0.45
PHP 5.2.5

I was also driving myself mad as i'm not really an expert, but after reading in english and spanish here and ther ei got it working, i dont know if its the best way but works:

In your shell:
pecl install pdo

Here you download the extension, but still you have to install the driver for mysql:

Again in your shell:
PHP_PDO_SHARED=1 pecl install pdo_mysql

After this, you'll have edit the php.ini and add these things:

Find this line: ; Directory in which the loadable extusr/lib/php/modules/extensions (modules) reside.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
in my case this was the directory (/usr/local/lib/php/extensions/no-debug-non-zts-20060613/), to make yourself sure you can run the comand: find / -name pdo*.so

Also you will have to add this in the php.ini, I added them before the dll list

extension=pdo.so
extension=pdo_mysql.so

After saving my php.ini, i logged in to my da as admin, restarted mysql (stop, start) and restarted http.

And magento went totally fine ...

Good luck!!
 
When ever I try to find that line, it says it is not found.
When I add that in, it still doesn't work.

What should I do?
 
Hello, I get an error doing pecl install pdo i shell.
make: *** [pdo.lo] Error 1
ERROR: `make' failed
My os is CentOS 5.
 
Back
Top