[mythtv-users] Mythweb PHP issue after upgrade from Ubuntu 16, 04 to 18.04

Mike Bibbings mike.bibbings at gmail.com
Tue Oct 2 06:23:00 UTC 2018


On 02/10/18 07:04, Bob Sully wrote:
> Hi all -
>
> Upgraded Myth from 0.28 to 0.29 on Ubuntu 16.04 last week.  No 
> problems, completely painless.
>
> Upgraded the OS to 18.04 tonight.  Mostly painless (a lot better than 
> the last one, from 14.04 to 16.04!)
>
> However, I'm running into issues with Mythweb and PHP, apparently 
> since 18.04 is using 7.2.  I have already enabled the 7.2 modules in 
> apache2.  I also copied the mysqli.ini file from 
> /etc/php/7.0/apache2/conf.d/ to /etc/php/7.2/apache2/conf.d/ and 
> restarted apache2.
>
>
> I'm getting this error in Mythweb:
>
> Fatal Error
> !!NoTrans: You are missing a php extension for mysql interaction. 
> Please install php-mysqli or similar!!
>
>     datetime:  2018-10-01 22:40:43 (PDT)
>     errornum:  256[rcs at vader: ~]$ sudo apt install php-mysqli
>   error type:  User Error
> error string:  !!NoTrans: You are missing a php extension for mysql 
> interaction. Please install php-mysqli or similar!!
>     filename: /usr/share/mythtv/mythweb/includes/php_version_check.php
>   error line:  20
>
>
> However:
> $ sudo apt install php-mysqli
>
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Note, selecting 'php7.2-mysql' instead of 'php-mysqli'
> php7.2-mysql is already the newest version (7.2.10-0ubuntu0.18.04.1).
> 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
>
> What am I missing?
> Thanks in advance!
>
When I did the in-place upgrade from 16.04 to 18.04 the following 
resolved the mythweb issue :

sudo mv /etc/php/7.0/apache2/conf.d/20-mythweb.ini 
/etc/php/7.2/apache2/conf.d/20-mythweb.ini
sudo a2enmod php7.2 #to sort out apache2
sudo systemctl restart apache2

I did not have to do anything with 20-mysqli.ini

Mike



More information about the mythtv-users mailing list