LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 02: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, 02:16 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
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, 04: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, 06: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, 10: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 01:06 AM.
 
Old 04-06-2011, 02: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, 02:09 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
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 02:09 AM.
 
Old 04-06-2011, 10: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, 02:10 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
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 6 06-20-2011 08:28 PM
adding index.html to /var/www/html not working dannyboy990 Linux - Newbie 1 09-30-2007 09:43 AM
Search & Replace Technique to Fix html HREFs w/o html extension donv2 Linux - Newbie 1 01-31-2007 12:59 AM
index.html is not noticed in /var/www/html xviddivxoggmp3 Red Hat 1 04-23-2006 07:30 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 06:06 AM


All times are GMT -5. The time now is 08:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration