Hi, I would like to install PIWIK (Piwik is an open source alternative to Google Analytics) on the LAMP appliance.
One of the Piwik requirements is to have installed the PHP extensions pdo and pdo_mysql.
How can I install them on the LAMP appliance?
Thanks for your help!
Replies (8)
Most instructions on TurnKey site assume you are root
Reply 1What I found Googling for "Ubuntu pdo pdo_mysql"
Reply 2apt-get install php-pear php5-dev libmysqlclient15-dev pecl install pdo pecl install pdo_mysql
You might also need...
Reply 3extension=pdo.so extension=pdo_mysql.soAnd ofcourse, don't forget to restart apache2.
I'm not sure
Reply 4But from a quick google it seems they are a default part of php (since v5.1 - TKL v11.x has v5.3). I would assume that it is enabled by default, but if not then I imagine you just need to add it to the php.ini file (see Alon's post above).
Probably best to ask on Ubuntu forums
Reply 5Turnkey is now based on Debian and whilst they are close, they're not the same... You may get lucky, but I doubt you'll get an answer here... Sorry
So you're running the TurnKey CodeIgniter appliance in VBox?
Reply 6Or similar? Probably best to start a new thread as it's not really relevant here...
Also please provide a few more details about your setup, e.g. clarify that you are running in VirtualBox, if not what? What image (e.g. ISO or VMDK)?
If you didn't mean the TurnKey Linux CodeIgniter appliance then you're in the wrong place... This is the TurnKey Linux forums...
TurnKey is based on Debian (v16.x = Debian 10/Buster)
Reply 7FYI TurnKey is based on Debian (v16.x based on Debian 10/Buster), so I googled "install mssql php debian 10" and I found a post in the Microsoft docs and what appears to be exactly the same thing on Microsoft's GitHub.
Please note that TurnKey Nginx-PHP-FastCGI has PHP 7.3 pre-installed (from the official Debian repositories). Unless you explicitly need a newer version of PHP you are strongly advised to stick with the version provided by Debian.
Also, it's generally considered poor forum etiquette to "necro-post" (i.e. post on really old threads). As a general rule, it's best to start your own thread.
On NGINX PHP FastCGI
Reply 8how to install pdo_sqlsrv extension on nginx php fastcgi?
Also FWIW this thread is quite old, so may not still be 100% relevant.