12 Feb 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!!@@
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
⚠️ RECOMMENDED VIDEOS:
How to Install LAMP Stack on Centos 7 using standard repository:
How to Setup and Secure Your VPS On Ubuntu
Vultr Vps Vs DigitalOcean (VPS Review):
😁😁😜MY AFFILIATE LINKS
HOSTING COUPONS AND FREE CREDITS
👍 Get $10 Free Credit from Vultr Cloud VPS:
👍 Get up to 60% discount from Hostgator Hosting:
👍 Try Hostgator hosting for $0.01
👍 Get up 50% Discount from Bluehost Hosting:
👍 Get up to %51 discount from A2 Hosting:
WORDPRESS THEMES AND PLUGINS
👍 Kleo Multi Purpose Theme ($69)
👍 Easy Social Share Button Plugin for WordPress ($19)
👍 BUY ME A COFFEE
💡 COMMANDS USED IN THE TUTORIAL:
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
cat “DOUBLE OPEN ANGLE BRACKET” EOF | sudo tee -a /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.1 CentOS repository list
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
sudo yum install mariadb-server mariadb
sudo systemctl start mariadb
sudo systemctl enable mariadb.service
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
AddType text/html .php .html