Difference between revisions of "Installing PdfExport extension for mediawiki"
From Notes_Wiki
m |
m |
||
Line 2: | Line 2: | ||
=Installing PdfExport extension for mediawiki= | =Installing PdfExport extension for mediawiki= | ||
To install pdfExport extension use following steps: | |||
# Visit http://www.mediawiki.org/wiki/Special:ExtensionDistributor/PdfExport and download version of PdfExport compatible with Mediawiki version installed | |||
# 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 | ||
# 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'. |
Revision as of 04:18, 14 April 2015
<yambe:breadcrumb>Mediawiki configuration</yambe:breadcrumb>
Installing PdfExport extension for mediawiki
To install pdfExport extension use following steps:
- Visit http://www.mediawiki.org/wiki/Special:ExtensionDistributor/PdfExport and download version of PdfExport compatible with Mediawiki version installed
- 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.
- "tar xzf PdfExport*.tar.gz" in extensions folder
- rm -f PdfExport*.tar.gz
- yum -y install htmldoc
- 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
- 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'.