User Tools

Site Tools


This is an old revision of the document!

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

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).

We can create a new file by typing this:

echo "<?php echo 'Hello, world\!'; ?>" > test.php
hello_world.1561456190.txt.gz · Last modified: 2019/06/25 09:49 by nmckillop