Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Servers

Servers The place to discuss any Fedora server problems you may have.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2004-11-11, 05:46 AM CST
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 2004-11-11, 06:11 AM CST
ilja Offline
Administrator
 
Join Date: Apr 2004
Location: Euregio
Posts: 3,594
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 2004-11-11, 07:03 AM CST
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 2004-11-11, 07:59 AM CST
salaneking Offline
Registered User
 
Join Date: Oct 2004
Location: Mason OH
Age: 50
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; 2004-11-11 at 08:05 AM CST. Reason: add possible rpm location
Reply With Quote
  #5  
Old 2004-11-11, 08:07 AM CST
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 2004-11-29, 08:10 AM CST
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 2004-12-02, 07:07 PM CST
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
text or html from directory listings vonedaddy General Support 3 2008-02-02 06:25 PM CST
How can I mount a directory out of the root directory kanbowei General Support 7 2007-11-13 08:40 AM CST
unable to create any directory that uses numbers as the directory name fed.linuxgossip General Support 19 2007-10-08 08:51 AM CDT
fedora directory server with automounting home directory balorg Servers 2 2006-08-06 05:20 PM CDT
Is home/user the User html directory ? swiftsage Servers 7 2005-07-15 10:41 AM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 12:53 PM CST.

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 | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
vB Enterprise Translator (vBET 2.3.8) made by NLP-er