Install the required components to host the site, eg: a LAMP stack. Update the Ubuntu server and install LAMP, Linux, Apache, MySQL and PHP:
$ sudo apt-get update $ sudo apt-get install lamp-server^
Now we need to clone the default site config file, and customise it to our requirements. Once thats done, enable the site with a2ensite and restart Apache.
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/mysite.com.conf vim /etc/apache2/sites-available/mysite.com.conf sudo a2ensite mysite.com service apache2 restart
(Visited 233 times, 1 visits today)