LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apache and mount bind (https://www.linuxquestions.org/questions/linux-software-2/apache-and-mount-bind-446602/)

sciguy125 05-20-2006 12:51 AM

apache and mount bind
 
I recently rearranged my drives and files. In doing so, I decided to mount bind /var/www, which is where apache looks for files to serve. I have the following in fstab:
Code:

/mnt/raid/www    /var/www  none    bind  0 0
When I try to start httpd, I get this in the error log:
Quote:

[Fri May 19 21:15:20 2006] [notice] caught SIGTERM, shutting down
However, if I unmount /var/www, then make some dummy files there, apache works fine. Am I doing something wrong?


=== UPDATE ===
I was able to fix it. It was a problem with SELinux. I had to relabel /mnt/raid/www to work with httpd. The error in the log was an unrelated thing.


All times are GMT -5. The time now is 10:10 PM.