* [[Getting Started|Back to Getting Started overview]]
* [[Getting Started Part 2|(previous) Getting Started Part 2: Installing Web/DB/PHP]]
====== Getting Started Part 3: Hello World ======
===== 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:
sudo chown ubuntu:ubuntu /var/www/html/
cd /var/www/html/
mv index.html old.html
==== 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'')
==== Create the first program ====
We can create a new file called ''test.php'' containing some example PHP by typing this:
echo "" > test.php
If you refresh your new website, now you should see two files: ''old.html'' and ''test.php''
Clicking on ''test.php'' should show your newly created "Hello, world" program
* [[Editing files|(next) Getting Started Part 4: Editing files]]