- Update package manager.
sudo apt-get update
- Install dan jalankan apache.
sudo apt-get install apache2 sudo systemctl start apache2.service
- Install MySQL.
sudo apt-get install mysql-server sudo /usr/bin/mysql_secure_installation
- Install php.
sudo apt-get install php
Install PHP extensions GD, MySQL.
sudo apt-get install -y php-{bcmath,bz2,intl,gd,mbstring,mcrypt,mysql,zip} && sudo apt-get install libapache2-mod-php -y
- Setting auto start untuk Apache dan MySQL.
sudo systemctl enable apache2.service sudo systemctl enable mysql.service
Restart Apache untuk menjalankan PHP.
systemctl restart apache2.service
Recent Comments