 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

6th May 2006, 09:27 PM
|
|
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.
|

7th May 2006, 02:05 AM
|
|
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
|

7th May 2006, 02:22 AM
|
|
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.
|

12th May 2006, 12:44 AM
|
|
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
|

12th May 2006, 01:44 AM
|
|
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.
|

12th May 2006, 02:07 AM
|
|
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
|

12th May 2006, 11:18 PM
|
|
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
|

12th May 2006, 02:20 AM
|
|
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.
|

12th May 2006, 08:47 AM
|
|
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.
|

12th May 2006, 11:31 PM
|
 |
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 ]
|

13th May 2006, 12:39 AM
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 21:31 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|