Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th November 2004, 12:46 PM
Gaston Offline
Registered User
 
Join Date: Nov 2004
Posts: 3
Using another directory instead of /var/www/html

Hi

I'm using Fedora Core 3
I've started httpd, I've opened a web browser pointing to my server and the default Apache page was shown.
Then I've copied my web into /var/www/html directory, and I've restarted httpd
When I went to my browser and I've refreshed I saw my web
Until that moment every was OK, but
I don't want to use the default repositoy, instead I wanted to use /srv/www
I've created the folder structure, I've copied my files and I've changed the httpd.conf pointing to /srv/www
I've restarted the httpd server but I had and error saying that the repository has to be a folder???????
It is a folder, why is saying that is not a folder?
/srv/www is just another folder and is not under and NFS partition or anything like that

I'm not at home to copy the exact error, but I will post it later

Anyway, if somebody can gine a hint of what can I check

Thanks
Reply With Quote
  #2  
Old 11th November 2004, 01:11 PM
ilja Offline
Registered User
 
Join Date: Apr 2004
Location: Euregio
Posts: 3,613
just a guess
/srv/www/

or create a link from /var/www/html to /srv/www/
__________________
--
http://twitter.com/ik12
Reply With Quote
  #3  
Old 11th November 2004, 02:03 PM
Gaston Offline
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks Ilha
I've check with / at the end and without it
I've tried using link but didn't work
I've tried to link the index.html and works only to that file. I have to create a link for each file and I have 7300 files, so that is not a solution

I've tried to link the whole folder html but when I restar the httpd service it says that the documentRoot has to be a directory

I will try later using a Virtual Host
But that is Ok as a workarround anyway and not as a solution
Reply With Quote
  #4  
Old 11th November 2004, 02:59 PM
salaneking Offline
Registered User
 
Join Date: Oct 2004
Location: Mason OH
Age: 53
Posts: 17
Do a google on the error. This is a selinux problem. The rpm that sets permissions or security has a bug. I downloaded selinux-policy-targeted-1.17.30-2.20.noarch.rpm
and it fixed my problem. I can't give you a hint on where to find it, but you can try this one to see if it works

ftp://rpmfind.net/linux/fedora/core/...2-1.noarch.rpm

Last edited by salaneking; 11th November 2004 at 03:05 PM. Reason: add possible rpm location
Reply With Quote
  #5  
Old 11th November 2004, 03:07 PM
Gaston Offline
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks again
I found a newer version (selinux-policy-targeted-sources-1.18.2-3.noarch.rpm)
This site is good if you are looking for RPMs
http://rpm.pbone.net

I will check witch version I have now

I will try that today
Thanks
Reply With Quote
  #6  
Old 29th November 2004, 03:10 PM
nuker Offline
Registered User
 
Join Date: Nov 2004
Posts: 1
i downloaded and installed selinux-policy-targeted-sources-1.19.4-4.noarch.rpm from rpmfind.net and i still cannot change documentroot. i rebooted the system.

am i missing a step?
Reply With Quote
  #7  
Old 3rd December 2004, 02:07 AM
dallasnewbie Offline
Registered User
 
Join Date: Dec 2004
Posts: 1
nuker, why dont you just make up a virtual server. once you add a virtual it kills access to the default page and requests will be forwarded to your virtual.
Reply With Quote
Reply

Tags
directory, or var or www or html

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
text or html from directory listings vonedaddy Using Fedora 3 3rd February 2008 01:25 AM
How can I mount a directory out of the root directory kanbowei Using Fedora 7 13th November 2007 03:40 PM
unable to create any directory that uses numbers as the directory name fed.linuxgossip Using Fedora 19 8th October 2007 03:51 PM
fedora directory server with automounting home directory balorg Servers & Networking 2 7th August 2006 12:20 AM
Is home/user the User html directory ? swiftsage Servers & Networking 7 15th July 2005 05:41 PM


Current GMT-time: 17:01 (Thursday, 23-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