Install MySQL on PHP Server - savannahc502/SavC-TechJournal-SEC260 GitHub Wiki
Introduction
Installing MySQL on an Apache PHP Server (LAMP Stack). This will be done on our Rocky Web Server.
Install MySQL
yum install php php-mysqlnd
yum install mariadb-server mariadb
systemctl start mariadb
systemctl enable mariadb.service
mysql_secure_installation
sudo systemctl restart httpd.service
Test PHP processing on Apache
sudo vi /var/www/html/info.php
In that new file:
<?php
phpinfo();
?>
Verify that PHP is working: