Listing Thumbnail

    LAMP Stack on Amazon Linux 2023 (PHP 8.5, MariaDB 12.3, Apache 2.4)

     Info
    Deployed on AWS
    Free Trial
    AWS Free Tier
    This product has charges associated with it for extended support/configuration. Launch a production-ready app in minutes with a pre-configured LAMP stack featuring PHP 8.5, MariaDB 12.3, phpMyAdmin 5.2, Apache 2.4 based on Amazon Linux 2023 (LTS) and designed for the x86_64 architecture - ideal for developers and small businesses. Security Alert: The critical PHP2Shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619) have been fully patched in this AWS machine image (AMI). The underlying PHP runtime has been updated to the latest secure version, mitigating the risk of unauthenticated remote code execution. No further action is required for this image.
    These options are for LAMP Stack on Amazon Linux 2023 (PHP 8.5, MariaDB 12.3, Apache 2.4).
    View 1 other option

    Overview

    Open image
    • PHP 8.5
    • MariaDB 12.3
    • Apache 2.4
    • Node 18.20
    • NPM 10.8
    • Composer 2.11
    • phpMyAdmin 5.2
    • HTTP/2 Enabled
    • Let's Encrypt Free SSL Certificate
    • Brotli Compression Enabled
    • Amazon Linux 2023 (LTS)
    • Architecture x86_64
    • Featuring a Video Installation Guide

    The LAMP stack setup is an excellent choice for hosting and running diverse web projects, including Laravel, WordPress, Drupal, Joomla, etc. It offers a powerful combination of the Linux operating system, Apache web server, MariaDB database, and PHP scripting language. This comprehensive stack ensures compatibility with various web frameworks and applications, making it highly adaptable for different types of web projects.

    • Apache 2.4 is the latest major version of the Apache HTTP Server, which is one of the most widely used web server software in the world.

    • PHP 8.5 is a major version of the PHP programming language, bringing new features, performance enhancements.

    • MariaDB 12.3 Server is one of the most popular open source relational databases. MariaDB aims to be a drop-in replacement for MySQL.

    • phpMyAdmin 5.2 is a web-based tool used for managing MySQL databases. It provides an intuitive graphical interface to handle database administration tasks, such as creating databases, tables, and executing SQL queries. With phpMyAdmin, users can easily manage and interact with their MySQL databases through a web browser.

    • Amazon Linux 2023 (AL2023) provides an application environment that offers long-term support with access to the latest innovations in Linux.

    Disclaimer: The respective trademarks mentioned in the offering are owned by the respective companies. We do not provide the commercial license of any of these products. Many of the products have a free, demo or Open Source license as applicable.

    Image may take up to 5 minutes for initial launch.

    Other Latest Products:

    Highlights

    • Production-ready in under 5 minutes: Pre-configured (PHP 8.5, Apache 2.4, MariaDB 12.3, Node 18.20, NPM 10.8, Composer 2.11, phpMyAdmin 5.2) with free Let's Encrypt SSL, HTTP/2 for faster page loads, and automatic certificate renewal - no manual server setup required. Includes a video installation guide walking you through the entire deployment process from launch to live site.
    • Secure by default: Ships with firewall rules restricting traffic to essential ports, database access locked to localhost only, SSH key-pair authentication with root login disabled, and automatic security updates enabled on Amazon Linux 2023 (LTS) for long-term patching and stability.
    • Free setup support included: Encounter any configuration issues during deployment and Vedanta Cloud Solutions resolves them at no additional cost. Extended support with a response-time SLA of under 2 hours is also available for production workloads requiring guaranteed assistance.

    Details

    Delivery method

    Delivery option
    64-bit (x86) Amazon Machine Image (AMI)

    Latest version

    Operating system
    AmazonLinux 2023 (LTS)

    Deployed on AWS

    Features and programs

    Financing for AWS Marketplace purchases

    AWS Marketplace now accepts line of credit payments through the PNC Vendor Finance program. This program is available to select AWS customers in the US, excluding NV, NC, ND, TN, & VT.
    Financing for AWS Marketplace purchases

    Pricing

    Free trial

    Try this product free for 5 days according to the free trial terms set by the vendor. Usage-based pricing is in effect for usage beyond the free trial terms. Your free trial gets automatically converted to a paid subscription when the trial ends, but may be canceled any time before that.

    LAMP Stack on Amazon Linux 2023 (PHP 8.5, MariaDB 12.3, Apache 2.4)

     Info
    Pricing is based on actual usage, with charges varying according to how much you consume. Subscriptions have no end date and may be canceled any time.
    Additional AWS infrastructure costs may apply. Use the AWS Pricing Calculator  to estimate your infrastructure costs.
    If you are an AWS Free Tier customer with a free plan, you are eligible to subscribe to this offer. You can use free credits to cover the cost of eligible AWS infrastructure. See AWS Free Tier  for more details. If you created an AWS account before July 15th, 2025, and qualify for the Legacy AWS Free Tier, Amazon EC2 charges for Micro instances are free for up to 750 hours per month. See Legacy AWS Free Tier  for more details.

    Usage costs (145)

     Info
    • ...
    Dimension
    Cost/hour
    t3a.medium
    Recommended
    $0.012
    t3.micro
    $0.004
    t2.micro
    $0.004
    m7i.large
    $0.019
    m7i.xlarge
    $0.026
    m7i.2xlarge
    $0.034
    m7i.4xlarge
    $0.048
    m7i.8xlarge
    $0.076
    m7i.12xlarge
    $0.12
    m7i.16xlarge
    $0.18

    AI Insights

     Info

    Dimensions summary

    You pay by the hour for the EC2 instance you run this LAMP stack on. There is no separate software fee tier; pricing simply tracks the instance size you choose. Options span several instance families: burstable types (t2, t3, t3a) for light or variable workloads, general-purpose types (m6a, m7a, m7i, m8a), compute-focused types (c5a, c6a, c7a, c8a), and memory-focused types (r6a, r7a, r8a). Within each family, cost rises as you move from smaller sizes up to larger multi-core and bare-metal options. You pick the size that fits your needs and pay only for hours used.

    Top-of-mind questions for buyers

    Each hourly charge covers the pre-built LAMP stack running on one EC2 instance of the size you select. That includes Amazon Linux 2023, PHP 8.5, MariaDB 12.3, and Apache 2.4. The instance size sets the CPU and memory you receive. You run one instance per selected type.
    Software charges meter running hours only. A fully stopped instance does not accrue the hourly software fee. Underlying AWS storage for the instance volume may still bill separately. Charges resume automatically when you restart the instance. No manual upgrade or switch is needed.
    Burstable types (t2, t3, t3a) suit light or variable traffic. General-purpose types (m6a, m7a, m7i, m8a) balance CPU and memory. Compute types (c5a through c8a) favor processing-heavy sites. Memory types (r6a, r7a, r8a) suit memory-hungry databases. Each bills per hour at the rate for your chosen size.
    rajjanorkar.github.io
    Helpful?

    Vendor refund policy

    We currently do not support refunds, but you can cancel at any time. Additionally, we offer a few days of free trial for you to try out our services.

    How can we make this page better?

    Tell us how we can improve this page, or report an issue with this product.
    Tell us how we can improve this page, or report an issue with this product.

    Legal

    Vendor terms and conditions

    Upon subscribing to this product, you must acknowledge and agree to the terms and conditions outlined in the vendor's End User License Agreement (EULA) .

    Content disclaimer

    Vendors are responsible for their product descriptions and other product content. AWS does not warrant that vendors' product descriptions or other product content are accurate, complete, reliable, current, or error-free.

    Usage information

     Info

    Delivery details

    64-bit (x86) Amazon Machine Image (AMI)

    Amazon Machine Image (AMI)

    An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.

    Version release notes

    Security Update & Software Stack

    Security Update - Critical PHP2Shell Vulnerabilities Patched

    This release addresses the critical PHP2Shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619). The underlying PHP runtime has been updated to the latest secure version, protecting against potential unauthenticated remote code execution (RCE) attacks.

    All necessary security patches have been applied to this AMI. No additional action is required for newly launched instances using this release.

    Software Stack & Features

    • PHP: 8.5.12
    • MariaDB: 12.3.3
    • Apache HTTP Server: 2.4.69
    • phpMyAdmin: 5.2.3
    • Node 18.20.8
    • NPM 10.8.2
    • Composer 2.11.2
    • Operating System: Amazon Linux 2023 (LTS)
    • Architecture: x86_64

    Included Features

    • Free SSL Certificates: Integrated Let's Encrypt SSL certificate support.
    • HTTP/2 Support: Enabled for improved website performance and faster content delivery.
    • Security Updates: Includes the latest applicable security patches and updates.

    Additional details

    Usage instructions

    1. On your Launch an instance page, in the Key pair section, either select an existing SSH key pair name or create a new one, such as aws-ec2-instance-key-us-east-1

    2. Edit your instance's security group inbound rules. Click on Add Rule, select the type as SSH, and set the source to My IP or manually enter your machine's IP address. This will allow only your machine to connect to the EC2 instance using SSH. To make your website accessible via HTTP/HTTPS: Click on Add Rule, select the type as HTTP, and set the source to Anywhere-IPv4. Repeat the process for the rule type HTTPS

    3. Once you have downloaded the SSH key file to your machine, you can use it for secure authentication when connecting to remote instance

    [Linux/Mac] Change the permissions using chmod 400 aws-ec2-instance-key-us-east-1.pem. You can find more information click here 

    Connect to the instance using SSH: ssh -i aws-ec2-instance-key-us-east-1.pem ec2-user@YOUR-INSTANCE-IP

    [Windows] Refer to the following links for instructions on connecting to the instance using SSH: OpenSSH Setup  or Putty Setup 

    MariaDB Setup:

    Once you have logged in to the instance using SSH, secure and set the root password by running: sudo mysql_secure_installation

    • Enter current password for root (enter for none):
    • Switch to unix_socket authentication [Y/n] : n
    • Change the root password? [Y/n]: Y
    • Note down the root user password which you set in the previous step.
    • Remove anonymous users? [Y/n]: Y
    • Disallow root login remotely? [Y/n]: Y
    • Remove test database and access to it? [Y/n]: Y
    • Reload privilege tables now? [Y/n]: Y

    MariaDB installation is completed

    When launching an instance, consider attaching an Elastic IP to ensure that it remains unchanged when you stop and start your instance

    SSL Certificate Setup:

    1. Change to the config directory: cd /etc/httpd/conf.d You will see a YOUR-DOMAIN-com.conf config file in this directory

    2. Open the config file using the nano editor: sudo nano YOUR-DOMAIN-com.conf Replace the ServerName and ServerAlias with your actual domain name

    3. Rename the above config file to your actual domain name. (Replace YOUR-DOMAIN-com with your actual domain)

    4. Change your domain's DNS A record to point to the IP address of this EC2 instance

    5. Install Let's Encrypt free SSL certificate by running: sudo certbot --apache Follow the prompts to complete the installation

    6. Edit the crontab file: sudo nano /etc/crontab Uncomment the SSL renewal cron job to enable automatic renewal of your SSL certificate

    PhpMyAdmin:

    • Visit: https://YOUR-DOMAIN.COM/phpMyAdmin 
    • Enter the login credentials set up in the previous steps (MariaDB root user and password)
    • Create a new database for your application
    • Optionally, create a new user and password

    Location : /var/www/html/phpMyAdmin

    SQL Clients: DBeaver  for Windows or Sequel Ace  for Mac.

    PHP App Setup:

    • Visit: https://YOUR-DOMAIN.COM/phpinfo.php  (delete phpinfo.php once you confirm everything is okay)
    • Your document directory is: /var/www/html You can put your PHP projects in this directory

    Connecting to MariaDB:

    Please replace the following credentials in bold with your own in the app

    • DB_CONNECTION=mysql
    • DB_HOST=127.0.0.1
    • DB_PORT=3306
    • DB_DATABASE=my_database
    • DB_USERNAME=db_user
    • DB_PASSWORD=my_db_password

    Advanced-level support and optimization will be promptly provided upon request. For further assistance, please refer to the support section

    Support

    Vendor support

    Free Setup Support

    If you encounter any bugs or configuration issues during initial setup, Vedanta Cloud Solutions is committed to resolving them at no additional cost. This includes assistance with WordPress installation, database connectivity, SSL certificate configuration, and Apache/PHP troubleshooting.

    Extended Support (Paid Tier)

    For production workloads requiring guaranteed response times, an extended support plan is available with a Service Level Agreement (SLA) of under 2 hours. Access extended support here:

    AWS infrastructure support

    AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.

    Similar products

    Customer reviews

    Ratings and reviews

     Info
    0 ratings
    5 star
    4 star
    3 star
    2 star
    1 star
    0%
    0%
    0%
    0%
    0%
    0 reviews
    No customer reviews yet
    Be the first to review this product . We've partnered with PeerSpot to gather customer feedback. You can share your experience by writing or recording a review, or scheduling a call with a PeerSpot analyst.