LINUX - install LAMP (linux apache2 mysql php5) on debian

All LAMP is just Apache2 and mysql and php5 installed in that order on LINUX. Install it in that order to have dependencys not messed up (although ive set it up before in different order and it all still worked - order is just setup like that so that it reads lamp and not paml or something stupid)

AMPL would be a cool name for LAMP too come to think of it, but its too late the name is already set in stone.

So yah all LAMP is, is just those softwares installed. When you install each of those software they will install 2 to 5 other apps with it, which is completely normal.

Some install guides will show you that you need to do many configurations to make it work. But thats not the case, just install it first and that will give you a default blank slate. Then begin your configs. Note: your website goes to /var/www and by default there is a index.html that will say "this site works" when you go to www.yourIPorhostname.com (to get hostname you need dns, but this isnt a dns lesson or networking lesson)

Needed for things like wordpress etc.

INSTALL LAMP EASY ON DEBIAN (I used this and it works just amazing)
###########################
apt-get install apache2
apt-get install mysql-server
mysql_secure_installation
The app mysql_secure_installation will ask questions, say no to all of them, I just say yes to "remove test database" and yes "to reload privileges table now"
apt-get install php5 php-pear
apt-get install php5-mysql
service apache2 restart

Or a million other ways (remember lots of ways to do the same thing in linux)

TO INSTALL LAMP ON DEBIAN 7
############################
https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-debian
apt-get update
apt-get install apache2
apt-get install mysql-server
mysql_secure_installation
The app mysql_secure_installation will ask questions, say no to all of them, I just say yes to "remove test database" and yes "to reload privileges table now"
apt-get install php5 php-pear php5-mysql
service apache2 restart

TO INSTALL LAMP ON DEBIAN 6
###############################
https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-debian
apt-get update
apt-get install apache2
apt-get install mysql-server
mysql_secure_installation
The app mysql_secure_installation will ask questions, say no to all of them, I just say yes to "remove test database" and yes "to reload privileges table now"
apt-get install php5 php-pear php5-suhosin php5-mysql
service apache2 restart

SelectionFile type iconFile nameDescriptionSizeRevisionTimeUser
Comments