Skip to main content

How to Install LAMP Stack (Linux, Apache, MariaDB, PHP) on Red Hat Enterprise Linux 7.4 + webmin



Tip: Watch the video full screen and HD.
Buy Me a Coffee at ko-fi.com

In this video, I am going to show you how to Install LAMP Stack (Linux, Apache, MariaDB, PHP) on Red Hat Enterprise Linux 7.4 plus webmin admin panel.
Support the Channel on Patreon https://www.patreon.com/ribalinux
Buy Me a Coffee http://ko-fi.com/A0383T5
follow me on Steemit https://steemit.com

LAMP is a combination of free, open source software. The acronym LAMP refers to the first letters of Linux (operating system), Apache HTTP Server, MySQL (database software), and PHP, Perl or Python, principal components to build a viable general purpose web server.
The exact combination of software included in a LAMP package may vary, especially with respect to the web scripting software, as Perl or Python are sometimes dropped from the stack. Similar terms exist for essentially the same software suite (AMP) running on other operating systems, such as Microsoft Windows (WAMP), Mac OS (MAMP), Solaris (SAMP), iSeries (iAMP), or OpenBSD (OAMP).
Though the original authors of these programs did not design them all to work specifically with each other, the development philosophy and tool sets are shared and were developed in close conjunction. The software combination has become popular because it is free of cost, open-source, and therefore easily adaptable, and because of the ubiquity of its components which are bundled with most current Linux distributions.

Commands

Open a terminal window

Install apache web server
sudo yum install -y httpd 

Start the httpd service
sudo systemctl start httpd

Start the httpd service on boot
sudo systemctl enable httpd

Install mariadb
sudo yum install -y mariadb mariadb-server

Start the mariadb service
sudo systemctl start mariadb

Start the mariadb service on boot
sudo systemctl enable mariadb

Set up mariadb
sudo mysql_secure_installation

Press enter

Press y and set the mysql root password

Press y

Install php
sudo yum install -y php php-common php-pdo_mysql php-pdo php-gd

Restart the httpd service
sudo systemctl restart httpd

Install webmin dependencies
sudo yum install -y perl perl-Net-SSLeay openssl perl-Encode-Detect

Download the webmin rpm
wget http://www.webmin.com/download/rpm/webmin-current.rpm

Install webmin
sudo rpm -U webmin-current.rpm

Configure the firewall
sudo firewall-cmd --permanent --add-port=10000/tcp

Configure the firewall
sudo firewall-cmd --permanent --add-port=80/tcp

Configure the firewall
sudo firewall-cmd --reload

You can manage your server on:
https://yourip:10000

You will get a warning for the SSL certificate 
Proceed ignoring that warning

To access the Webmin admin panel
Login with your root account

My main gaming platform (Amazon Affiliate)
http://amzn.to/2pc7uS5


What I am playing now (Amazon Affiliate)
http://amzn.to/2pZXVpO
http://amzn.to/2q2qlTH

PLEASE SUBSCRIBE AND FOLLOW ME ON TWITTER GOOGLE+ OR FACEBOOK!! IF YOU CAN PLEASE SUPPORT THE CHANNEL ON PATREON

Popular Posts