LAMP is an open source Web development platform that uses Linux as the operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language. Because the platform has four layers, LAMP is sometimes referred to as a LAMP stack. Stacks can be built on different operating systems.
LAMP stands for Linux, Apache, MySQL and PHP, and each one of them adds something unique to the development of high-performance web applications.
IOanyT Innovations provides a complete PHP, MySQL and Apache development environment for Amazon Linux / Ubuntu / Debian / RHEL that can be launched in one click
Easy configurable AMI with pre-installed LAMP
LAMP (Linux, Apache, MySQL, PHP/Perl/Python) is an acronym denoting an open source of common software's for many of the web's most popular applications that are typically installed together to enable servers to deploy and host web apps and websites. You’ll need to have an Ubuntu 18.04 server with a non-root sudo-enabled user account and a basic firewall configured
To verify the installation, follow the below instructions
In the address bar of the browser, type http://<your-ip-address>
You will see the Apache2 default page (see screenshot below)
Step 1. Connect to SSH
In a terminal window, use the ssh command to connect to the instance. You specify the user name for your instance, and the public DNS name or IPv6 address for your instance, the path and file name of the private key (.pem).
ssh ec2-user@publicIP -i [Path of key pair file]
If it shows access denied message run the following command , then run the above command again to connect via ssh.
chmod 400 [Path of key pair file]
Step 2. Test your PHP Installation
If your LAMP server is installed and running, and your file permissions are set correctly, your user account should be able to create a PHP file in the /var/www/html directory that is available from the internet.
To test your PHP Installation
In a web browser, type the URL of the file that is already created. This URL is the public DNS address of your instance followed by a forward slash and the file name.
You should see the following php information page: