2018-11-29

PDOException “could not find driver”

ashley@shop1:/etc$ sudo a2enmod php7.0
Considering dependency mpm_prefork for php7.0:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php7.0:
Enabling module php7.0.
To activate the new configuration, you need to run:
  systemctl restart apache2
ashley@shop1:/etc$ systemctl restart apache2
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'apache2.service'.
Authenticating as: ashley,,, (ashley)
Password:
==== AUTHENTICATION COMPLETE ===
ashley@shop1:/etc$


Serveral months ago, I performed a distribution upgrade to my debian server at home.
It hosted an RSS aggregator (Tiny Tiny RSS) that I started using after Google dropped Reader.
After the upgrade, I got a PDO Exception error using the web interface for the aggregator. I did some searching at the time but had intended to move the aggregator to a Raspberry-Pi anyways. I left the MySQL (now MariaDB after the distribution upgrade) on the original host and everything worked fine.

Monday, I had need to create an invoice for some work I did for a client. I don't do a lot of side-gig at the moment so I hadn't used the invoicing (Simple Invoices) software for a couple of years. Low and behold, I was getting the same error. This time warranted a little extra effort.
Visited php - PDOException “could not find driver” - Stack Overflow

and invoicing system


Search
Visited How to Switch between Multiple PHP Version on Ubuntu – TecAdmin
7:59 am

Details


Search
Visited apt - How to remove php 5.6 - Ask Ubuntu
7:51 am

Details

Search
Visited 14.04 - How do I remove PHP 7 Completely? - Ask Ubuntu
7:51 am

Details

Search
Visited How to migrate PHP Code between versions 5 - 7 without rewriting ...
7:50 am

Details

Search
Searched for how to migrate from php 5 to php 7
7:49 am

Details

Location info

Search
Visited How to Check PHP Version: 3 Steps (with Pictures) - wikiHow
7:44 am

Details


Search
Searched for which version of php do i have
7:44 am

Details

Location info

Search
Visited PHP: Migrating from PHP 5.6.x to PHP 7.0.x - Manual
7:44 am

Details

Search
Visited php - PDOException “could not find driver” - Stack Overflow
7:42 am

Details

Search
Searched for php could not find driver
7:42 am

Details

Location info

Search
Visited The Simple Invoices Open Source Project on Open Hub
7:34 am

Details

Let's get a proper domain for this!

I created this blog to document some of the stuff I do (mostly as a reminder to myself but if it helps someone elsešŸ¤·). For some work I may ...