I understand that you need information on the steps to setup Debian LAMP extras file for the Debian image similar to the help found with Amazon Linux 2 extras command "sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2".
I have found that Debian setup differs as there is no straight forward command to setup LAMP and to add the package repository to Debian since debian does not support linux extras to say , below I outlined steps that can be followed to Install LAMP on Debian, further more you can follow the documentation .
- Updating the Debian Linux, run:
sudo -- sh -c 'apt update && apt upgrade'
- Install Apache, execute:
sudo apt install apache2
- Update the Firewall and open port 80 and 443, run:
sudo ufw allow in "WWW Full"
- Set up MariaDB:
sudo apt install mariadb-server
- Secure your MariaDB server, type:
- PHP installation:
sudo apt install php libapache2-mod-php php-gd php-mysql
I hope you find this information helpful.
Have a great day ahead.
** Please note that I personally value your feedback, please accept this answer if you find it helpful to you. **
AWS VPS (Preferably Debian) with GPU and Python 3.8?asked 7 months ago
How to install a GUI in Amazon Linux 2022?asked 7 days ago
Debian Lamp Setupasked 2 months ago
Update nginx 1.20.0 on Amazon Linux Extrasasked a month ago
amazon-linux-extras support for PHP 7.4asked 3 years ago
Cloud9 || PHP versionasked 2 months ago
java-11-openjdk-devel for Amazon Linux 2asked 4 years ago
Is there antivirus software recommended to install AWS Linux 2 system?asked 3 months ago
How to request php8.1 to be added to amazon-linux-extrasasked 4 months ago
amazon-linux-extras install epel broken on ARM64 instancesasked 6 months ago