Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content

MediaWiki

5 Topics 73 Posts
  • MediaWiki - Package Updates

    Pinned
    37
    0 Votes
    37 Posts
    6k Views
    Package UpdatesP
    [3.5.0] Update mediawiki to 1.44.0 Full Changelog
  • Changing entry point URLs

    feature-request
    2
    1 Votes
    2 Posts
    53 Views
    jamesJ
    Hello @mononym I have investigated this issue and found the following. According to my understanding after reading the documentation the LocalSettings.php should include the following: # Set the script path to root $wgScriptPath = ""; # Set the article path for pretty URLs $wgArticlePath = "/$1"; # If you're using a different entry point than index.php $wgScript = "/index.php"; # For resource loading $wgResourceBasePath = $wgScriptPath; Just for good measure I also cleared the Main Page cache with: php maintenance/run.php purgePage <<< "Main Page" But sadly, this did also not work. So the only thing now breaking it could be the apache2 config and there it is. By default (not editable) - https://git.cloudron.io/packages/mediawiki-app/-/blob/master/apache/mediawiki.conf?ref_type=heads: ServerName %{HTTP_HOST} <VirtualHost *:8000> DocumentRoot /app/code LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy CustomLog "|/bin/cat" proxy ErrorLog "|/bin/cat" # https://www.mediawiki.org/wiki/Manual:Security php_flag register_globals off ## http://www.mediawiki.org/wiki/Manual:Short_URL/Apache RewriteEngine On RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L] RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L] <Directory /app/code> Options +FollowSymLinks AllowOverride All Require all granted </Directory> # some directories must be protected # images/ still has to be accessible since mw references it directly <Directory /app/code/images> Options -FollowSymLinks AllowOverride None <IfModule mod_php7.c> php_admin_flag engine off </IfModule> </Directory> </VirtualHost> I put the app into recovery mode and edited the Apache2 site file and changed the rewrite to the following: RewriteEngine On RewriteCond %{REQUEST_URI} !^/rest\.php RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L] and started the app with /app/pkg/start.sh and got a working MediaWiki under sub.DOMAIN.tld/Main_Page. To make this usable for you and everyone else, an app update would be needed where users, like you, could also upload a custom Apache2 site setting file that will be included to overwrite the default one. I am converting / hijacking this topic into a feature request.
  • Help Needed: OpenID "Sign In with" Text

    Solved
    6
    1 Votes
    6 Posts
    738 Views
    nebulonN
    Just to keep things updated here, we will add a per-Cloudron configuration variable in the next Cloudron release to give the OpenID provider a customizable name. Then the apps like Mediawiki which support that kind of customization will pick this up by default.
  • How do I install extensions?

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    nebulonN
    @SamGreenwood to install on the root domain, you can just leave the subdomain field empty to have it moved there.
  • Help Needed: Installing VisualEditor extension.

    19
    0 Votes
    19 Posts
    4k Views
    girishG
    @jtippetts I have to check your instance to see why it's not working. Can you write to us at support@cloudron.io ?