LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-31-2003, 04:02 PM   #1
zetsui
Member
 
Registered: Jun 2003
Location: Jersey City, NJ
Distribution: Mandrake 9.1 is sooooo easy that patrick starr could use it
Posts: 217

Rep: Reputation: 30
Apache and webhosting simple NEWBIE QUESTION


i wanted to know apache is used or hiosting webpages you built, how do you set the website adress, i am new to all this but i want to know what is hosting and how apache has to do with anything.........
 
Old 07-31-2003, 04:14 PM   #2
rajbaxi
Member
 
Registered: Jul 2003
Location: MI
Distribution: redhat,mandrake,debian
Posts: 68

Rep: Reputation: 15
The best thing is use setup VirtualHosts. See the Apache documentation.
 
Old 07-31-2003, 04:24 PM   #3
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Pardon me if I'm wrong, you know apache is involved in websites somehow but don't what it really does?


Put it this way to view a Microsoft Word Document you have to open Microsoft Word to see it. Same principle on websites, each individual page is a documetn and apache opens it up so you can read it amongst a complex of other thigs.


My apologies if I patronised, where was that stone I was gonna crawl under
 
Old 07-31-2003, 04:38 PM   #4
rajbaxi
Member
 
Registered: Jul 2003
Location: MI
Distribution: redhat,mandrake,debian
Posts: 68

Rep: Reputation: 15
oops... misread the question. apache is a webserver like Microsoft's IIS. It tells the server computer what document to load when the client computer accesses the URL.
 
Old 07-31-2003, 07:26 PM   #5
zetsui
Member
 
Registered: Jun 2003
Location: Jersey City, NJ
Distribution: Mandrake 9.1 is sooooo easy that patrick starr could use it
Posts: 217

Original Poster
Rep: Reputation: 30
im sorry i really couldn't find the words for posting the question lol anyways i wanted to ask what basically goes into creating and putting a webpage on the internet?
 
Old 07-31-2003, 08:37 PM   #6
scius
Member
 
Registered: Jul 2003
Location: Berkeley
Distribution: gentoo (kernel 2.6.7)
Posts: 39

Rep: Reputation: 15
i was wondering the exact same thing a day ago. Here are the (extremely general) steps... (there are excellent tutorials on how to do this all over the web)

If you dont have apache... Download/Install it.
If/once you do:
type "#httpd start" (you might need to do this from root)
check "http://yourIP/" to see if it's up. You should see an apache defualt page. Next you need to put files into your webspace.
You can check /usr/local/apache/conf/httpd.conf (I think) to see where the file is that holds your site, but the default is "/vars/www/html/" so your is probably there. Now just throw something in there, name it "index.html" and you're set to go. You can also do this using symbolic links to your /home/usr or any other directory, so you wont always need root access to change things. I found that very useful. (to make a symbolic link type "ln -s /name/of/directory/or/file.jpg /vars/www/html/ANYTHING" now replace the first path with the path to the file or whatever you want to be on the website, and replace anything with what you want it to be called on your website.)

that should get you up and going. Any questions please post. I dont know much, but i'll help what i can.
 
Old 07-31-2003, 09:41 PM   #7
zetsui
Member
 
Registered: Jun 2003
Location: Jersey City, NJ
Distribution: Mandrake 9.1 is sooooo easy that patrick starr could use it
Posts: 217

Original Poster
Rep: Reputation: 30
thx man but that's not what im asking i am asking if apachi holds webpages how do you determien the adress for the webpage
 
Old 08-01-2003, 02:08 AM   #8
gabriele_101
Member
 
Registered: Oct 2001
Location: CAMBRIDGE, MA USA
Distribution: RH9 Kernel 2.4.20-18.9
Posts: 69

Rep: Reputation: 15
In its simplest form:

http://some.machine.somewhere.com/somedir/somepage.html

http:// = use the web
some.machine.somewhere.com = either the name of the machine you are running apache on or the ip address (e.g., 127.0.01).
somedir = the name of a directory as explained below.
somepage.html = the name of the HTML file to be "served" to the user.

somedir is defined relative the DocumentRoot (and DocumentRoot is usually defined in your /etc/httpd/conf/httpd.conf file) so that if you have the line
Code:
DocumentRoot "/path/to/docroot"
Then the file somepage.html is actually located at
Code:
/path/to/docroot/somedir/somepage.html
It gets more complicated if you are using virtual hosts, multiple domains. multiple IP addresses, and aliased directories, but I'm guessing that you're not doing that right now

-G
 
Old 08-01-2003, 05:34 PM   #9
zetsui
Member
 
Registered: Jun 2003
Location: Jersey City, NJ
Distribution: Mandrake 9.1 is sooooo easy that patrick starr could use it
Posts: 217

Original Poster
Rep: Reputation: 30
thx gabriel are you a teen girl :-* read my sig ^.^
 
Old 08-01-2003, 05:48 PM   #10
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
What you need is your hand and your self and a good file sharing program that supports mpegs.

Haha.
 
  


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
Simple newbie question - how to... mazzo Linux - Wireless Networking 4 09-02-2004 04:34 PM
simple newbie question naijaguy Red Hat 1 08-11-2004 11:55 PM
Simple newbie question izrahi Linux - Newbie 1 08-11-2004 06:07 PM
REALLY newbie question(simple to respond...) Nechos Linux - Newbie 7 09-27-2003 07:22 PM
A simple newbie question ! trubi Linux - General 19 01-30-2003 09:34 AM


All times are GMT -5. The time now is 03:59 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