1. install apache2 sudo apt install apache2
sudo ufw app list
sudo ufw app info "Apache Full"
sudo ufw allow in "Apache Full"
sudo apt install curl
2. install mysql-server
sudo apt install mysql-server
sudo mysql_secure_installation
Validate Password Plugin DIASBLED.
sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'passwordnya';
FLUSH PRIVILEGES;
3. install php
sudo apt install php libapache2-mod-php php-mysql
index.php di majukan didepan
sudo nano /etc/apache2/mods-enabled/dir.conf
sudo systemctl restart apache2
sudo systemctl status apache2
apt search php- | less
apt show php-cli
apt search php- | less
sudo apt install php-cli
test file php
sudo nano /var/www/html/info.php
4. install phpmyadmin
sudo apt-get update
sudo apt install phpmyadmin php-mbstring php-gettext
sudo phpenmod mbstring
sudo mysql
CREATE USER 'taufikmas'@'localhost' IDENTIFIED BY 'admin123';
sudo nano /etc/apache2/apache2.conf
masukkan di line terakhir
Include /etc/phpmyadmin/apache.conf
source:
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-18-04
Share This :
0 comments