Home >Database >Mysql Tutorial >Why is phpMyAdmin Failing to Start Due to a Missing mysqli Extension on Ubuntu 12.04?

Why is phpMyAdmin Failing to Start Due to a Missing mysqli Extension on Ubuntu 12.04?

Mary-Kate Olsen
Mary-Kate OlsenOriginal
2024-11-20 15:05:20739browse

Why is phpMyAdmin Failing to Start Due to a Missing mysqli Extension on Ubuntu 12.04?

Extension mysqli Missing: Troubleshooting phpMyAdmin on Ubuntu 12.04

Problem: Unable to start phpMyAdmin due to the missing mysqli extension, despite having installed apache2, php5, mysql, and phpmyadmin.

Solution:

PhpMyAdmin now requires the mysqli extension, a replacement for the mysql extension used in older versions. To resolve this issue, follow these steps:

PHP 7.3 or Later:

  1. Install the php7.3-mysqli package using:
sudo apt-get install php7.3-mysqli

PHP 8 or Later:

  1. Install the php8.0-mysqli package using:
sudo apt-get install php8.0-mysqli

These packages include both the legacy mysql extension and the mysqli extension.

  1. Add the following line to your php.ini file to enable the mysqli extension:
extension=mysqli.so
  1. Restart the Apache server:
sudo systemctl restart apache2
  1. Authenticate and press Enter if prompted.
  2. Clear your browser cache for good measure.

These steps should allow you to successfully run phpMyAdmin using the mysqli extension.

The above is the detailed content of Why is phpMyAdmin Failing to Start Due to a Missing mysqli Extension on Ubuntu 12.04?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn