Cara Install LAMP Stack on Ubuntu 20.04

 


apt update

apt upgrade

apt install -y apache2 apache2-utils

systemctl status apache2

systemctl start apache2

systemctl enable apache2

chown www-data:www-data /var/www/html/ -R

apt install mariadb-server mariadb-client

systemctl status mariadb

systemctl start mariadb

systemctl enable mariadb

mysql_secure_installation


apt install php7.4 libapache2-mod-php7.4 php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline

a2enmod php7.4

systemctl restart apache2

a2dismod php7.4

apt install php7.4-fpm

a2enmod proxy_fcgi setenvif

a2enconf php7.4-fpm

systemctl restart apache2



apt install phpmyadmin

mysql -u root

show grants for phpmyadmin@localhost;


Step 5: Troubleshoot phpMyAdmin Login Error

#1698 - Access denied for user 'root '@'localhost'

mysqli_real_connect(): (HY000/1698): Access denied for user 'root '@'localhost'


mysql -u root

create user eenpahlefi@localhost identified by 'eenpahlefi';

grant all privileges on *.* to admin@localhost with grant option;


UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE user = 'root';

#service --status-all



0 Response to "Cara Install LAMP Stack on Ubuntu 20.04"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel