-
15th November 2004, 06:54 PM
#1
Apache in fc3 wont start with a partition
I have just installed FC3 having upgraded from redhat 9 and FC2 but when I tried to setup apache the service fails to start giving:
Starting httpd: Syntax error on line 265 of /etc/httpd/conf/fttpd.conf:
Document root must be a directory.
[FAILED]
If I set it to an unmounted folder the server starts, but I have /dev/hda2 loaded as /var/www/html (as I need the 40Gb of space on that disk) and when apache starts it gives the error message. It is not my config of fstab because the files appear in the filesystem and on vsftpd.
-
15th November 2004, 09:01 PM
#2
ok, im getting somewhere, if I disable SELinux it loads no problems - can someone tell me how to configure SELinux to let it go?
-
14th December 2004, 12:06 AM
#3
I had the same problem.
The reasons are:
The apache can only read directories and files with certain types such as "httpd_sys_content_t".
[Good document]
Understanding and Customizing the Apache HTTP SELinux Policy (Beta Document)
http://fedora.redhat.com/docs/selinux-apache-fc3/
Quick solution is to change the property(?) of web-home directory and files.
# chcon -R -t httpd_sys_content_t /myHttpHome
Chek the directory and files using:
# ls -Z
Similar Threads
-
By LithiumKid1976 in forum Using Fedora
Replies: 0
Last Post: 29th December 2007, 10:33 PM
-
By jb8578 in forum Servers & Networking
Replies: 0
Last Post: 20th September 2007, 09:01 PM
-
By TheChihuahua in forum Servers & Networking
Replies: 9
Last Post: 6th August 2006, 10:35 AM
-
By dml in forum Installation, Upgrades and Live Media
Replies: 4
Last Post: 13th February 2006, 12:21 AM
-
By liderbug in forum EOL (End Of Life) Versions
Replies: 6
Last Post: 3rd March 2005, 05:19 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
[[template footer(Guest)]]