Installing PdfExport extension for mediawiki

From Notes_Wiki
Revision as of 09:44, 27 August 2018 by Saurabh (talk | contribs)

<yambe:breadcrumb self="Installing PdfExport extension for mediawiki">Mediawiki configuration|Mediawiki configuration</yambe:breadcrumb>

Installing PdfExport extension for mediawiki

To install pdfExport extension use following steps:

  1. Visit http://www.mediawiki.org/wiki/Special:ExtensionDistributor/PdfExport and download version of PdfExport compatible with Mediawiki version installed
  2. Copy the link and do wget of link in wiki extensions folder. You can also download the file using browser and copy it to extensions folder.
  3. "tar xzf PdfExport*.tar.gz" in extensions folder
  4. rm -f PdfExport*.tar.gz
  5. yum -y install htmldoc
  6. Edit 'LocalSettings.php' and append:
    require_once("$IP/extensions/PdfExport/PdfExport.php");
    $wgPdfExportHtmlDocPath = '/usr/bin/htmldoc';
    It is good idea to verify location of htmldoc package using 'which htmldoc' command
  7. The PdfExport extension assumes writable folder named tmp inside $wgUploadDirectory. Hence go to upload directory and create a folder named 'tmp' inside it. Change the permissions on this folder to '777'.



<yambe:breadcrumb self="Installing PdfExport extension for mediawiki">Mediawiki configuration|Mediawiki configuration</yambe:breadcrumb>