New answers tagged

1

Actually, [http://example.com/image.jpg] is not correct. The correct way to insert an external image into a wikimedia page is http://example.com/image.jpg eg. no square brackets. Of course, make sure that you have added $wgAllowExternalImages = true to your configuration file to enable display of the image, as wikimedia defaults to not allowing externally ...


1

I believe that I've stumbled across a solid answer. Instead we can point to the default tmp directory by using $wgUploadDirectory. Then we can dump the temp files into a unique sub-directory. Custom temp directory code: (Paste into LocalSettings.php) $wgTmpDirectory = "{$wgUploadDirectory}/tmp/uniquename";


0

Best is not to touch these things and leave them as default. That means according to includes/DefaultSettings.php $wgTmpDirectory = false;


1

An explanation for the SELinux portion. I know next to nothing about mediawiki but use SELinux daily so I figured I would help explain what you are setting. I got the definitions from various man pages. httpd_can_network_connect_db (HTTPD Service) Allow HTTPD scripts and modules to network connect to databases. httpd_can_network_connect (HTTPD Service) ...


7

The following picks up on a fresh working LAMP installation under Red Hat 7 or clone (CentOS 7, Scientific Linux 7, Orcale 7, etc). Set Selinux to permissive for the installation. setenforce 0 First get the Mediawiki version you want from https://releases.wikimedia.org/mediawiki/ , at time of writing latest is https://releases.wikimedia.org/mediawiki/1.27/...


0

It is a regression of the 1.26. Here is the ticket: https://phabricator.wikimedia.org/T122499 Here is the workaround: Go to http://your.wiki.url/index.php?title=MediaWiki:Common.css Add the following code: .mw-search-results { float: none; }



Top 50 recent answers are included