sudo apt-get update
sudo apt-get upgrade
sudo apt-get install tasksel
sudo tasksel
sudo nano /etc/apache2/sites-available/000-default.conf change our default web directory to www
sudo a2enmod rewrite sudo systemctl restart apache2
sudo nano /etc/apache2/apache2.conf scroll down to the following and AllowOverride ALL Options Indexes FollowSymLinks AllowOverride ALL Require all granted
sudo chgrp www-data /var/www sudo chmod 775 /var/www sudo chmod g+s /var/www usermod -a -G www-data your username sudo chown egon /var/www/ sudo service apache2 restart
sudo apt-get install phpmyadmin now grab the default login and password from mysql sudo nano /etc/mysql/debian.cnf Login to phpMyAdmin localhost/phpmyadmin
fix phpMyAdmin sudo nano /usr/share/phpmyadmin/libraries/plugin_interface.lib.php change if ($options != null && count($options) > 0) { to if ($options != null && count((array)$options) > 0) { and sudo nano /usr/share/phpmyadmin/libraries/sql.lib.php Press CTRL + W and search for (count($analyzed_sql_results['select_expr'] == 1) Replace it with ((count($analyzed_sql_results['select_expr']) == 1) Reboot!!!!!
sudo add-apt-repository ppa:webupd8team/atom sudo apt-get update sudo apt-get install atom Test our php now,....