Fedora Linux Support Community & Resources Center
  #1  
Old 6th May 2006, 09:27 PM
ice2003 Offline
Registered User
 
Join Date: Apr 2006
Posts: 12
http driving me crazy

I am having a couple of problems that is driving me crazy with setting up an http service.

Have installed and am now running fedora 5 as i used to be running 4 , what i am wanting to do is change the root of the http docs, i change things via the config file of apache which works fine and point it to another dir , but when loding the page it gives me a you do not have access page. I have tried setting every sort of access to the dir but it just gives me the same thing. I am running it on just a local machine as i use it for my php coding testing.
What am i missing here is there something that i have not done right , both the firewall and selinux is turned off , another thing i am wanting to do is add a virtual host and point that in another dir , but i have to get the first one to work before i attempt that.

Any hints on where to go from here.

note: sorry put into wrong section should be server's could somebody move please.

Last edited by ice2003; 6th May 2006 at 09:36 PM.
Reply With Quote
  #2  
Old 7th May 2006, 02:05 AM
gavinw6662 Offline
Registered User
 
Join Date: Feb 2005
Age: 34
Posts: 1,281
Well 2 things come to mind. First of all - if you disabled selinux - how'd you do it?

edit etc/sysconfig/selinux , or setenforce 0 ?? If you did it the first way, you will need to restart fedora. If you did it the second way, then selinux should be disabled. That's good. Now, in order to view the web doc's in that folder, you need to make sure the permissions are set accordingly on that directory. Typically, you need to make sure that the directory is atleast readable all the way across the board. Typically you need something like 755 - or 744. It relaly depends on your setup. But make sure that directory is something more than 700 cause that will cause problems. Everyone neads 'read' access to an apache directory.
__________________
I read your e-mail
Reply With Quote
  #3  
Old 7th May 2006, 02:22 AM
ice2003 Offline
Registered User
 
Join Date: Apr 2006
Posts: 12
have done it both way's , either way selinux is disabled , and the folder is set to 777 so anything and everything should have access to it , but upon changing to that folder or any folder outside of /var/www/http throws up the access error , i am finding this so fustrating.
I had no problems with it on fedora 4 just changed the dir and bam thats where apache was getting the files from but now i am stummped.
Reply With Quote
  #4  
Old 12th May 2006, 12:44 AM
mdwolfe Offline
Registered User
 
Join Date: Apr 2006
Posts: 11
Quote:
Originally Posted by ice2003
have done it both way's , either way selinux is disabled , and the folder is set to 777 so anything and everything should have access to it , but upon changing to that folder or any folder outside of /var/www/http throws up the access error , i am finding this so fustrating.
I had no problems with it on fedora 4 just changed the dir and bam thats where apache was getting the files from but now i am stummped.
Sometimes folders don't like being 777. Have you tried making the folder 755?

Mary
Reply With Quote
  #5  
Old 12th May 2006, 01:44 AM
ice2003 Offline
Registered User
 
Join Date: Apr 2006
Posts: 12
yes have tried that as well with no success , i have just about given up now as everything i have tried seems to have failed.
Reply With Quote
  #6  
Old 12th May 2006, 02:07 AM
mdwolfe Offline
Registered User
 
Join Date: Apr 2006
Posts: 11
Quote:
Originally Posted by ice2003
yes have tried that as well with no success , i have just about given up now as everything i have tried seems to have failed.
Try setting it up as a virtual host. My other directory sites are all virtual hosts.

Mary
Reply With Quote
  #7  
Old 12th May 2006, 11:18 PM
ltam Offline
Registered User
 
Join Date: Dec 2004
Posts: 254
Quote:
Originally Posted by ice2003
have done it both way's , either way selinux is disabled , and the folder is set to 777 so anything and everything should have access to it , but upon changing to that folder or any folder outside of /var/www/http throws up the access error , i am finding this so fustrating.
I had no problems with it on fedora 4 just changed the dir and bam thats where apache was getting the files from but now i am stummped.
Are you trying to point to a directory still under the /var/www/html? Or outside?
__________________
*** Click here to vote on how many PC's you're running.

Have you made money using Linux? Tell us how.

Registered Linux User #377465
Reply With Quote
  #8  
Old 12th May 2006, 02:20 AM
ice2003 Offline
Registered User
 
Join Date: Apr 2006
Posts: 12
nope same deal , i dunno i give up something so simple that should not be a problem turns into a major drama its so fustrating.
Reply With Quote
  #9  
Old 12th May 2006, 08:47 AM
ccrvic Offline
Registered User
 
Join Date: Apr 2006
Posts: 1,092
Quote:
Originally Posted by ice2003
nope same deal , i dunno i give up something so simple that should not be a problem turns into a major drama its so fustrating.
What *exact* error are you getting on the browser?
What error is reported in the Apache error log?
What are the permissions on the file in question?
What contexts in your httpd.conf contain a DocumentRoot directive?

Vic.
Reply With Quote
  #10  
Old 12th May 2006, 11:31 PM
fpoole's Avatar
fpoole Offline
Registered User
 
Join Date: Jul 2005
Location: University of Kansas
Posts: 475
If the directory's permissions aren't set to Allow,deny in httpd.conf, then none of the chmodding will do anything. Also, make sure you don't have any busted .htaccess files in that folder or subdirectories. That will screw up a server faster tahn anything else.
__________________
Fedora 11 x64 | Tyan Thunder 3600B | 2x AMD Opteron 2376 "Shanghai" 2.3GHz Quad-Core CPUs | 16GB RAM Registered ECC DDR2 667 | Sapphire RadeonHD 4550 GPU | OCZ Apex 125GB SATA II SSD [ / ] | Seagate 1TB SATA HDD [ /home ]
Reply With Quote
  #11  
Old 13th May 2006, 12:39 AM
ice2003 Offline
Registered User
 
Join Date: Apr 2006
Posts: 12
Thanks for all the info guys i managed to solve the problem by the suggestion of setting up virtual hosts for users and did it that way. Its only on a local system running into a sandbox but the main thing is i finally got it work. Thanks for everybodys help
Reply With Quote
Reply

Tags
crazy, driving, http

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh driving me crazy linearfish Servers & Networking 5 26th October 2011 04:48 AM
driving me crazy nick.stumpos Using Fedora 5 30th October 2008 06:18 PM
VLC is driving me CrAzY bigboss2200 Using Fedora 7 18th October 2005 04:59 AM


Current GMT-time: 21:31 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat