How to Install LAMP stack (Linux Apache, MariaDB 10, and PHP 7) on Centos 7


NOT UNLIMITED. I just received the mail from #Bluehost >>> It has come to our attention that your site is using an excessive number of files stored on your #bluehost account. This is causing performance problems on your website as well as for other customers that are on this server. It can cause our servers to crash and cause additional downtime. Our reseach shows that server performance degrades when accounts have over 50,000 files. In order to ensure optimal performance for your account and the others in your shared hosting environment, we request that you reduce the number of files on your account to under 50,000 by 06/10/2009. you can set up Only 50000 files!!@@


Learn how to install LAMP stack (linux apache 2, MariaDb 10, PHP 7) on Centos 7 vps.

Hello there!…

Welcome back to the tutorial.

In the video tutorial, we’re gonna continue from our previous chatting regarded the LAMP stack installation.

In the previous tutorial, you’ve learnt how to install and config LAMP stack using the standard or default repositories of Centos 7.

In this video, however, we’re gonna dig deeper into more advanced techniques of installing LAMP stack by customize the repository of Centos 7.

Thus, you will learnt how to upgrade Apache to the latest version using the custom repository from CodeIt.

Then, I’m gonna teach you how to create custom repository to force Centos 7 to install the MariaDB 10 instead of version 5.

Finally, you’re gonna how to install PHP 7 on Centos using remi repository.

⚠️ PREREQUISITE TUTORIAL:

How to Setup and Secure Your VPS on Centos 7
✔️ https://www.youtube.com/watch?v=9p54edsQ1Iw

⚠️ RECOMMENDED VIDEOS:

How to Install LAMP Stack on Centos 7 using standard repository:
✔️ https://www.youtube.com/watch?v=OTW3S1YgUbQ

How to Setup and Secure Your VPS On Ubuntu
✔️ https://www.youtube.com/watch?v=G9ljxktp1XE

Vultr Vps Vs DigitalOcean (VPS Review):
✔️ https://www.youtube.com/watch?v=-4rsmOWbN60

😁😁😜MY AFFILIATE LINKS

HOSTING COUPONS AND FREE CREDITS

👍 Get $10 Free Credit from Vultr Cloud VPS:
https://basicblogtalk.com/recommended/vultr-cloud-vps/

👍 Get up to 60% discount from Hostgator Hosting:
https://basicblogtalk.com/recommended/hostgator-cloud-hosting/

👍 Try Hostgator hosting for $0.01
https://basicblogtalk.com/recommended/hostgator-1-cent-hosting/

👍 Get up 50% Discount from Bluehost Hosting:
https://basicblogtalk.com/recommended/bluehost/

👍 Get up to %51 discount from A2 Hosting:
https://basicblogtalk.com/recommended/a2-wordpress-hosting/

WORDPRESS THEMES AND PLUGINS

👍 Kleo Multi Purpose Theme ($69)
https://basicblogtalk.com/recommended/kleo-theme/

👍 Easy Social Share Button Plugin for WordPress ($19)
https://basicblogtalk.com/recommended/easy-social-share-buttons-for-wordpress/

👍 BUY ME A COFFEE
https://basicblogtalk.com/recommended/buymeacoffee/

💡 COMMANDS USED IN THE TUTORIAL:

==================================
Apache 2
==================================

sudo yum install httpd

sudo systemctl start httpd.service

sudo systemctl enable httpd.service

cd /etc/yum.repos.d && wget https://repo.codeit.guru/codeit.el7.repo

yum install -y epel-release

yum upgrade httpd

==================================
MariaDB 10
==================================
cat “DOUBLE OPEN ANGLE BRACKET” EOF | sudo tee -a /etc/yum.repos.d/MariaDB.repo

# MariaDB 10.1 CentOS repository list
# http://downloads.mariadb.org/mariadb/repositories/

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF
=================================================

sudo yum install mariadb-server mariadb

sudo systemctl start mariadb

sudo mysql_secure_installation

sudo systemctl enable mariadb.service

==================================
PHP 7.2
==================================

sudo yum install epel-release

sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

sudo yum –enablerepo=remi,remi-php70 install php php-common

sudo yum –enablerepo=remi,remi-php70 install php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml

sudo vi /etc/httpd/conf/httpd.conf

DirectoryIndex index.php

AddType text/html .php .html

Kim Official Channel

1Comment
  • Goforcareer
    Posted at 10:36h, 12 February

    Hi kim, What is your opinion about Contabo vps?