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, phpMyAdmin and Apache development environment for Amazon Linux / Ubuntu / Debian / RHEL that can be launched in one click
Easy configurable AMI with pre-installed LAMP and phpMyAdmin
INSTALLATION VIA AWS MARKETPLACE
Kindly click on the below link to install the server via AWS Marketplace:
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 rocky@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:
Step 3. Access AWS Instance ID
For an EC2 instance (either a standalone instance or a part of a stack), or a database instance, you can find the ID in a few steps below
In EC2 console, In the navigation pane, select Instances. The Instances page opens.
Click the instance that you want the ID for. The instance details page opens and displays the ID and IP address.