Active Directory Products
Calls To Calendar
SMS To CSV
SMS To Gmail
Voicemail To Gmail
How Long For Me
<< 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.
Resolving CURLOPT_FOLLOWLOCATION cannot be activated with PHP and CURL
Resolving ASP.NET Web.Config Inheritance
Setting up a real VPN with your every day consumer router and DD-WRT
Reading IPhone Text Messages using C# and SQLite
Fixing Virtual PC 2007 To Run On Windows 7
Currently no comments.
Add A Comment
Email Address: (not public, used to send notifications on further comments)
Enter the text above, except for the 1st and last character: