Webserver 2 : A L-A-M-P

2015-08-20   Technology

I figure as a web administrator you are familiar with the term LAMP. Linux-Apache-MySQL-PHP. The shining path of web development. [ This is all garbage says the java bean ]. There are many ways to light the LAMP but I will let you know here, much as I would pick the command line over all other methods, it doesn’t mean I’m a masochist. Yeah you could go for glory and do piecemeal install (to prove a point) or because your distro is not Ubuntu so it’s not really for real human beings. The option I would go for is the one that let’s Ubuntu do most of the ‘werk’ for you and you only add patches later. Just for kicks, if you are of the Apple cult you would be talking MAMP and for the general PC (the rest of them) you’ll be talking WAMP.

At this point I take it you still have our SSH window open and waiting while you rub our palms together (to get rid of the sweat so you don’t mess up your keyboard) then you type the following commands.

sudo apt-get install tasksel

Wait for the install to finish ( I presume you always know to press the ‘y’ for yes. If you really didn’t want to go that far you wouldn’t). Type..

sudo tasksel

An interesting screen would come up for those old enough to remember DOS. Use the arrows on the keyboard for navigation and use the space bar for selection. When you have selected ‘Lamp Server’ press enter. The next screen requests a password for the mysql root user. Try not to forget this password in the excitement. Follow the rest of the screen instructions and voila! You have successfully installed a LAMP server. You are now ready to shine the path to glory. Now you have to install the other parts fo the system that would make your LAMP shine brightly.

Install MySQL Server

sudo apt-get install mysql-client mysql-server

Install Apache

sudo apt-get install apache2

Install PHP Support

sudo apt-get install php5 libapache2-mod-php5

Install all other nuts & bolts

sudo apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-common

A word here. Like all those who have written such help before me , you are advised to copy and paste even if you are not sure what the command means. You only hope that at the end of it all , all will be well. It has worked for me 99% of the time so it should work for you. Where it doesn’t work, Google is there to tell where you screwed up. At this point if you’ve been at this till the wee hours of the morning, you can go to sleep with the knowledge that you have lighted the path. If you are on a deadline or your job is hanging on the line I suppose you still have to continue [There is no rest for the wicked].