Ubuntu Apache New Website (in 10 seconds)

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 153 times, 1 visits today)
Facebooktwittergoogle_plusredditpinterestlinkedinmail

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.