Debian Lamp Setup

0

I noticed the help with Amazon Linux 2 references extras, such as "sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2". Is there any extras file for the Debian image?

PKShark
질문됨 2년 전272회 조회
1개 답변
0

Hi There,

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[1] and to add the package repository to Debian[2] 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 [1].



  1. Updating the Debian Linux, run:

 sudo -- sh -c 'apt update && apt upgrade'
  1. Install Apache, execute: 

sudo apt install apache2
  1. Update the Firewall and open port 80 and 443, run:
sudo ufw allow in "WWW Full"
  1. Set up MariaDB:

 sudo apt install mariadb-server
  1. Secure your MariaDB server, type:
   
sudo mysql_secure_installation
  1. 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.

References: ==============

[1] https://wiki.debian.org/LaMp

[2] https://wiki.debian.org/DebianRepository/Setup#Debian_Repository_Types

** Please note that I personally value your feedback, please accept this answer if you find it helpful to you. **

Mfanelo
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠