Run the following commands from the lamp command line:
cd ~ mkdir public_html chmod 755 public_html
If you try to access http://lamp.cse.fau.edu/~username 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 http://www.php.net for more details.
Put your html or php files in public_html. You will be able to access the website by visiting http://lamp.cse.fau.edu/~username
Great…now how do i upload a file from my computer to the server?
i’ve tried looking it up but couldnt find any instructions.
I’ve updated http://tsg.eng.fau.edu/2010/08/30/setting-up-putty-and-winscp/
Basically you need to install WinSCP on your local computer and connect to lamp.cse.fau.edu. Using this tool you transfer files to and from the lamp server using drag and drop.
I’ve followed the instructions on this page, and installed WinSCP. I can see the html file I just created, but I still get a forbidden message when I try to go to my page.
I see two files created under public_html directory. One is called help.html and the other is called main.html. If you tried to access each directly they would display properly in your browser. For example: help.html – http://lamp.cse.fau.edu/~ahugo/help.html and main.html – http://lamp.cse.fau.edu/~ahugo/main.html
The reason you you see forbidden when you try and visit http://lamp.cse.fau.edu/~ahugo/ is because there doesn’t exist a default html file. The default html file must be called index.html or index.php. Try creating a new file in your public_html directory with the file name index.html and place some text like hello word!
I’m having trouble accessing my website. I get a 404 error as if either the file didn’t exist, or the directory didn’t exist. If you check my directory you will find that I created the correct folder and I have assigned them the permission specified by my instructor. However, its still not working properly!