Actually it is easy to install lamp server, please read the "Easy-LAMP Server Installation". The majority of this information is for Ubuntu, but if you are running something Red Hat based, such as CentOS, then at the bottom there is a nice command for you.
So I was asked a question the other day, “How do I install LAMP on my linux server?”. First, let me cover a few things about a LAMP server. LAMP is not a piece of software itself, it is a term used to describe a particular server configuration. It stands for Linux Apache MySQL PHP (get it > L-A-M-P). So you don’t install LAMP, you install ...