This article will help you to install an Apache web server with PHP and MySQL support on your Amazon Linux instance (sometimes called a LAMP web server or LAMP stack). You can use this server to host a static website or deploy a dynamic PHP application that reads and writes information to a database.
LAMP

Change Root Directory on LAMP Server
LAMP is an archetypal model of web service solution stacks, named as an acronym of the names of its original four open-source components: the Linux operating system, the Apache HTTP Server, the MySQL relational database management system (RDBMS), and the PHP programming language.
Installing lamp server will create a root directory of an Apache server on /var/www/html. I like to change the root directory because of some permission problem on /var/www/html and also to make easy of managing my projects on my custom directory. Here are the steps to changed root directory on LAMP server.
(more…)