LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 05-05-2004, 07:36 PM   #1
Lawful
LQ Newbie
 
Registered: Jul 2003
Distribution: red hat / pink tie
Posts: 20

Rep: Reputation: 0
Question apache hlep


I have recently installed fedora core one and setup my apache server for 2 host websites.
Everyone can geto the websites via their browsers and all seems ok.
Except when I open mozilla and try to resolve to the website I am unable to the browser hangs. mozilla is able to browse to any other websites in the net just not mine. If I try to brows to localhost via mozilla I get the default apache webpage and not my default virtual host page.
any ideas.
 
Old 05-05-2004, 10:05 PM   #2
adm1329
Member
 
Registered: Mar 2004
Distribution: CentOS 5
Posts: 128

Rep: Reputation: 17
what does the virtual hosts section look like in your httpd.conf file? Name based or ip based virtual hosting?

My thought right off is that if you're running name based you don't have the default virtual host set up quite right. I spent the past few days getting my server working properly with name based, so it's fresh in my head.
 
Old 05-06-2004, 08:05 PM   #3
Lawful
LQ Newbie
 
Registered: Jul 2003
Distribution: red hat / pink tie
Posts: 20

Original Poster
Rep: Reputation: 0
Igot it. But still need help.........

I did not have my httpd.conf configured correctly. It seemed that using the fedora http gui screwed the file up.

I do need your help with permissions though. I want to be able to ftp to the www root folder to update my website. What is the "rule of thumb " for http and ftp permissions?

ps you were right about the httpd.conf file.

Last edited by Lawful; 05-06-2004 at 08:06 PM.
 
Old 05-06-2004, 08:59 PM   #4
adm1329
Member
 
Registered: Mar 2004
Distribution: CentOS 5
Posts: 128

Rep: Reputation: 17
this is one that I've had a little trouble with... not sure exactly what the permissions need to be.
 
Old 05-08-2004, 01:09 PM   #5
adm1329
Member
 
Registered: Mar 2004
Distribution: CentOS 5
Posts: 128

Rep: Reputation: 17
since there have been no other posts I will tell you what I have got to work. It's probably the long way to go about it, but here it is anyway.

I created a user for the website and made that user part of the apache group. This user only has ftp access, and it's home directory is the same as the the root of the website.

Say I have my html files in /var/www/html and I have 2 subdirectories in the html directory called sub1 and sub 2, you'd do the following. I'll call the user "website".
Code:
cd /var/www
chown website html
cd html
chown website *
cd sub1 
chown website *
cd ../sub2
chown website *
Hope this helps, and maybe someone can tell us a better way to do this.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 10.1 network hlep caulfiek Slackware 6 08-04-2005 02:06 AM
Hlep installing gtk-gnutella mike8994 Linux - Newbie 8 05-25-2004 01:58 PM
linux-2.4.19,hlep Terra Linux From Scratch 2 07-30-2003 02:32 PM
hlep with samba monkeymartin Linux - Networking 1 04-03-2003 05:12 AM
3com 3cr990 and Redhat 8 - need hlep installing FiniteState Linux - Networking 5 02-03-2003 10:05 AM


All times are GMT -5. The time now is 12:56 AM.

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
Open Source Consulting | Domain Registration