The output will show that the httpd package was installed successfully, as shown in the image below:
2. Then start Apache by running the following command:
sudo systemctl start httpd.service
3. Check if the service is running by going to the public IP address of your server, in my case, it is 185.163.45.1xx.
The browser should display the CentOS 7 Apache test web page:
4. Finally, configure Apache to start at boot:
sudo systemctl enable httpd.service
Step 3. Install MySQL (MariaDB) and phone number library create a database.
To organize and store data for your dynamic website, you need MariaDB.
It is a fork of the open-source MySQL database management system.
1. Install MariaDB using the command:
sudo yum install mariadb-server mariadb
When prompted for y/n, confirm with y.
sudo systemctl start mariadb
Step 4. Run MySQL Security Script
MariaDB has no secure settings by default.