Editing MediaWiki/Installation

From Bibliotheca Anonoma

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 9: Line 9:
While a home server could work for personal use, consider using a hosted instance like the DigitalOcean or Amazon AWS, which provides greater reliability and explicitly allows website hosting, whereas home connections may have restrictions on such activity.
While a home server could work for personal use, consider using a hosted instance like the DigitalOcean or Amazon AWS, which provides greater reliability and explicitly allows website hosting, whereas home connections may have restrictions on such activity.


=== Base ===
* Base The basic configuration for an optimized MediaWiki instance.
 
** Web Server: [[Nginx/MediaWiki]] – Nginx is used in place of Apache for its greater effectiveness with static content and SSL support.
The basic configuration for an optimized MediaWiki instance.
** PHP Engine: [[HHVM]] – HHVM was created by Facebook as a Just-in-Time compiling virtual machine that provides higher performance for PHP programs like MediaWiki.
 
** SQL Database: [[MariaDB]]/[[PostgreSQL]] – Either of these SQL databases will work, but MariaDB is used most often by the Wikimedia Foundation and has best compatibility with extensions.
* Web Server: [[Nginx/MediaWiki]] – Nginx is used in place of Apache for its greater effectiveness with static content and SSL support.
** Wiki Software: [[MediaWiki/Extraction]] – MediaWiki is used as the wiki software. It is set up after the web server, PHP engine, and SQL Database.
* PHP Engine: [[PHP/HHVM|HHVM]] – HHVM was created by Facebook as a Just-in-Time compiling virtual machine that provides higher performance for PHP programs like MediaWiki.
** Cache: [[Memcached]] – Caches significantly lighten the load on the SQL database, and memcached is particularly easy to set up.
** [[PHP/FPM|PHP-FPM]] - Alternatively, you could use PHP-FPM with MediaWiki, since HHVM only supports 64-bit Intel/AMD platforms.
* Optional Additional configurations that can be added once the wiki increases in usage. You can look up how to set these up online.
* SQL Database: [[MariaDB/MediaWiki|MariaDB]]/[[PostgreSQL/MediaWiki|PostgreSQL]] – Either of these SQL databases will work, but MariaDB is used most often by the Wikimedia Foundation and has best compatibility with extensions.
** Job Queue: [[Redis]] – The Job Queue can also be cached to reduce database load.
* Wiki Software: [[MediaWiki/Deployment]] – MediaWiki is used as the wiki software. It is set up after the web server, PHP engine, and SQL Database.
** Dynamic Caching Server: [[Varnish]] – Wikimedia servers utilize this caching front server to significantly reduce the regeneration that dynamic pages need.
* Cache: [[Memcached/MediaWiki|Memcached]] – Caches significantly lighten the load on the SQL database, and memcached is particularly easy to set up.
** Content Delivery Network: [[Cloudflare]] – Reduce the threat of DDoS attacks with a load balancing Content Delivery Network.
 
=== Optional ===
 
Additional configurations that can be added once the wiki increases in usage. You can look up how to set these up online.
 
* Job Queue: [[Redis/MediaWiki|Redis]] – The Job Queue can also be cached to reduce database load.
* Dynamic Caching Server: [[Varnish/MediaWiki|Varnish]] – Wikimedia servers utilize this caching front server to significantly reduce the regeneration that dynamic pages need.
* Content Delivery Network: [[Cloudflare/MediaWiki|Cloudflare]] – Reduce the threat of DDoS attacks with a load balancing Content Delivery Network.


== Links ==
== Links ==
Line 41: Line 33:


https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Debian_or_Ubuntu
https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Debian_or_Ubuntu
== Procedure (CentOS) ==
=== Install PHP7.2 ===
{{bc|
sudo yum -y install ImageMagick php72w-fpm php72w-intl php72w-xml php72w-curl php72w-gd php72w-mbstring php72w-mysql php72w-cli php72w-pear php72w-pecl-apcu
}}
=== Set up Nginx ===
=== Install Mediawiki ===
https://www.howtoforge.com/tutorial/how-to-install-and-configure-mediawiki-with-nginx-on-centos-7/
{{bc|
wget https://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.1.tar.gz
}}
Please note that all contributions to Bibliotheca Anonoma are considered to be released under the Creative Commons Attribution-ShareAlike (see Bibliotheca Anonoma:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: