User Tools

Site Tools


hello_world

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
hello_world [2019/06/25 10:52]
nmckillop
hello_world [2019/06/25 10:53]
nmckillop
Line 1: Line 1:
 +=== Your first Hello World program ===
 +
 +==== Setting permissions ====
 +
 First, we need to give our current user (ubuntu) permission to edit files on the webserver, then we change to the web directory and move the old index.html file out of the way: First, we need to give our current user (ubuntu) permission to edit files on the webserver, then we change to the web directory and move the old index.html file out of the way:
  
Line 6: Line 10:
 mv index.html old.html mv index.html old.html
 </​code>​ </​code>​
 +
 +==== Visit your website ====
  
 Now, if you vist your IP address (the one we connect to via Putty/ssh) in your browser you should see a directory listing that contains one file (old.html). Now, if you vist your IP address (the one we connect to via Putty/ssh) in your browser you should see a directory listing that contains one file (old.html).
 +
 +==== Create the first program ====
  
 We can create a new file by typing this: We can create a new file by typing this:
hello_world.txt ยท Last modified: 2019/06/25 10:53 by nmckillop