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
Release: 2024-11-20 15:05:20
Original
727 people have browsed it

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
Copy after login

PHP 8 or Later:

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

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
Copy after login
  1. Restart the Apache server:
sudo systemctl restart apache2
Copy after login
  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!

source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template