Dnf install visual studio code7/9/2023 ![]() ![]() It will prompt you to enter the root password or set it up, therefore, answer “Y” for every subsequent prompt. ![]() To secure MariaDB by running the following command: # mysql_secure_installation ![]() It will remove the insecure default settings and lock the access of your database. To improve the security of the database, it’s recommended to run a security script that comes up with the MariaDB. To verify the service is running, use the following command: # systemctl status mariadbĪs you can see above that MariaDB is running. Once the installation is completed, enable and start the Maria DB service by running the following command: # systemctl enable mariadb The next step is to install the Maria DB to store data and manage data for the website, for this use the following command: # sudo dnf install –y mariadb-server mariadb Now we have the Web server installed and running. # sudo firewall-cmd –add-service-https/tcp –permanentĪdditionally, you can open up a web browser and test your Web Services by typing IP address or localhost as shown below. Configure CentOS FirewallĪfter installing Apache, update the firewall rules to allow requests for this use the following command: # sudo firewall-cmd –add-service=http/tcp –permanent To verify the service is running, run the following command: # systemctl status httpdĪs you can see that see Apache web service is running. Once the installation is completed, enable and start the Apache service by running the following command: # systemctl start httpd For this, open up the terminal and use the following command: # sudo dnf updateĪfter updating the system packages, the next step is to install the Apache Web Server and its tools, for this run the following command: # sudo dnf install –y httpd httpd-tools CentOS LAMP Installationīefore installation, keep your Systems Packages repository updated. In this tutorial, we will learn how to install a LAMP Server on CentOS 8. MariaDB or MYSQL are used to store and manage the data. It comes up with 4 components which are Apache (used for hosting a website), MySQL or MariaDB, and PHP – a popular scripting language used to create dynamic web pages. It is a free and open-source stack used by developers and website administrators to test and host their Web applications. LAMP is an acronym of Linux, Apache, MySQL, and PHP. ![]()
0 Comments
Leave a Reply. |