Difference between revisions of "Installing PdfExport extension for mediawiki"

From Notes_Wiki
m
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>Mediawiki configuration</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Web based tools or applications]] > [[Mediawiki configuration]] > [[Installing PdfExport extension for mediawiki]]
=Installing PdfExport extension for mediawiki=


*First install `<tt>htmldoc</tt>' package using yum.
To install pdfExport extension use following steps:
*You can get the source code for extension from http://www.mediawiki.org/wiki/Extension:Pdf_Export/Source_Code Save all source file downloaded from the website  in `<tt>extensions/PdfExport</tt>' folder.
# Visit http://www.mediawiki.org/wiki/Special:ExtensionDistributor/PdfExport and download version of PdfExport compatible with Mediawiki version installed
*Then add below line in LocalSettings.php file.
# 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.
<pre>
# "tar xzf PdfExport*.tar.gz" in extensions folder
require_once("extensions/PdfExport/PdfExport.php");
# rm -f PdfExport*.tar.gz
</pre>
# yum -y install htmldoc
*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'.
# Edit '<tt>LocalSettings.php</tt>' and append:
#:<pre>
#:: require_once("$IP/extensions/PdfExport/PdfExport.php");
#:: $wgPdfExportHtmlDocPath = '/usr/bin/htmldoc';
#:</pre>
#::It is good idea to verify location of htmldoc package using '<tt>which htmldoc</tt>' command
#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'.
 
 
 
 
 
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Web based tools or applications]] > [[Mediawiki configuration]] > [[Installing PdfExport extension for mediawiki]]

Latest revision as of 13:08, 28 July 2022

Home > CentOS > CentOS 6.x > Web based tools or applications > Mediawiki configuration > 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'.



Home > CentOS > CentOS 6.x > Web based tools or applications > Mediawiki configuration > Installing PdfExport extension for mediawiki