Skip to content

LuminiCode/aws-cloudformation-ubuntu-lamp-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Cloudformation template for LAMP Stack Deployment

This is a Cloudformation template to deploy LAMP Stack to AWS! This Template is adapted for the PHP-Framework Symfony.

Tutorial in German: https://youtu.be/hcELHMOs32U

Stack

This is LAMP Stack

  • Ubuntu 24.04 LTS (64-bit x86)
  • Apache 2.4.52
  • MySQL 8.0.31
  • PHP 8.3
  • Openjdk 22
  • AWS CLI (current version)
  • Java (openjdk version "18") - if "Jenkins" is installed

Additionally Tools

  • PhpMyAdmin 5.2.1 - optional
  • Python3
  • Symfony (7.0.*) - optional
  • Jenkins (current version) - optional
  • TYPO3 (12.0.0) - optional

!! Don't install TYPO3 and Symfony at the same time !!

AWS Ressourcen

  • EC2-Instance ImageId: ami-01e444924a2233b07 (located in Frankfurt)

Another Ressources

  • GitHub

Description:

Symfony:

  • Path: domain.com

Notes: You can create a new symfony project or you can take an existing Symfony-Project from Github. For the case you want to install an existing project you have to write your own script!

# install an existing project from github
# !! edit !! the following script (the following script is on github)
mkdir /var/www/html/settings
sudo curl https://${GithubUser}:${GithubPassword}@raw.githubusercontent.com/LuminiCode/symfony/master/aws-install-script-sg.sh -o /var/www/html/settings/aws-install-script-sg.sh
bash /var/www/html/settings/aws-install-script-sg.sh ${GithubUser} ${GithubPassword} ${AWS::StackName} ${DBUser} ${DBPassword} ${DBName}

phpMyAdmin:

  • Path: domain.com/phpmyadmin

Jenkins:

  • Path: domain.com:8080
  • Unlock: In the terminal window, use the cat command to display the password
sudo cat /var/lib/jenkins/secrets/initialAdminPassword