I am trying to install Moodle 3.8 on AWS light sail server, I install Apache2, Mysql 5.7 and PHP 7.1 on the server successfully when I install moodle on the server using the IP address I got an Error for PHP.ini file
Error: database driver problem detected
The site administrator should verify the server configuration
PHP has not been properly configured with the MySQLi extension for it to communicate with MySQL. Please check your php.ini file or recompile PHP.I enable the Mysqli extension in php.ini file /etc/php/7.1/apache2/php.ini and /etc/php/7.1/cli/php.ini but still, it gives the same error
Please help me, I reinstall all 2 to 3 times but same error is given,I gave all priveledges to DB user for moodle database I follow each step for moodle installation.
Please help me, Thank you in advance