Question
What are the steps to install the mysqli extension on Ubuntu/Debian?
Asked by: USER3842
68 Viewed
68 Answers
Answer (68)
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`).