LAMP installed on Debian 8

This is so much fun to install on a Linux Debian platform. This does not address installing  Debian 8. The first thing to do after you install Debian is to lock down the “apt-get-update” then “apt-get upgrade” then go to the security page below.

Here is the security checklist for Debian 8

LAMP installed on Debian 8

The acronym LAMP is an acronym of the following programs:

At this writing 2019, the Mysql is now MariaDB.

  • Linux Operating System
  • Apache HTTP Server
  • MySQL database management system
  • PHP programming language

Install LAMP on Debian 8 with MariaDB

sudo apt-get dist-upgrade
sudo apt-get install apache2 apache2-doc

—————–install mariadb————–
Install as a user not as root with sudo

sudo apt-get install software-properties-common dirmngr
sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
sudo add-apt-repository ‘deb [arch=amd64,i386,ppc64el] http://mirror.zol.co.zw/mariadb/repo/10.3/debian jessie main’
sudo apt-get update && sudo apt-get install mariadb-server
$ sudo systemctl status mysql
root# mysql -u root -p
type show databases;
congrats! type quit
————————-install PHP——————————–
sudo apt-get install php5-common libapache2-mod-php5 php5-cli
sudo service apache2 restart
cd /var/www/html
sudo nano info.php ( if nano not installed apt-get install nano)
paste <?php phpinfo(); ?> into the info.php and hit ctl x then Y
go to http://your IP/info.php
and should see a blue page with all PHP info
for security remove it if successfull. sudo rm -i /var/www/html/info.php
———————-install network tools——————-
apt-get install dnsutils -y nslookup, dig etc

Thanks for watching.