Topic on Project:Support desk

Images Folder as Apache Alias

3
StephanNaro (talkcontribs)

Hi,

I have placed mediawiki itself in a WAMP folder under Program Files. For easier backups, I have placed my Images folder under my www (php source) root, and created an Alias in httpd.conf, ie www/mw/images.

This seems to work fine for displaying images - but not when uploading an image. The new file gets placed under WAMP\mediawiki\images, but is then looked for (and of course not found) under www/mw/images. I can "solve" this by copying (or moving?) the file manually into www/mw/images (I don't often add images), but I thought you might be interested in the issue anyway.

My setup: Apache/2.4.33 (Win64) PHP/7.2.11 mediawiki-1.31.1


MarkAHershberger (talkcontribs)
StephanNaro (talkcontribs)

OK, thanks. I did look into these earlier, but abandoned them in favour of Apache's Alias, because I found them to be too confusing.

I have now set $wgUploadDirectory, and tested an upload, which seems to work just fine.

I might suggest trying to make the Manual a bit clearer, especially regarding the different purpose of the two variables, but maybe I just didn't try hard enough to understand.

Thanks.

Reply to "Images Folder as Apache Alias"