LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Allow apache2 to read from mounted device (https://www.linuxquestions.org/questions/linux-software-2/allow-apache2-to-read-from-mounted-device-145320/)

suit4 02-12-2004 01:28 PM

Allow apache2 to read from mounted device
 
this might be a newbie question, but i just don't get it.

i'm running my system with winxp and linux.
on both os's is an apache2 running.

i'd like to use the htdocs on both linux and windows.

so i moved the htdocs to a fat32-partiotion, which is accessible from within linux.
(let's say /mnt/workspace/htdocs)

changing the apache server root to /mnt/workspace/htdocs causes a 'forbidden'

changing the server root back to /var/www/localhost/htdocs and replacing the original htdocs with a symlink to /mnt/workspace/htdocs does not help either.
even if i change the apache.conf to 'FollowSymLinks', still no access to my data.
(errorlog: No symbolic links allowed for ....)

i think, it's some kind of ownership or rights-problem.
or maybe a change in my fstab (option for /mnt/workspace is set to users)?

any ideas ?

thanks so far ....

cav 02-13-2004 04:26 PM

I had a lot of problems with apache permissions too. My solution was to symlink the folder, and do the old 'chmod a+rwx'. I think that has become my motto lately. When in doubt, chmod a+rwx. Security wise, not the best motto, so dont quote me on that.

cav 02-13-2004 04:29 PM

That reminds me, I also had to change the permissions on my fat drives at mount time in order for apache to read them. Do this by adding 'umount=000' to the options field in your fstab file. Like this:

/dev/hde5 /fat-d vfat defaults,umask=000 1 0
/dev/hdf3 /fat-e vfat defaults,umask=000 1 0

That also gives everybody all permissions, so use at your own risk.

suit4 02-16-2004 09:06 AM

thanks, thats it!
 
editing fstab fixed the problem.

apache now accepts access to my htdocs. cool.

next, i try to share my mysql database on both systems.....

thanks alot.


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