Ubuntu Apache Webserver

From Hackers & Designers
Revision as of 13:13, 10 May 2016 by JBG (talk | contribs) (Created page with "= Installing Apache Webserver on Ubuntu = == Step 1 : SSH to your instance == <code>you@laptop:~$ ssh root@213.108.110.46</code> == Step 2 : Install Apache Webserver == <c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Installing Apache Webserver on Ubuntu

Step 1 : SSH to your instance

you@laptop:~$ ssh root@213.108.110.46

Step 2 : Install Apache Webserver

root@jbg:~# apt-get install apache2

Step 3 : Check the Webserver

Put your instance IP address (ex. 213.108.110.46) into your browser. You should see a page called "Apache2 Ubuntu Default Page".

Step 4 : Create your own homepage

root@jbg:~# cd /var/www/html root@jbg:~# mv index.html index.html.bkup

root@jbg:~# echo "

Welcome 127.0.0.1!

" > index.html

Refresh!