Setup a LAMP Server on Debian or Ubuntu
This setup is for Virtual Host server – not a dedicated server with a single domain
SSH to your server
apt-get update && apt-get upgrade --show-upgraded -y
Setup SSH for Remote Access With GPG Keys – No Password
IMPORANT – Block All Traffic to your Server While You Set it Up
Achtung! Do not install Apache/MySQL/PHP before hostname is set exactly the way you want it.
Edit hosts file on the remote server (not your local pc).
sudo vi /etc/hosts
add after (127.0.0.1 localhost)
127.0.1.1 server1.someuncommonname.com server1
Be careful with this line (above), its easy to leave the last part off (server1) and cost hours tracking down what went wrong.
sudo vi /etc/hostname
add this only line
Check if hostname is Set Correctly
output should be
sudo dpkg-reconfigure tzdata
Solve Future DNS Problems with OpenDNS
Install MYSQL Server
Submit your review
Thanks for the grat work.