Difference between revisions of "CentOS 7.x Install mediawiki youtube plugin"

From Notes_Wiki
(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...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb self="Install mediawiki youtube plugin">CentOS_7.x_Mediawiki|Mediawiki</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x Mediawiki|Mediawiki]] > [[CentOS 7.x Install mediawiki youtube plugin]]
=CentOS 7.x Install mediawiki youtube plugin=


To configure mediawiki youtube plugin use following steps:
To configure mediawiki youtube plugin use following steps:
Line 30: Line 29:




<yambe:breadcrumb self="Install mediawiki youtube plugin">CentOS_7.x_Mediawiki|Mediawiki</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x Mediawiki|Mediawiki]] > [[CentOS 7.x Install mediawiki youtube plugin]]

Latest revision as of 09:19, 25 August 2022

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