Install Apache, PHP, dan DataBase di Debian

Install Apache

apt install apache2 apache2-utils -y

Install PHP

apt install php php-mbstring php-curl php-xml php-pear php-bcmath php-pdo php-zip php-fpm php-cli php-mysql libapache2-mod-php php-gd php-xml php-curl php-common php-json -y

Install MariaDB

apt install mariadb-server mariadb-client -y
Output
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, you'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
Output
. . .
Setting the root password or using the unix_socket ensures that nobody
can log into the MariaDB root user without the proper authorisation.

You already have your root account protected, so you can safely answer 'n'.

Switch to unix_socket authentication [Y/n] n
Output
Change the root password? [Y/n]

Leave a Reply

Your email address will not be published. Required fields are marked *