How to Install Apache Php Mysql in CentOS 8 Linux (Bisayang SysAd)
How to Install Apache Php Mysql in CentOS 8 Linux
Step 1: Install Apache Web Server
# yum install httpd
after the installation is complete
Start the web server and verify the status.
# systemctl enable httpd
# systemctl start httpd
# systemctl status httpd
Step 2: Install PHP Programing Language
# yum install php php-mysqlnd php-pdo php-gd php-mbstring
Now restart your web server so that Apache knows that it will be serving PHP requests as well.
# systemctl restart httpd
Step 3: Install MariaDB Server
# yum install mariadb-server mariadb
Once the installation is complete, enable MariaDB , start the web server and verify the status using the commands below.
# systemctl enable mariadb
# systemctl start mariadb
# systemctl status mariadb
you will want to secure your MariaDB installation by issuing the following command.
# mysql_secure_installation
centos 8