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
This is LAMP Stack
- Ubuntu Ubuntu 22.04.1 LTS (64-bit x86)
- Apache 2.4.52
- MySQL 8.0.31
- PHP 8.1.2
- AWS CLI (current version)
- Java (openjdk version "18") - if "Jenkins" is installed
- PhpMyAdmin 5.2.0 - optional
- Python3
- Symfony (current version) - optional
- Jenkins (current version) - optional
- TYPO3 (12.0.0) - optional
!! Don't install TYPO3 and Symfony at the same time !!
- EC2-Instance ImageId: ami-0caef02b518350c8b (located in Frankfurt)
- GitHub
- 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}
- Path: domain.com/phpmyadmin
- Path: domain.com:8080
- Unlock: In the terminal window, use the cat command to display the password
sudo cat /var/lib/jenkins/secrets/initialAdminPassword