[mythtv-users] Mythweb PHP issue after upgrade from Ubuntu 16.04 to 18.04

glen glenb at glenb.us
Wed Oct 10 17:27:51 UTC 2018


On Wed, 2018-10-10 at 10:15 -0700, Bob Sully wrote:
> On Tue, 2018-10-02 at 15:48 -0700, Bob Sully wrote:
> > On Tue, 2018-10-02 at 02:07 -0700, Bob Sully wrote:
> > > > On 02/10/18 07:04, Bob Sully wrote:
> > > > > Hi all -
> > > > Upgraded Myth from 0.28 to 0.29 on Ubuntu 16.04
> > > > lastweek.Noproblems, completely painless.Upgraded the OS to
> > > > 18.04 tonight.Mostly painless (a lot betterthanthe last one,
> > > > from 14.04 to16.04!)However, I'm running into issues with
> > > > Mythweb andPHP,apparentlysince 18.04 is using 7.2. I have
> > > > already enabledthe 7.2modules inapache2. I also copied the
> > > > mysqli.inifilefrom/etc/php/7.0/apache2/conf.d/
> > > > to/etc/php/7.2/apache2/conf.d/andrestarted apache2.I'm getting
> > > > this error in Mythweb:Fatal Error!!NoTrans: You aremissing a
> > > > php extension for mysqlinteraction.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:UserErrorerror string: !!NoTrans: You are missing a php
> > > > extensionformysqlinteraction. Please install php-mysqli
> > > > orsimilar!!filename:/usr/share/mythtv/mythweb/includes/php_vers
> > > > ion_check.phperrorline: 20However:$ sudo apt install php-
> > > > mysqliReading package lists...DoneBuilding dependency
> > > > treeReading stateinformation... DoneNote,selecting 'php7.2-
> > > > mysql' instead of 'php-mysqli'php7.2-mysql isalready the newest
> > > > version (7.2.10-0ubuntu0.18.04.1).0 upgraded,0 newly installed,
> > > > 0 to remove and 1not upgraded.What am Imissing?Thanks in
> > > > advance!When I did the in-place upgrade from16.04 to 18.04
> > > > thefollowingresolved the mythweb issue :sudo
> > > > mv/etc/php/7.0/apache2/conf.d/20-
> > > > mythweb.ini/etc/php/7.2/apache2/conf.d/20-mythweb.inisudo
> > > > a2enmodphp7.2 #tosort out apache2sudo systemctl restart
> > > > apache2I did nothave to do anything with 20-mysqli.iniMike
> > > 
> > > Hi, Mike - I had seen your post to that effect previously,
> > > andhadcopied the 20-mythweb.ini file to
> > > /etc/php/7.2/apache2/conf.d/-should have mentioned that also.That
> > > didn't solve this problem,though.Thanks, though!
> > > --
> > > Regards,Bob_______________________________________________mythtv-
> > > users mailing listmythtv-users at mythtv.org
> > > http://lists.mythtv.org/mailman/listinfo/mythtv-users
> > > http://wiki.mythtv.org/Mailing_List_etiquette
> > > MythTV Forums: https://forum.mythtv.org
> > > 
> > 
> > is mysqli uncommented in php.ini ?
> > Glen:It was in /etc/php/7.2/apache2/php.ini but not
> > in/etc/php/7.2/cli/php.ini.I went ahead and uncommented it and
> > restarted - still no change.<scratching my head>Thanks
> > i'm using arch linux, so how ubuntu configures apache and php
> > isdifferent. for me i just used the git for mythweb, and followed
> > thiswikihttps://wiki.archlinux.org/index.php/MythWeb and it has
> > alwaysworked. i would still take a look at the arch wiki and see if
> > you canrelate it back to ubuntu. also have a look and double check
> > theopen_basedir folders in the php.ini and make sure everything you
> > arepointing to is in the list. i hope something in there helps you
> > get itwork
> 
> Hi, Glen - thanks
> Mythweb is already set up as per the wiki.  However, open_basedir in
> php,ini is commented out.  Never have set it before.  Which directory
> should it be set to, if used?
> This is driving me nuts.  The mysqli extension *is* being loaded, as
> when I uncomment the "extension = mysqli" line in both
> /etc/php/7.2/cli and /etc/php/7.2/apache2, php --version tells me
> that the module has already been loaded.
> Thanks -Bob_______________________________________________mythtv-
> users mailing listmythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org

bob, the mythweb wiki for arch i gave you above tells you, but it would
depend on your setup; the wiki has:open_basedir =
/srv/http/:/home/:/tmp/:/usr/share/pear/:/var/lib/mythtv/mythweb:/usr/s
hare/mythtv/

again this is the arch wiki for it, so the /srv/http would have to
change to where your apache is pointing to server pages at the root
dir, so i would change that and include everything else and start
there. for some reason i also have /usr/share/mythtv/bindings/php  i am
not sure when i did that. but mine has always worked fine. maybe this
will help. without and open_basedir i don't think mythweb would work
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20181010/c4a212cf/attachment.html>


More information about the mythtv-users mailing list