Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

A folder is mounted on a web server (Apache) with NFS but this server can't see the folder. I can see the folder but Apache cannot:

Starting httpd: Warning: DocumentRoot [/mount folder/.../] does not exist
Warning: DocumentRoot [/mount folder/.../] does not exist

NFS config /etc/export

/folder          192.168.x.x(rw,subtree_check,all_squash)

On client /etc/fstab

192.168.x.x:folder/ /folder nfs rw  0   0
share|improve this question

2 Answers

Easier way then taking away SELinux protection is simply to allow use of NFS to it:

setsebool httpd_use_nfs on
share|improve this answer

I found solution !

In the web server, edit /etc/sysconfig/selinux and disable this.

SELINUX=disabled
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.