I have been struggling with this error for quite sometimes and I am wondering if someone could help me get this running
I have
JavaScript
x
php -v 7.2.24
mysql -v 8.0.21
Apache 2.4.37
redhat 8.4
it keeps giving me the same error, I have removed and reinstalled php or mysql but didnt solve the issue. I also found other posts and i let the php.ini to have extension=mysqli
still the same error.
I tried to have a index.php to the DNS and it shows that there is not any mysql section
any idea?
Advertisement
Answer
Probably, you need to install the MySQL extension for PHP:
JavaScript
# yum install php-mysql
Then restart Apache
JavaScript
# service httpd restart