NerdyHearn
Home
Blog

Contact
Mailing List

Software

Active Directory Products
Object Compare
Permission Compare

IPhone Products
Calls To Calendar
SMS To CSV
SMS To Gmail
Voicemail To Gmail

Sites
How Long For Me
SaveMySerials

Blog
Twitter

NerdyHearn - Blog


<< Back To All Blogs

Fedora Core 20 and Apache Virtual Host on mounted share

Monday, May 12th, 2014

I have been battling with an issue on Fedora Core 20 and Apache recently with an issue around receiving this error when trying to mount a virtual host in Apache and setting the DocumentRoot to a share under /mnt.

The error is:
[Mon May 12 21:42:02.632785 2014] [core:error] [pid 3974] (13)Permission denied: [client 192.168.1.200:50447] AH00035: access to / denied (filesystem path '/mnt/html') because search permissions are missing on a component of the path

I used chgrp to set the permissions on /mnt and /mnt/html and that didn't help me at all, I was still receiving the same message.

I even tried setting to a global 777 across the board for apache (this is a non-production server) and still no positive result.

The issue in the end was SELinux preventing access outside of it's defined default scope for Apache.

Running this fixed my issue:

chcon -R -h -t httpd_sys_content_t /mnt

This could be applied to other directory roots outside of the default /var/www as well.

SELinuxin' Tom Out.

Tags

Apache Howto

Related Blogs

Resolving CURLOPT_FOLLOWLOCATION cannot be activated with PHP and CURL
Determining if MOSS is Standard or Enterprise
Resolving Odd 5 Minute Timeout in HttpWebRequest.
Disabling Outlook restricted extensions

Comments

Currently no comments.

Add A Comment

Name:


URL:


Email Address: (not public, used to send notifications on further comments)


Comments:



Enter the text above, except for the 1st and last character:


NerdyHearn - Latest tech news relating to C#, ASP.NET, SharePoint, PHP, general development, and more. SaveMySerials - Protect yourself from theft, fire, natural disasters and more by recording your serial numbers