What are the steps to install the mysqli extension on Ubuntu/Debian?

Responsive Ad Header

Question

Grade: Education Subject: Support
What are the steps to install the mysqli extension on Ubuntu/Debian?
Asked by:
68 Viewed 68 Answers

Answer (68)

Best Answer
(302)
On Ubuntu/Debian, use the following commands: `sudo apt update` followed by `sudo apt install php-mysqli`. After installation, restart your web server (e.g., `sudo systemctl restart apache2` or `sudo systemctl restart nginx`) and PHP-FPM if you're using it (`sudo systemctl restart php[version]-fpm`).