CentOS 7.x Install mediawiki youtube plugin
From Notes_Wiki
<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:
- Open https://www.mediawiki.org/wiki/Special:ExtensionDistributor/YouTube and download extension using download link for appropriate mediawiki
- Go to mediawiki base folder
- cd ./extensions
- Extract downloaded file using:
- tar xzf <full-path>
-
- For example, tar xzf /home/saurabh/Downloads/YouTube-REL1_31-f6252db.tar.gz
- Edit LocalSettings.php for your mediawiki and append:
- #Load youtube extension
- wfLoadExtension( 'YouTube' );
- at bottom of file
- Go to special:version page of mediawiki and validate that extension is properly installed
- 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>.
- To embed a YouTube video:
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>