Script Installer MediaWiki with SymLink

Hi,

I have a shared resources as described in http://www.mediawiki.org/wiki/Manual:Wiki_family#Scenario_4:_Multiple_wikis_sharing_common_resources and am tryingn to run a script installer upgrade. The upgrade fails with

Failed to extract source :
cp: cannot overwrite non-directory /home/domain.tld/domains/wiki.domain.tld/public_html/extensions' with directory /tmp/.webmin/545121_20715_2_mass_scripts.cgi/mediawiki-1.24.1/extensions’

The directory in question is a symbolic link to the global MediaWiki directory /var/lib/mediawiki/extensions and it is set with the Option FollowSymLinks in the Directory directive in /etc/apache2/conf.d/mediawiki.conf.

How can I fix this?

This is a somewhat different use case than Virtualmin anticipates (which is fully independent installations of scripts, so that each user can manage their own applications). But, Jamie may be able to detect this and work with it, without breaking the normal use case. I’ve filed a ticket to see if he has an opinion on this.

https://virtualmin.com/node/35948

That’s very kind - thank you!

For the time being I will need to find some good workaround, so that not all the script upgrades break … maybe a hard link, modifying LocalSettings.php to look for extensions in the global extensions directory … hmmm … but first of all I will try to follow your $EXT idea - looks most promising.

The reason behind all this is that I would love to provide a good set of extensions to all users, so that they can easily activate and deactivate them - I would rather not put all extensions into everybody’s mediawiki installation as it might become bloated.

We will see what Jamie says … :wink: