Hi Jon I have created a symbolic link for my images and it works fine. ln -s /path/to/file /path/to/symlink
I have the whole web root of the system root drive Ex -> /app/mw/images Created symbolic link off the web root ln -s /app/images /app/mw/images -----Original Message----- From: MediaWiki-l [mailto:[email protected]] On Behalf Of Jon Theil Nielsen Sent: Sunday, January 17, 2016 7:31 PM To: [email protected] Subject: [MediaWiki-l] Problem with upload directory outside web root Hi list users, I have been through many manuals without finding something useful. I have a common code base and a couple of sites. Uploads should be outside the web root. To keep it organized and to save space on the servers drive. URL's should not reflect the actual path to the upload directory. I have tried something like $wgUploadDirectory = "/home/someuser/mediawiki/files"; $wgUploadPath = "{IP}/img"; I /can/ upload e.g. an image. I can see it in the list and I can find it in the automatically generated subdirectory. But when I click on the image link, I get an error like "The requested URL /usr/local/www/mediawiki/img/4/4f/IMG_4025a.jpg was not found on this server." I guess I could solve the problem by using a symlink from the sites images directory to the other directory. But I think there /should/ be a way to do it by setting the right options in the LocalSettings.php. Regards, Jon Theil Nielsen _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
