LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-06-2009, 07:10 PM   #1
mcanallyd
Member
 
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.

Thanks,
 
Old 06-06-2009, 07:43 PM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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
127.0.0.1
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 07:44 PM.
 
Old 06-06-2009, 10:01 PM   #3
MrChilly0
Member
 
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 post..my bad
 
  


Reply



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 11:06 AM
Help, Adding New HD to Web Server HTML folder jtyler Linux - General 1 10-27-2005 09:59 AM
Open HTML file in default browser through C++ Last Attacker Linux - General 10 10-20-2005 12:32 PM
Test Web Server comprookie2000 Linux - Networking 7 04-03-2005 11:12 PM
Strange html (web server) issue lenlutz Linux - Software 1 01-06-2004 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:34 PM.

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