Last Updated On By Khizer Ali
Table of Contents
Centos stands for Community Enterprise Operating System and is a Linux distributed OS. It is free and open source like other Linux. Centos is famous for its strong security and stability. Centos uses YUM package manager and is still popular with many people. you can install lamp in centos 7.
Red Hat is also a Linus distributed OS, free and open source. Red Hat was first launched in 2004 and is popular for its adapting and straight put technology. Red Hat OS has many features and exceptional support that makes the user satisfied.
You can update your system through the following command
sudo yum update
Type in the following command to install apache
sudo yum install httpd
this will ask you for your password, enter your password and continue. Press ‘y’ for the rest of the installation.
After the installation is completed, start your apache to make sure everything is perfectly installed.
sudo systemctl start httpd.service
you can check the server through your ip address from the web browser. If you get the following screen then your apache is all set up and ready to be used.
To install MariaDB in your centos you need to type in the following command which is install helper package to communicate with your MySql
sudo yum install mariadb-server mariadb
now start and enable your MariaDB through the following command.
sudo yum install mariadb-server mariadb
sudo systemctl enable mariadb.service
To install MySql in your centos you just need to again type the following command to get your MySql running.
wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
If the wget command is not working then u need to install it first.
sudo yum install wget
then update your yum through the following command
sudo yum update
now install the Yum package that will install repository to get MySql
sudo rpm -ivh mysql57-community-release-el7-9.noarch.rpm
no, you can run the command to install MySql
sudo yum install mysql-server
now start your MySql if your installation is successful you will receive active status
sudo systemctl start mysql
run the following command to install Yum and EPEL repositories in your Centos.
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
you can install yum utils to help manage and enable yum repositories.
sudo systemctl start mysql
now you can easily install php 7.3 by enabling php 7.3 by following command
yum install php php-mcrypt php-cli php-gd php-curl php-MySQL php-ldap php-zip php-fileinfo
for installing,
yum-config-manager --enable remi-php73