Issues Uploading via Apache to Symbolic Linked Folder
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Issues Uploading via Apache to Symbolic Linked Folder
I am currently having an issue where I am trying to upload files from a webpage to a symbolically linked folder (which is a mounted NFS device) that is not under the document root. However, whenever I try and upload a file, it returns that the folder is not able to be found.
I already have FollowSymLinks enabled, and the mounted share is given the same permissions as my apache user at mount time.
Code:
<VirtualHost *:80>
DocumentRoot "/var/www/admin"
<Directory "/var/www/admin">
Options Indexes Includes FollowSymLinks
AllowOverride all
Order allow,deny
allow from all
</Directory>
ServerName admin.xyz.com
ServerAlias admin.xyz.com
ErrorLog "/var/log/httpd/admin-error.log"
CustomLog "/var/log/httpd/admin-access.log" common
</VirtualHost>
I switched to aliases over symlinks. Reading the folders is not an issue still, however I am still having issue writing to the directory from PHP uploads.
<VirtualHost *:80>
DocumentRoot "/var/www/opensnow"
<Directory "/var/www/opensnow">
Options Indexes FollowSymLinks Includes
AllowOverride all
Order allow,deny
allow from all
</Directory>
Alias /uploads /mnt/hut/os_uploads
Alias /vanilla/uploads /mnt/hut/os_uploads
Alias /vanilla/utility/thumbnail /mnt/hut/os_forums/thumbnails
Alias /js/upload /mnt/hut/os_uploads
<Directory "/mnt/hut/os_uploads">
Options Indexes FollowSymLinks Includes
</Directory>
<Directory "/mnt/hut/os_forums">
Options Indexes FollowSymLinks Includes
</Directory>
ServerName www.opensnow.com
</VirtualHost>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.