Premium Only Content
How To Build a LAMP Stack on CentOS 7.6
I'm going to show you how to install a LAMP Stack on a VPS using CentOS 7.6 x64.
Linode $100 Credit: https://linode.com/seekaplayer (This is for new accounts, the credit expires in 60 days so use it!)
Create a VPS Server with at least 1GB of Ram but I would suggest at least 2GB
Open your choice of an SSH Client. There are many choices out there. PuTTY is very popular https://www.putty.org/
Connect to your Server by typing in: root@youripaddress and then you'll be prompted for a password.
Once you connect (If you use Digital Ocean they will have you change your password once you login) you are set to get started.
Follow Me!
Linktree: https://linktr.ee/seekaplayer
First, you'll want to update your server. Type the following:
yum update -y
yum upgrade -y
Then you'll want to install some other tools (You may not need all of them but it's good to have them):
yum install nano -y
Now to get started with your LAMP Stack you need to install APACHE: yum install httpd -y
Now we'll need to start APACHE: systemctl start httpd.service
If this works visit your YourIpAddress in the navigation bar and you should see a Testing 123.. page. This means APACHE has been installed and is working.
Next, we need to make sure APACHE starts after a reboot: systemctl enable httpd.service
Now we need to install MariaDB: yum install mariadb-server mariadb -y
Now we need to start MariaDB: systemctl start mariadb
Then we'll secure the DB: mysql_secure_installation
Now there will be some options:
Enter current password for root (enter for none): Hit Enter
Set root password? [Y/n]: y
New password: Enter a password
Re-enter new password: Re-enter your password
Remove anonymous users? [Y/n]: y
Disallow root login remotely? [Y/n]: y
Remove test database and access to it? [Y/n]: y
Reload privilege tables now? [Y/n]: y
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
Now we'll need to enable MariaDB when the Server Reboots: systemctl enable mariadb.service
Now we'll install PHP: yum install php php-mysql -y
Now we'll need to reboot APACHE: systemctl restart httpd.service
To make sure PHP installed correctly type in the following command to create a file to test your PHP: nano /var/www/html/info.php
In the text editor type: See Video For Code
Then: ctrl + x
Then: y and hit Enter
And that's how you create a LAMP Stack! You can add your files to your /var/www/html
BONUS: Installing phpMyAdmin
We need to install the EPEL repository: yum install epel-release -y
Now update/upgrade:
yum update -y
yum upgrade -y
Now we need to install phpMyAdmin: yum install phpmyadmin -y
Now we need to edit the phpMyAdmin Config file: nano /etc/httpd/conf.d/phpMyAdmin.conf
Edit this section and add the following:
Add: Require all granted to the #Apache 2.4 section
Change: Deny from All to Allow from All in the #Apache 2.2 section
Restart APACHE: service httpd restart
Now visit your IpAddress/phpmyadmin
Thanks for watching and remember to Like, Share and Subscribe.
Referral Links
Linode - Spin up servers instantly and easily with Linode. When you visit my link you'll get $100 in free credit to use to test out Linode. Please note, this credit will expire in 60 days so use it! - https://linode.com/seekaplayer
Popl - You have got to check out Popl! This platform is amazing! It allows you to share your information and gather information from people you meet. You can use their app or purchase devices and with a tap can get your information out there to anybody with a mobile device. Check it out! Also, if you use my link you get 20% off! https://popl.co/?ref=seekaplayer
AimBot Energy - https://aimbotenergy.com/discount/SEEKAPLAYER - Is uniquely powerful, consistently delicious, and completely free of sugar and calories. It almost feels too good to be true. Feel the difference for yourself. Step into the future of energy drinks. Use code SEEAKAPLAYER to save 15%!
Express VPN - I have worked with Express VPN to give my viewers a great deal. You can get 12 months + 3 Free months (15 months total) of this great VPN Service for only $99! - https://www.xvgolink.com/?offer=3monthsfree&a_fid=seekaplayer
Humble Bundle - https://www.humblebundle.com/monthly?partner=seekaplayer
#lamp #apache #linux
-
2:44
Seekaplayer
24 days agoTesting Ignore
67 -
42:07
BonginoReport
4 hours agoNikki Haley's Hatred of Tulsi Gabbard Just Made Me a Bigger Fan (Ep.90) - 11/21/24
59K162 -
28:41
Professor Nez
10 hours ago🚨BLOOD on their HANDS! The Man Biden & Kamala Flew In Finally Faces JUSTICE for Laken Riley
29.6K18 -
1:06:27
2 MIKES LIVE
2 hours agoThe Mike Schwartz Show 11-21-2024
7.96K -
15:07
PMG
11 hours ago $0.13 earned"President Trump's Cabinet is Amazing!"
13.2K -
LIVE
Vigilant News Network
14 hours agoHeavily-Vaxxed County Faces Grim Reality | The Daily Dose
1,013 watching -
1:22:22
Game On!
15 hours ago $9.94 earnedRussell Wilson MVP? TNF Steelers vs Browns Game of the Year!
58.9K -
13:57
This Bahamian Gyal
15 hours agoSo, now MIKA and JOE want to work with HITLER? Sunny Hostin was right!
36.1K39 -
59:38
The Tom Renz Show
18 hours ago"MAGA & Unity With Pastor Bernadette Smith"
22.7K2 -
2:12
Memology 101
15 hours ago $3.75 earnedTYT's Cenk Uygur DESTROYS deluded self-proclaimed election Nostradamus over FAILED prediction "keys"
20.1K14