Creating Webspace

Run the following commands from the lamp command line:

cd ~
mkdir public_html
chmod 755 public_html

If you try to access you will get a forbidden message. You still need to create your first html web page file. From the command line run:

echo "Hello World" >> ~/public_html/index.html

By default the web server will look for a file named index.html or index.php in public_html. If any of those files exist it will open and display the contents. Files that end with .php will be parsed for PHP code, please see for more details.

Put your html or php files in public_html. You will be able to access the website by visiting