How to create your perfect server with ubuntu xenial


apt-get update && apt-get -y upgrade
apt-get install -y unzip
cd /tmp
wget --no-check-certificate -O installer.tgz "https://github.com/servisys/ispconfig_setup/tarball/master"
tar zxvf installer.tgz
cd *ispconfig*
bash install.sh

add index.php in default file of nginx at location : /etc/nginx/sites-available/default
enable phpmyadmin and squirrelmail by uncommenting in ispconfig.vhost location : /etc/nginx/sites-available/ispconfig.vhost

For Mysql backup
mysqldump -u root -p DB > DB.sql
For Mysql Restore
mysql -uUSER -pPASSWORD DB < DB.sql

To view service logs
sudo journalctl -f

To list journal entries for the nginx service:
sudo journalctl --unit nginx

To list journal entries for the nginx service starting from a given time:
sudo journalctl --unit nginx --sinceĀ  "2016-10-30 18:17:16"