User:Odessaukrain/Template:Pear

From mediawiki.org

This template is used to provide installation instructions to users wishing to include extensions from MediaWiki Extensions on GoogleCode using the PEAR channel located at PEAR Channel. Please remember that modifying this template modifies several pages.


Installation[edit]

See the Mediawiki Extension table entry "download" above.[1]

LocalSettings.php[edit]

Extension:ExtensionManager: See footnote[2]

  • Add the following to LocalSettings.php if the extension was downloaded from MediaWiki's SVN directory (link in the download entry of the table above) [3]:
require_once( "extensions/{{{1}}}/{{{1}}}.php ");

PEAR[edit]

PEAR is a repository of software code.

pear channel-discover mediawiki.googlecode.com/svn
  • Install extension through PEAR:
pear install mediawiki/{{{1}}}
  • Add the following to LocalSettings.php[3][2]:
require 'MediaWiki/{{{1}}}/{{{1}}}.php';

Upgrades through PEAR[edit]

Sometimes, it is necessary to clear PEAR's cache in order to perform upgrades.

pear clear-cache

or use the force method:

pear upgrade --force xyz

PEAR Web Frontend[edit]

For easier remote package management, PEAR Frontend WEB can be installed. Installation notes can be found here. An example of the WEB frontend is available here.

RSS feed[edit]

To keep kept up-to-date with this channel, use the following RSS feed.

  1. The most recent release is always available through the extension's PEAR and SVN repositories. This page is not necessarily up-to-date.
  2. 2.0 2.1 If using Extension:ExtensionManager, then skip any modification to LocalSettings.php. ExtensionManager takes care of including the extension. Note that if PHP code caching is in place (e.g. APC, eAccelerator), then to successfully complete the installation a cache flush might be needed.
  3. 3.0 3.1 Modifications to LocalSettings.php is only necessary if not using Extension:ExtensionManager