LAMP stack issue

Bob Jonkman bjonkman at sobac.com
Wed Feb 28 17:50:36 UTC 2018


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You probably need to install the mysqli &c. for PHP packages. Both
"php-mysqli" and "php-mysqlnd" are virtual packages, so you can
probably do this:

  sudo apt-get install php-mysqli php-mysqlnd

But everything you need is supposed to be in php-mysql so this might
be better:

  sudo apt-get install php-mysql

or possibly

  sudo apt-get install php5-mysql


I've run into this too, and I recall installing
php(version)-mysqli-(build) to fix it, but since upgrading the OS
those packages seem to have been replaced with the catchall php-mysql
package.

Hope this helps. Let us know what fixes the problem for you!

- --Bob.


On 2018-02-28 02:27 AM, Noah Tellin wrote:
> I am getting error messages on trying to install phpmyadmin that 
> claim mysqli, mysqlnd and the like are not installed or
> configured. I have purged and reinstalled already. I've added the
> json extension in the php.ini file. I have been at the login for 
> phpmyadmin only to by stymied by the 1045 error, and nothing seems 
> to fix that.
> 
> Any suggestions?
> 
> Currently I am at this when trying to reinstall phpmyadmin or run 
> dpkg to reconfigure:
> 
> Creating config file /etc/php5/mods-available/readline.ini with
> new version cp: cannot create regular file 
> ‘/etc/php5/mods-available/readline.ini’: No such file or directory
>  dpkg: error processing package php5-readline (--configure): 
> subprocess installed post-installation script returned error exit 
> status 1 dpkg: dependency problems prevent configuration of 
> phpmyadmin: phpmyadmin depends on php5-mysql | php5-mysqli | 
> php5-mysqlnd; however: Package php5-mysql is not installed.
> Package php5-mysqli is not installed. Package php5-mysqlnd is not 
> configured yet.
> 
> dpkg: error processing package phpmyadmin (--configure):
> dependency problems - leaving unconfigured Processing triggers for 
> libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.23) ... Errors were 
> encountered while processing: php5-mysqlnd php5-readline phpmyadmin
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> PHP info (selected):
> 
> SystemLinux 2J6RFV1 4.4.0-116-generic #140~14.04.1-Ubuntu SMP Fri 
> Feb 16 09:25:20 UTC 2018 x86_64 Build DateFeb 8 2018 21:59:28 
> Server APIApache 2.0 Handler Virtual Directory Supportdisabled 
> Configuration File (php.ini) Path/etc/php5/apache2 Loaded 
> Configuration File/etc/php5/apache2/php.ini Scan this dir for 
> additional .ini files/etc/php5/apache2/conf.d
> 
> extension_dir/usr/lib/php5/20121212/usr/lib/php5/20121212 
> file_uploadsOnOn highlight.comment#FF8000#FF8000 
> highlight.default#0000BB#0000BB highlight.html#000000#000000 
> highlight.keyword#007700#007700 highlight.string#DD0000#DD0000 
> html_errorsOnOn ignore_repeated_errorsOffOff 
> ignore_repeated_sourceOffOff ignore_user_abortOffOff 
> implicit_flushOffOff include_path.:/usr/share/php:/usr/share/pear
> 
> json supportenabled json version1.3.2 JSON-C version (bundled)0.11
> 

- -- 
Bob Jonkman <bjonkman at sobac.com>          Phone: +1-519-635-9413
SOBAC Microcomputer Services             http://sobac.com/sobac/
Software   ---   Office & Business Automation   ---   Consulting
GnuPG Fngrprnt:04F7 742B 8F54 C40A E115 26C2 B912 89B0 D2CC E5EA

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Ensure confidentiality, authenticity, non-repudiability

iEYEARECAAYFAlqW6+UACgkQuRKJsNLM5eqmHgCgttDA8OBM8LD40R/rhbP0+gZF
SlEAn3Jl6MbAdred3ettKtK3bX2+83Jw
=LFkk
-----END PGP SIGNATURE-----



More information about the ubuntu-ca mailing list