Installing MediaWiki: Difference between revisions

From Leechfinger
Jump to navigationJump to search
Qais (talk | contribs)
Created page with "== Installing MediaWiki == Category:Mediawiki"
 
Qais (talk | contribs)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Installing MediaWiki ==
== What is MediaWiki ==
MediaWiki is a free, open-source wiki software that allows users to create, edit, and organize wiki pages. It's used by Wikipedia, thousands of other wikis, and tens of thousands of other websites. MediaWiki is ideal for building online encyclopedias, documentation repositories, and knowledge bases. It offers multilingual support, extensions and plugins, robust permissions, and version tracking.
== Download and Install MediaWiki ==
You can download MediaWiki [https://www.mediawiki.org/wiki/Download here].


== Basic setup ==
We are setting up hellomoto.com and we are installing on Apache2. The directories are:
* cert /etc/apache/certs
* main apache config /etc/apache2/apache2.conf
* virtual site hellomoto /etc/apache2/site-available/hellomoto.conf
; hellomoto.conf
<syntaxhighlight lang="apache" line>
<VirtualHost *:80>
        ServerName www.hellomoto.com
        DocumentRoot /var/www/helomoto
        Redirect permanent / https://www.hellomoto.com/
</VirtualHost>
<VirtualHost *:80>
        ServerName hellomoto.com
        DocumentRoot /var/www/hellomoto
        Redirect permanent / https://hellomoto.com/
</VirtualHost>
<VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile /etc/apache2/certs/hellomoto.crt
        SSLCertificateKeyFile /etc/apache2/certs/hellomoto.key
        ServerName www.hellomoto.com:443
        DocumentRoot /var/www/hellomoto
        ErrorLog ${APACHE_LOG_DIR}/hellomoto.error.log
        CustomLog ${APACHE_LOG_DIR}/hellomoto.access.log combined
</VirtualHost>
<VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile /etc/apache2/certs/hellomoto.crt
        SSLCertificateKeyFile /etc/apache2/certs/hellomoto.key
        ServerName hellomoto.com:443
        DocumentRoot /var/www/hellomoto
        ErrorLog ${APACHE_LOG_DIR}/hellomoto.error.log
        CustomLog ${APACHE_LOG_DIR}/hellomoto.access.log combined
</VirtualHost>
<IfModule mod_rewrite.c>
        RewriteEngine On
</IfModule>
<Directory /var/www/hellomoto>
        RewriteEngine on
        RewriteBase /
        AllowOverride All
        # Short URL for wiki pages
        RewriteRule ^/?hm(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
        # Redirect / to Main Page
        RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
</Directory>
<Directory "/var/www/hellomoto/images">
        # Ignore .htaccess files
        AllowOverride None
        # Serve HTML as plaintext, don't execute SHTML
        AddType text/plain .html .htm .shtml .phtml
        # Don't run arbitrary PHP code.
        php_admin_flag engine off
        # Tell browsers to not sniff files
        Header set X-Content-Type-Options nosniff
        # If you've other scripting languages, disable them too.
</Directory>
</syntaxhighlight>
== MediaWiki Support ==
===== IRC =====
Server: irc.libera.chat, Port 6697, Channel MediaWiki<br>
[https://www.mediawiki.org/wiki/MediaWiki%20on%20IRC MediaWiki on IRC]
===== Post question =====
[https://www.mediawiki.org/wiki/Support Support for MediaWiki]
===== Mailing lists =====
[https://www.mediawiki.org/wiki/Mailing%20lists Mailing lists]
== Extensions ==
Extensions are plugins that can be added to MediaWiki to enhance the application. You can download extensions at [https://www.mediawiki.org/wiki/Extension%20Matrix here].
[[Category:Mediawiki]]
[[Category:Mediawiki]]

Latest revision as of 17:54, 27 May 2024

What is MediaWiki

MediaWiki is a free, open-source wiki software that allows users to create, edit, and organize wiki pages. It's used by Wikipedia, thousands of other wikis, and tens of thousands of other websites. MediaWiki is ideal for building online encyclopedias, documentation repositories, and knowledge bases. It offers multilingual support, extensions and plugins, robust permissions, and version tracking.

Download and Install MediaWiki

You can download MediaWiki here.

Basic setup

We are setting up hellomoto.com and we are installing on Apache2. The directories are:

  • cert /etc/apache/certs
  • main apache config /etc/apache2/apache2.conf
  • virtual site hellomoto /etc/apache2/site-available/hellomoto.conf
hellomoto.conf
<VirtualHost *:80>
        ServerName www.hellomoto.com
        DocumentRoot /var/www/helomoto
        Redirect permanent / https://www.hellomoto.com/
</VirtualHost>

<VirtualHost *:80>
        ServerName hellomoto.com
        DocumentRoot /var/www/hellomoto
        Redirect permanent / https://hellomoto.com/
</VirtualHost>

<VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile /etc/apache2/certs/hellomoto.crt
        SSLCertificateKeyFile /etc/apache2/certs/hellomoto.key
        ServerName www.hellomoto.com:443
        DocumentRoot /var/www/hellomoto

        ErrorLog ${APACHE_LOG_DIR}/hellomoto.error.log
        CustomLog ${APACHE_LOG_DIR}/hellomoto.access.log combined
</VirtualHost>
 
<VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile /etc/apache2/certs/hellomoto.crt
        SSLCertificateKeyFile /etc/apache2/certs/hellomoto.key
        ServerName hellomoto.com:443
        DocumentRoot /var/www/hellomoto

        ErrorLog ${APACHE_LOG_DIR}/hellomoto.error.log
        CustomLog ${APACHE_LOG_DIR}/hellomoto.access.log combined
</VirtualHost>

<IfModule mod_rewrite.c>
        RewriteEngine On
</IfModule>

<Directory /var/www/hellomoto>
        RewriteEngine on
        RewriteBase /
        AllowOverride All

        # Short URL for wiki pages
        RewriteRule ^/?hm(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]

        # Redirect / to Main Page
        RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
</Directory>


<Directory "/var/www/hellomoto/images">
        # Ignore .htaccess files
        AllowOverride None

        # Serve HTML as plaintext, don't execute SHTML
        AddType text/plain .html .htm .shtml .phtml

        # Don't run arbitrary PHP code.
        php_admin_flag engine off

        # Tell browsers to not sniff files
        Header set X-Content-Type-Options nosniff

        # If you've other scripting languages, disable them too.
</Directory>

MediaWiki Support

IRC

Server: irc.libera.chat, Port 6697, Channel MediaWiki
MediaWiki on IRC

Post question

Support for MediaWiki

Mailing lists

Mailing lists

Extensions

Extensions are plugins that can be added to MediaWiki to enhance the application. You can download extensions at here.