Install PHP
sudo apt install php libapache2-mod-php
Lalu buka http://localhost di browser.
Jika tampil seperti foto diatas maka PHP dan APACHE berhasil terinstall.
Install CURL
sudo apt install curl php-cli php-mbstring git unzip php-curl
Install composer melalui CURL (Recomended)
curl -sS https://getcomposer.org/installer |php
sudo mv composer.phar /usr/local/bin/composer
sudo service apache2 restart
Install component yang dibutuhkan untuk COMPOSER
sudo apt install curl php-cli php-mbstring git unzip php-curl
sudo apt-get install -y php7.*-gd
sudo apt-get install php7.*-intl
sudo apt-get install php7.*-xsl
sudo apt-get install php7.*-mbstring
jika terjadi error
[ErrorException] mkdir(): Permission denied
sudo chown -R $USER:$USER /var/www/html/
Install and Setup MariaDB
Install MariaDB using the package manager.
sudo apt install mariadb-server
install phpmyadmin
sudo apt-get install phpmyadmin
setelah installasi selesai kita akan login ke mysql melalui terminal
sudo mysql
USE mysql; UPDATE user SET plugin='mysql_native_password' WHERE user='root'; FLUSH PRIVILEGES;
Setting password untuk root. Password root adalah ‘root’
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root'; FLUSH PRIVILEGES;