LinuxQuestions.org
Review your favorite Linux distribution.
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 04-05-2011, 01:14 AM   #1
athrin
Member
 
Registered: Mar 2011
Posts: 135

Rep: Reputation: 1
html


how to run the html in linux. the code i already complete but i just dont know how to run it. i store it inside /var/www/html/. i just cant run it
 
Old 04-05-2011, 01:16 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
HTML is not a prog lang, it's a a text layout prog https://secure.wikimedia.org/wikipedia/en/wiki/HTML.
Use you browser to go to your site; that will render the HTML for you
 
Old 04-05-2011, 03:06 AM   #3
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
chrism01 is right.
If you want to view your html content, you can try:

firefox file:/var/www/html

and if you started a http server configured to serve files from /var/www/html, then you can try http://localhost
 
Old 04-05-2011, 05:15 AM   #4
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
you can also make aliases for the page and stuff but that's another story
 
Old 04-05-2011, 09:52 PM   #5
athrin
Member
 
Registered: Mar 2011
Posts: 135

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by 16pide View Post
chrism01 is right.
If you want to view your html content, you can try:

firefox file:/var/www/html

and if you started a http server configured to serve files from /var/www/html, then you can try http://localhost
do i need to type this code??
Code:
firefox file:/var/www/html
some of my friend said that i need to change some setting at
Code:
/etc/httpd/conf
httpd.conf
is that true?

Last edited by athrin; 04-06-2011 at 12:06 AM.
 
Old 04-06-2011, 01:05 AM   #6
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
i think your friend is right
in my days at school we've set up a webserver (configured proxy, configured some config files) and it worked
but indeed httpd.conf is probably the best way to start looking (search on the internet or in the config file itself what it does)
the good thing about Linux is, that in the config files is a lot of information
 
Old 04-06-2011, 01:09 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try opening your browser eg firefox and put
Code:
http://localhost/
into the browser bar.

BTW please tell us which distro you are using.

Last edited by chrism01; 04-07-2011 at 01:09 AM.
 
Old 04-06-2011, 09:03 PM   #8
athrin
Member
 
Registered: Mar 2011
Posts: 135

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by chrism01 View Post
Try opening your browser eg firefox and put
[code]
http://localhost/
[code]
into the browser bar.

BTW please tell us which distro you are using.
distro? you mean red hat? or what?
 
Old 04-07-2011, 01:10 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Exactly; name & version of your Linux; try

Code:
cat /etc/*release*
Do add the result to your profile so we don't have to ask again.
See mine as an example
<--
 
1 members found this post helpful.
  


Reply


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
Merge Of Html Files Into A Single Html (or Pdf) fiomba Linux - Software 10 05-11-2018 11:28 AM
adding index.html to /var/www/html not working dannyboy990 Linux - Newbie 1 09-30-2007 08:43 AM
Search & Replace Technique to Fix html HREFs w/o html extension donv2 Linux - Newbie 1 01-30-2007 11:59 PM
index.html is not noticed in /var/www/html xviddivxoggmp3 Red Hat 1 04-23-2006 06:30 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 05:06 AM

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

All times are GMT -5. The time now is 06:23 AM.

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