CentOS 7.x Install mediawiki youtube plugin

From Notes_Wiki

Home > CentOS > CentOS 7.x > Web Based Tools > Mediawiki > 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.



Home > CentOS > CentOS 7.x > Web Based Tools > Mediawiki > CentOS 7.x Install mediawiki youtube plugin