Difference between revisions of "Setup:Installation Manual/Extensions/SyntaxHighlight GeSHi"
← Setup:Installation Manual/Extensions/SyntaxHighlight GeSHi
[unchecked revision] | [quality revision] |
(Created page with "{{DISPLAYTITLE:SyntaxHighlight_GeSHi}} __TOC__ The MediaWiki-extensions [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight SyntaxHighlight_GeSHi] is not running corre...") |
(→SyntaxHighlight_GeSHi and Windows) |
Contents
The MediaWiki-extensions SyntaxHighlight_GeSHi is not running correctly in some cases of setups. This document will show you how to configure your system environment that you can use the extension.
Tips for this Document[edit | edit source]
- Please, read this manual completely and work through the single installation steps one after another.
- For editing the configuration files with a text editor, the files must be saved in UTF-8 coding without BOM (Byte Order Mark).
-
The placeholder
<installpath-bluespice>
stands for the path to your BlueSpice installation, e.gC:\inetpub\wwwroot\bluespice
(Windows) or/var/www/bluespice
(Linux).
SyntaxHighlight_GeSHi and Linux[edit | edit source]
If you are using Linux as BlueSpice server it's enough make two files executable (chmod 755):
<installpath-bluespice>/extensions/SyntaxHighlight_GeSHi/pygments/create_pygmentize_bundle
<installpath-bluespice>/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize
For more information please refer to the article "File System Permissions".
SyntaxHighlight_GeSHi and Windows[edit | edit source]
First, please install latest version of Python 2.7.x. It is recommended to use the standard installation path (C:\Python27).
After that please open your windows command line and change to the subfolder "Scripts" in the Python installation path. Install the needed package "pygments" by using this command:
pip.exe install pygments
Now tell your BlueSpice installation where the pygmentize.exe can be found by setup this variable in your LocalSettings.php:
$wgPygmentizePath = "c:\\Python27\\Scripts\\pygmentize.exe";
At the end please take care that the temporary directory of your PHP installation (default: C:\Windows\Temp) is fully writable by your webserver.
With these steps your should have a working system setup to use the SyntaxHighlight_GeSHi without problem.
{{DISPLAYTITLE:SyntaxHighlight_GeSHi}} __TOC__ The MediaWiki-extensions [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight SyntaxHighlight_GeSHi] is not running correctly in some cases of setups. This document will show you how to configure your system environment that you can use the extension. ==Tips for this Document== * Please, read this manual completely and work through the single installation steps one after another. * For editing the configuration files with a text editor, the files must be saved in UTF-8 coding without BOM (Byte Order Mark). * The placeholder <code><installpath-bluespice></code> stands for the path to your BlueSpice installation, e.g <code>C:\inetpub\wwwroot\bluespice</code> (Windows) or <code>/var/www/bluespice</code> (Linux). ==SyntaxHighlight_GeSHi and Linux== If you are using Linux as BlueSpice server it's enough make two files executable (''chmod 755''): <code><installpath-bluespice>/extensions/SyntaxHighlight_GeSHi/pygments/create_pygmentize_bundle</code> <code><installpath-bluespice>/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize</code> For more information please refer to the article "[[Setup:Installation_Manual/Security_Settings/File_System_Permissions|File System Permissions]]". ==SyntaxHighlight_GeSHi and Windows== First, please install [https://www.python.org/|thedownloads/ latest version of Python 2.7.x]. It is recommended to use the standard installation path (''C:\Python27''). After that please open your windows command line and change to the subfolder "Scripts" in the Python installation path. Install the needed package "pygments" by using this command: pip.exe install pygments Now tell your BlueSpice installation where the pygmentize.exe can be found by setup this variable in your LocalSettings.php: $wgPygmentizePath = "c:\\Python27\\Scripts\\pygmentize.exe"; At the end please take care that the temporary directory of your PHP installation (default: C:\Windows\Temp) is fully writable by your webserver. With these steps your should have a working system setup to use the SyntaxHighlight_GeSHi without problem. [[en:{{FULLPAGENAME}}]][[en:Setup:Installationsanleitung/Erweiterungen/SyntaxHighlight_GeSHi]]
Line 19: | Line 19: | ||
==SyntaxHighlight_GeSHi and Windows== | ==SyntaxHighlight_GeSHi and Windows== | ||
− | First, please install [https://www.python.org/ | + | First, please install [https://www.python.org/downloads/ latest version of Python 2.7.x]. It is recommended to use the standard installation path (''C:\Python27''). |
After that please open your windows command line and change to the subfolder "Scripts" in the Python installation path. Install the needed package "pygments" by using this command: | After that please open your windows command line and change to the subfolder "Scripts" in the Python installation path. Install the needed package "pygments" by using this command: |