From Mageia wiki
Jump to: navigation, search
[root@localhost simonnzg]# urpmi mediawiki
In order to satisfy the 'php-gd' dependency, one of the following packages is needed:
 1- php-gd-5.3.14-1.mga2.x86_64: GD extension module for PHP (to install)
 2- php-gd-bundled-5.3.14-1.mga2.x86_64: GD extension module for PHP (to install)
What is your choice? (1-2) 1
In order to satisfy the 'webserver[*]' dependency, one of the following packages is needed:
 1- apache-2.2.22-12.mga2.x86_64: The most widely used Web server on the Internet (to install)
 2- lighttpd-1.4.30-5.mga2.x86_64: A fast webserver with minimal memory-footprint (to install)
 3- cherokee-1.2.101-7.mga2.x86_64: Extremely fast and flexible web server (to install)
 4- nginx-1.0.15-2.mga2.x86_64: Robust, small and high performance http and reverse proxy server (to install)
What is your choice? (1-4) 1
In order to satisfy the 'apache-mpm[== 2.2.22-12.mga2]' dependency, one of the following packages is needed:
 1- apache-mpm-prefork-2.2.22-12.mga2.x86_64: Implements a non-threaded, pre-forking web server (stable) (to install)
 2- apache-mpm-event-2.2.22-12.mga2.x86_64: Implements a hybrid multi-threaded multi-process web server (experimental) (to install)
 3- apache-mpm-worker-2.2.22-12.mga2.x86_64: Implements a hybrid multi-threaded multi-process web server (experimental) (to install)
 4- apache-mpm-peruser-2.2.22-12.mga2.x86_64: Implements a hybrid multi-process, multi-threaded web server (experimental) (to install)
 5- apache-mpm-itk-2.2.22-12.mga2.x86_64: Implements a non-threaded, pre-forking web server (experimental) (to install)
What is your choice? (1-5) 1
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release (distrib1)")
  apache                         2.2.22       12.mga2       x86_64  
  apache-mpm-prefork             2.2.22       12.mga2       x86_64  
  ghostscript                    9.05         2.mga2        x86_64  
  lib64freetype2                 1.3.1        40.mga2       x86_64  
  lib64mbfl1                     1.1.0        6.mga2        x86_64  
  lib64onig2                     5.9.2        2.mga1        x86_64  
  lib64t1lib5                    5.1.2        12.mga2       x86_64  
  lib64zziplib0                  0.13.60      2.mga1        x86_64  
  mediawiki                      1.16.5       3.mga2        x86_64  
  mediawiki-minimal              1.16.5       3.mga2        x86_64  
  perl-Algorithm-Diff            1.190.200    3.mga1        noarch  
  perl-Digest-SHA1               2.130.0      6.mga2        x86_64  
  perl-Tk                        804.30.0     1.mga2        x86_64  
  perl-XML-XPath                 1.130.0      2.mga1        noarch  
  php-channel-phpunit            1.3          7.mga2        noarch  
  php-pear                       1.9.4        3.mga2        noarch  
  php-pear-DbUnit                1.1.2        1.mga2        noarch  
  php-pear-File_Iterator         1.3.1        1.mga2        noarch  
  php-pear-Mail                  1.2.0        1.mga2        noarch  
  php-pear-Net_SMTP              1.6.1        1.mga2        noarch  
  php-pear-Net_Socket            1.0.10       1.mga1        noarch  
  php-pear-PHPUnit               3.6.10       1.mga2        noarch  
  php-pear-PHPUnit_MockObject    1.1.1        1.mga2        noarch  
  php-pear-PHPUnit_Selenium      1.2.3        2.mga2        noarch  
  php-pear-PHPUnit_Story         1.0.0        2.mga2        noarch  
  php-pear-PHP_CodeCoverage      1.1.2        1.mga2        noarch  
  php-pear-PHP_Invoker           1.1.0        1.mga2        noarch  
  php-pear-PHP_Timer             1.0.2        1.mga2        noarch  
  php-pear-PHP_TokenStream       1.1.3        1.mga2        noarch  
  php-pear-Text_Template         1.1.1        2.mga2        noarch  
  php-pear-channel-horde         1.0          15.mga2       noarch  
  php-pear-channel-symfony       1.0          7.mga2        noarch  
  php-suhosin                    0.9.33       6.mga2        x86_64  (suggested)
  php-symfony-YAML               1.0.6        2.mga2        noarch  
  php-timezonedb                 2012.3       1.mga2        x86_64  
  psutils                        p17          17.mga2       x86_64  
  t1lib-config                   5.1.2        12.mga2       x86_64  
  texlive-texmf                  20110705     7.mga2        noarch  
  webserver-base                 2.0          2.mga2        x86_64  
(medium "Core Updates (distrib3)")
  lib64kpathsea6                 20110705     5.1.mga2      x86_64  
  lib64php5_common5              5.3.14       1.mga2        x86_64  
  lib64pq9.1_5                   9.1.4        1.mga2        x86_64  
  lib64ptexenc1                  20110705     5.1.mga2      x86_64  
  php-cli                        5.3.14       1.mga2        x86_64  
  php-ctype                      5.3.14       1.mga2        x86_64  
  php-dom                        5.3.14       1.mga2        x86_64  
  php-filter                     5.3.14       1.mga2        x86_64  
  php-ftp                        5.3.14       1.mga2        x86_64  
  php-gd                         5.3.14       1.mga2        x86_64  
  php-gettext                    5.3.14       1.mga2        x86_64  
  php-hash                       5.3.14       1.mga2        x86_64  
  php-ini                        5.3.14       1.mga2        x86_64  
  php-json                       5.3.14       1.mga2        x86_64  
  php-mbstring                   5.3.14       1.mga2        x86_64  
  php-mysql                      5.3.14       1.mga2        x86_64  
  php-openssl                    5.3.14       1.mga2        x86_64  
  php-pgsql                      5.3.14       1.mga2        x86_64  
  php-posix                      5.3.14       1.mga2        x86_64  
  php-session                    5.3.14       1.mga2        x86_64  
  php-sysvsem                    5.3.14       1.mga2        x86_64  
  php-sysvshm                    5.3.14       1.mga2        x86_64  
  php-tokenizer                  5.3.14       1.mga2        x86_64  
  php-xml                        5.3.14       1.mga2        x86_64  
  php-xmlreader                  5.3.14       1.mga2        x86_64  
  php-xmlwriter                  5.3.14       1.mga2        x86_64  
  php-zlib                       5.3.14       1.mga2        x86_64  
  texlive                        20110705     5.1.mga2      x86_64 

Mediawiki notice

More information on package mediawiki-minimal-1.16.5-3.mga2.x86_64
This mediawiki package supports multiple instances, sometimes also
called Wiki Farms or Wiki Families, but you can use it for a single
instance just as well.

This works by running mediawiki-create <path>, where <path> is the
new desired location of your wiki(s) like

mediawiki-create /srv/my.host/wiki

Note that the parent directories must exist.

You also need to create an Apache config entry (if you use Apache for
serving mediawiki) like

DocumentRoot /srv/my.host/wiki
Alias /skins /usr/share/mediawiki/skins

(this example is for short URLs, e.g. ones w/o a "/wiki/" in the URL)


When upgrading from a mediawiki with php code and config in the same 
directory (we use /var/www/mediawiki as example), you can run:

rm -f /var/www/mediawiki/{index.php,api.php,opensearch_desc.php}
mediawiki-create /var/www/mediawiki
rm -rf /var/www/mediawiki/config/
mediawiki-updateall

Make sure the first line of PHP code in your LocalSettings.php is:
  $IP = '/usr/share/mediawiki';