CentOS 7.x Install mediawiki youtube plugin

From Notes_Wiki
Revision as of 17:26, 28 January 2019 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb self="Install mediawiki youtube plugin">CentOS_7.x_Mediawiki|Mediawiki</yambe:breadcrumb> =CentOS 7.x Install mediawiki youtube plugin= To configure mediawi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb self="Install mediawiki youtube plugin">CentOS_7.x_Mediawiki|Mediawiki</yambe:breadcrumb>

CentOS 7.x Install mediawiki youtube plugin

To configure mediawiki youtube plugin use following steps:

  1. Open https://www.mediawiki.org/wiki/Special:ExtensionDistributor/YouTube and download extension using download link for appropriate mediawiki
  2. Go to mediawiki base folder
  3. cd ./extensions
  4. Extract downloaded file using:
    tar xzf <full-path>
    For example, tar xzf /home/saurabh/Downloads/YouTube-REL1_31-f6252db.tar.gz
  5. Edit LocalSettings.php for your mediawiki and append:
    #Load youtube extension
    wfLoadExtension( 'YouTube' );
    at bottom of file
  6. Go to special:version page of mediawiki and validate that extension is properly installed
  7. Test by embedding a youtube video and check if it is appearing properly
    To embed a YouTube video:
    <youtube>foo</youtube>
    where foo is the video ID from the URL. i.e. if the video's URL is https://www.youtube.com/watch?v=UwiNtMsdo1Y, then the embed code would be <youtube>UwiNtMsdo1Y</youtube>.

The steps have been validated for mediawiki 1.31. They should work on other modern versions also.



<yambe:breadcrumb self="Install mediawiki youtube plugin">CentOS_7.x_Mediawiki|Mediawiki</yambe:breadcrumb>