Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-06-2009, 08:10 PM   #1
Registered: Jan 2006
Location: Memphis, TN
Posts: 38

Rep: Reputation: 15
Test HTML file locally with my browser before posting it on a WEB server

I can not test my INDEX.HTML document locally. The HTML document is properly formatted with html file extension. My operating system is Ubuntu and my browser is Mozilla Firefox. All Firefox does is display the HTML code.

I am doing nothing that I have not done many times with Microsoft Windows. Surely Linux operating systems provides the tools to check html files locally before posting them on a web server.

Old 06-06-2009, 08:43 PM   #2
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Yes, use apache2, available thru synaptic package manager
after installing, use file browser to go to /var/www.
If no www folder exists, make one in /var.
make a folder name "apache2-default" in "www".
Place index.html in /var/www/apach2-default folder.
Open firefox and enter into address bar
It should load your index.html
I had to reset it once and it worked.

You can also skip the "apache2-default" folder and just put the index.html in "www" folder too.

Last edited by linus72; 06-06-2009 at 08:44 PM.
Old 06-06-2009, 11:01 PM   #3
Registered: Jan 2007
Location: midwest USA
Distribution: gentoo w/ funtoo overlay
Posts: 146

Rep: Reputation: 23
you can also point firefox to the file itself /home/whatever/test.html

edit: whoops..missed the original bad


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PERL: Can you open an HTML file from a web address? SparceMatrix Programming 3 02-07-2006 12:06 PM
Help, Adding New HD to Web Server HTML folder jtyler Linux - General 1 10-27-2005 10:59 AM
Open HTML file in default browser through C++ Last Attacker Linux - General 10 10-20-2005 01:32 PM
Test Web Server comprookie2000 Linux - Networking 7 04-04-2005 12:12 AM
Strange html (web server) issue lenlutz Linux - Software 1 01-06-2004 11:44 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration