LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-31-2003, 01:20 PM   #1
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Rep: Reputation: 30
Question Apache webserver httpd


hey i was reading a few other posts on this subject and what i got from this was that i need a dns host because i need to domain hosts ok so i got one
how do i set this all up i was reading these post and there soo confusing someones saying this and then someone else is saying something different so basicly i wanna set up my own website using apache i have it installed and its running.......now what????

Matt3333
 
Old 03-31-2003, 01:39 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You need to configure the server by modifying:
/etc/httpd/conf/httpd.conf

If you aren't very familiar you could install webmin
www.webmin.com

It is very good for basic service configuration.
 
Old 03-31-2003, 01:48 PM   #3
bahamat
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 158

Rep: Reputation: 30
You can run a web server on your computer without having a domain name. Just use your IP address to access it.

If you want a name to use, try a name service like dyndns.org

it's free, and very flexible to be able to fit most any situation you're in.
 
Old 03-31-2003, 02:37 PM   #4
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Original Poster
Rep: Reputation: 30
ok i got webmin i configured a new virtual host thats all done i went to dyndns.org got all that set up but now what do i do how to i make it lol hehe i dunno im sooo confused here sorry plz help me i made a dynamic host thing w/e u wanna call it and i configured it so that its configured in apache/webmin and now what would i do to get it up and running???

matt3333
 
Old 03-31-2003, 02:55 PM   #5
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Original Poster
Rep: Reputation: 30
I went to my ip address on the internet and it said welcom to blah blah and it said powered by apache and this server powered by Linux Mandrake so im guessing its working but now what do i do??? plz help!!!!


Matt3333
 
Old 03-31-2003, 03:07 PM   #6
bahamat
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 158

Rep: Reputation: 30
Start by reading this http://www.dyndns.org/support/faq.html
 
Old 03-31-2003, 05:26 PM   #7
EeEk
LQ Newbie
 
Registered: Mar 2003
Posts: 1

Rep: Reputation: 0
seems to me your servers working.

you now need to make the web page (if you havent??) and copy the files in to the htdocs directory...with 1 called index.html
 
Old 03-31-2003, 08:25 PM   #8
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Original Poster
Rep: Reputation: 30
ok but where would that dir be placed in my computer i was looking in /usr/lib/apache not in there ????? i type in the terminal whereis htdocs and it found it but i dunno where it is help


Matt3333
 
Old 03-31-2003, 08:53 PM   #9
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Rep: Reputation: 15
on redhat I believe it's /var/www/html
 
Old 04-02-2003, 01:29 PM   #10
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Original Poster
Rep: Reputation: 30
Thank-you it was there but its not leting me modify it or del it how would i change the permissions or is there away to tell it to look for index.html in another dir????

Matt3333
 
Old 04-02-2003, 01:47 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You can edit the DocumentRoot directive in /etc/httpd/conf/httpd.conf and set it to any path you like (so long as it exists and the user "apache" can read from it) - I usually use /home/www/html or /home/httpd/html. Most people find this works better as there is more space on their home partitions.

NOTE: You will need to be logged in as root to add the directories.

The reason you can't write to the current directory is because you do not have the correct permissions on it.

Look into:
chown
chgrp
chmod
 
Old 04-02-2003, 02:26 PM   #12
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Rep: Reputation: 15
You can do:

chmod 755 index.html

That will give read, write and execute permissions to the owner and read/execute permissions to everybody else...

To do it on all files use something like:

chmod -R /var/www/html

(use with caution....) I also concur with what david wrote.

Hube
 
Old 04-02-2003, 04:37 PM   #13
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Original Poster
Rep: Reputation: 30
Thank-you guys i got it all worked out i just loged into root changed them from there then loged outta root back into mine and worked fine but now i got another problem i dont think its broadcasting it out cuz i got one of my friends to try it and they just get connection refused any ideas y this is doing it???? i thought it was all good and working fine then i got one of my friendds to go to it and it didnt work plz help

Matt3333
 
Old 04-02-2003, 04:41 PM   #14
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Rep: Reputation: 15
Is your firewall open on port 80? Do you have router, is that allowing incoming traffic to reach your host machine?
 
  


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
Apache webserver name karupt Linux - Networking 2 08-01-2004 11:55 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
apache webserver nooodles Linux - Networking 8 06-30-2004 01:04 AM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM
Apache webserver trusouthrnplaya Linux - Networking 1 03-30-2003 11:34 AM


All times are GMT -5. The time now is 08:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration