sudo apt-get update
sudo apt-get install apache2
To run more than one site on a single machine, you need to setup virtual hosts for sites your plan to host on an apache server.
sudo mkdir -p /var/www/aayushtuladhar.com/public_html
sudo chown -R $USER:$USER /var/www/aayushtuladhar.com/public_html
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/aayushtuladhar.com.conf
<VirtualHost *:80>
ServerAdmin admin@aayushtuladhar.com
ServerName aayushtuladhar.com
ServerAlias aayushtuladhar.com *.aayushtuladhar.com
DocumentRoot /var/www/aayshtuladhar.com/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
sudo a2ensite example.com.conf
sudo a2dissite 000-default.conf
sudo service apache2 restart # Ubuntu 15.10
sudo systemctl restart apache2 # Ubuntu 14.10 and Earlier