View Full Version : Linux (Ubuntu) Website guide

04-14-2014, 10:12 PM
To setup a website on Linux is pretty easy.
First you will want to open the terminal to your server. (Make sure you have administrative powers)
Second use the command

sudo apt-get install apache2
Then we will want to install php

sudo apt-get install php5 libapache2-mod-php5
Now lets restart Apache (you can also use this command to "refresh" your website when you need to)

sudo service apache2 restart
Now install some general php apps

sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
Then we are going to restart apache one more time

sudo service apache2 restart

And thats it!
Place your web files in /var/www/

04-14-2014, 11:10 PM
Or just apt-get install lighttpd


Thanks for the quick guide!

04-15-2014, 12:57 AM
Yeah you could. Or you could use LAMP. But I like this way better imo. :)