Official NuTyX forums

Help => General => Topic started by: rsmereka on Mon Jul 08 20:35:25 2019

Title: [FIXED]LAMP Cannot Find PDO Mysql Shared Objects
Post by: rsmereka on Mon Jul 08 20:35:25 2019
Hi,

I am currently building a i386 desktop from version 11.1. Everything is going ok except that I cannot locate the PDO MySQL driver for Php. There are no packages in cards for this and there are no files on disk.

Where may I find the PDO driver for MySQL?

TIA
Title: Re: LAMP Cannot Find PDO Mysql Shared Objects
Post by: Thierry on Tue Jul 09 07:27:42 2019
Hello.

Probably the php package is not compile with the PDO MySQL driver in such a case you would need to recompile php package.
I think you can find out what are the NuTyX php package features by entering a specific command into a index.php file for example.

I'm not a php specialist,  they have a very good online documentation.

https://www.php.net/manual/en/function.phpinfo.php

And as you probably knows already, NuTyX is inspired by BLFS, so all the BLFS doc applies:

php:
http://www.linuxfromscratch.org/blfs/view/svn/general/php.html

apache:
http://www.linuxfromscratch.org/blfs/view/svn/server/apache.html

mariadb (replacement of mysql):
http://www.linuxfromscratch.org/blfs/view/svn/server/mariadb.html

Let me know via https://github.com/NuTyX/packages-i686/issues

Regards


Title: Re: LAMP Cannot Find PDO Mysql Shared Objects
Post by: rsmereka on Tue Jul 09 15:06:52 2019
Hello,

That's is what I concluded. I have successfully set up and ran a 'info.php' file using the 'phpinfo()' function as you described which is what told me that the SQLite PDO driver was already present but no other PDO driver. I have the full LAMP stack implemented on the i386 NuTyX PC minus the missing PDO driver.

I have been actively building LFS/BLFS for some time. I have an LFS 8.4 i386 PC with the full LAMP stack including Php with the PDO drivers for MySQL and SQLite. I am thinking that all I would need to do is transplant the shared library (.so) from the LFS PC to my NuTyX PC and modify the php.ini (along with running 'ldconfig'). If that does not work, I can compile Php from scratch on the NuTyX PC using the LFS/BLFS procedure. The only complicating factor is that the basic NuTyX distribution does not include the compiler or 'make', 'wget' and 'tar'.

I opened a Github i686 issue regarding this.

Thanks for your advice and for listening,

Rick
Title: Re: LAMP Cannot Find PDO Mysql Shared Objects
Post by: Thierry on Tue Jul 09 15:54:58 2019
You do a:

Code: [Select]
get cards.devel
and add “group devel” into your /etc/cards.conf

At the next:

Code: [Select]
sudo cards upgradeAll the missing devel packages will be added and installed.

You will then be ready to compile without the need of a chroot

Then to continue enjoying NuTyX, I suggest you read the online doc


Send from my phone
Title: [FIXED]Re: LAMP Cannot Find PDO Mysql Shared Objects
Post by: rsmereka on Mon Jul 15 15:56:00 2019
Apache modification confirmed,

PDO Mysql now installed.

Thank you,
Rick
Title: Re: LAMP Cannot Find PDO Mysql Shared Objects
Post by: Thierry on Mon Jul 15 16:49:12 2019
thanks  for adding [fixed] in your title