Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was wondering if this is possible:
I have a second fat32 partition mounted on '/mnt/data'
On this partion i have a folder '/server/www' and i would like apache to use this folder instead of '/srv/www'.
When i create a symbolic link on /srv/www to '/mnt/data/server/www' i get an "forbidden" error in apache.
I think it has something to do with permissions on the file system.
What i want is be able to read apache the content of '/mnt/data/server/www' and also be albe to write localy to store ht_docs to this location.
I'm also using vsftp and i would like that to use '/mnt/data/server/ftp'. Same way as apache.
Can some one help me with this? or give better sugestions on to to do this?
I'm using Suse 10.1
This is how it worked for 10.0 with symlinks:
(i guess with 10.1 it hasn't changed but i'm not sure ..) source
Quote:
We want symlinks so we edit /etc/apache2/default-server.conf so it looks like:
DocumentRoot "/srv/www/htdocs"
#
# Configure the DocumentRoot
#
<Directory "/srv/www/htdocs">
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
Options Indexes FollowSymLinks
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
# Options None
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>
The other option would be to not use symlinks but just change the document-root to point to that dir on your fat32. And yes, you might be right that it's still a permissions problem but try this first.
Also, please note that using symlinks can cause a security-risk when symlinks point to directories higher up.
I first tried to use FollowSymLinks in appache's conf but that didn't work.
Now i've tried just pointing documentroot to my folder on the fat32 disk and that does work.
No complaints about permissions. Thanks.
I haven't got it working correct.
Bu t i might swicht over to pureftpd since there is a kde progr for config that sever. mische be easier. But now i have compilling errors... :S ( totally different subject)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.