sudo apt update
sudo apt upgrade
sudo apt install apache2
sudo systemctl status apache2
sudo apt install mariadb-server mariadb-client
sudo systemctl status mysql
sudo mysql_secure_installation
Set root password? [Y/n]: y
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
sudo apt install php php-common php-gd php-cli
echo «» | sudo tee /var/www/html/info.php
sudo apt install phpmyadmin
sudo systemctl restart apache2
sudo a2enconf phpmyadmin
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo systemctl restart apache2
sudo mysql -u root -p
MariaDB [(none)]> CREATE USER ‘admin’@’localhost’ IDENTIFIED BY ‘=@!#254tecmint’;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO ‘admin’@’localhost’ WITH GRANT OPTION;
MariaDB [(none)]> FLUSH PRIVILEGES;
sudo add-apt-repository -y ppa:ondrej/php
sudo apt update
sudo apt-get install -y php5.6 php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip libapache2-mod-php5.6
sudo apt install php php-common php-gd php-cli
sudo a2dismod php7
sudo a2enmod php5
sudo systemctl restart apache2