Loading...
Real Time Concepts

Lamp Setup In Centos/Redhat

PHP and HTTPD Installation In centos 7

sudo rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum -y install yum-utils
sudo yum-config-manager --enable remi-php56
sudo yum install httpd php php-openssl php-pdo php-mbstring 
php-tokenizer php-curl php-mysql php-ldap php-zip php-fileinfo php-gd php-dom php-mcrypt

After completing installation process,Check the version of php as shown below

 php --version 

mysql installation for centos 7

https://dev.mysql.com/downloads/repo/yum/

Manually you can download mysql57 / mysql8.0 community server as required or you can download as shown below

wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
sudo rpm -ivh mysql57-community-release-el7-9.noarch.rpm
sudo yum install mysql-server
sudo systemctl start mysqld
sudo systemctl status mysqld
sudo grep 'temporary password' /var/log/mysqld.log
sudo mysql_secure_installation

Enter password: Here you should enter temporary password as show above

New password: Enter your new password here

Check your mysql version as below

mysqladmin -u root -p version

Phpmyadmin installation for centos 7

sudo yum -y install phpmyadmin

mariadb installation for centos 7

sudo yum -y install mariadb mariadb-server
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
sudo mysql_secure_installation
Leave a Reply

Your email address will not be published. Required fields are marked *