Testseite: Unterschied zwischen den Versionen
Aus FB-Wiki
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
Zeile 2: | Zeile 2: | ||
siehe auch: [http://www.mediawiki.org/wiki/Extension:Google_Maps/Installation MediaWiki Extension], [http://code.google.com/intl/de/apis/maps/ Google API-Maps], [http://www.wulfen-wiki.de/index.php/Interaktive_Karten_erstellen Beispiel] | siehe auch: [http://www.mediawiki.org/wiki/Extension:Google_Maps/Installation MediaWiki Extension], [http://code.google.com/intl/de/apis/maps/ Google API-Maps], [http://www.wulfen-wiki.de/index.php/Interaktive_Karten_erstellen Beispiel] | ||
<!-- div style="float:right" --> | <!-- div style="float:right" --> | ||
− | <googlemap version="0.9" lat="54.087949" lon="12.134324" zoom="17"> | + | <googlemap version="0.9" lat="54.087949" lon="12.134324" zoom="17" width="700" height="600"> |
54.088115, 12.133407, Universitätsarchiv | 54.088115, 12.133407, Universitätsarchiv | ||
Universitätsplatz 1 | Universitätsplatz 1 |
Version vom 19. November 2009, 12:50 Uhr
GoogleMap Universitätsarchiv
siehe auch: MediaWiki Extension, Google API-Maps, Beispiel <googlemap version="0.9" lat="54.087949" lon="12.134324" zoom="17" width="700" height="600"> 54.088115, 12.133407, Universitätsarchiv Universitätsplatz 1 Straßenbahn: Lange Straße </googlemap>
--Admin 19:32, 28. Mär 2006 (W. Europe Daylight Time)
Projekte -> Testseite
Veranstaltungsarchiv -> Testseite
Fachinformation -> Testseite
style="border-bottom:1px dashed #aaaaaa;border-top:1px dashed #aaaaaa;background:#f9f9f9;padding:4px;font-size:0.95em;"
Universitaetsarchiv:Geschichte
ISBN 3-351-01763-4
- |
- |
- |
- |
Inhaltsverzeichnis
How do I install more than one Wiki-Server with SSL on Windows - MAR 2006 ?
- Installed Mar 2006, W2K3-Server, Apache 2.0.54, PHP5.04 (xampp-win32-1.4.14), MediaWiki 1.5.6
Solution : Shared VirtualHost with SSL, one IP-Address, one SSL-Certificate
- 1. Install MediaWiki
e.g. 2 Wiki-Server, install in real DocumentRoot, first in /DocumentRoot/wiki1 second in /DocumentRoot/wiki2
- 2. Rename index.php and add Alias in httpd.conf
Rename index.php e.g. in wiki1ix.php and wiki2ix.php
# GLOBAL AREA httpd.conf # First Wiki-Server Alias /wikisrv1 /DocumentRoot/wiki1/wiki1ix.php Alias /wiki1ix.php /DocumentRoot/wiki1/wiki1ix.php # Alias for upload-area Alias /uploads /DocumentRoot/wiki1/uploads # Second Wiki-Server Alias /wikisrv2 /DocumentRoot/wiki1/wiki2ix.php Alias /wiki2ix.php /DocumentRoot/wiki2/wiki2ix.php # Alias for upload-area Alias /uploads /DocumentRoot/wiki2/uploads
# VIRTUALHOST AREA httpd.conf <VirtualHost 111.111.111.111:80> ServerName www.domain.de ServerAdmin ... # Real DocumentRoot ! DocumentRoot "/DocumentRoot" ErrorLog ... CustomLog ... ... # Wiki-Server DirectoryIndex wiki1ix.php wiki2ix.php ... AccessFileName .htaccess ... ScriptAlias /php/ "/xampp/php/" Action application/x-httpd-php "/php/php.exe" ... </VirtualHost>
- 3. Settings in LocalSettings.php
$IP = "/DocumentRoot/wiki1"; ... $wgScriptPath = "/wiki1"; $wgScript = "$wgScriptPath/wiki1ix.php"; ... $wgArticlePath = "/wikisrv1/$1"; (wiki2 too)
- 4. Settings in .htaccess /DocumentRoot/wiki1
# RewriteRule SSL RewriteEngine On RewriteRule ^/$ /wiki1ix.php RewriteCond %{SERVER_PORT} !443$ RewriteRule ^(.*) https://www.domain.de/$1 [R=301,L] (wiki2 too)
- 5. Optional Settings in .htaccess /DocumentRoot
# deny access to Root Directory, rewrite to another virtual host RewriteEngine On RewriteRule ^/$ /index.html RewriteRule ^(.*) http://www.domain.de/othervhost/
# if Alias-Directory upload is indexed, rewrite home-link back to wiki RewriteCond %{HTTP_REFERER} https://www.domain.de/uploads/ RewriteRule ^(.*) https://www.domain.de/wiki1/InformationDirectoryPage
How do I install Imagemagick for Thumbnails on Windows - MAR 2006 ?
- Installed Mar 2006, W2K3-Server, Apache 2.0.54, PHP5.04 (xampp-win32-1.4.14), MediaWiki 1.5.6
- 1. Installation - ImageMagick
- Download from http://www.imagemagick.org/download/www/binary-releases.html - or look at http://www.imagemagick.org/download/binaries/ - DLL-version ImageMagick-6.2.6-1-Q8-windows-dll.exe - e.g. install in e:\usr\bin\sysexec - set PATH to e:\usr\bin\sysexec
- 2. Environment - LocalSettings.php :
NOT THIS FOR $IP : $IP = "E:\\xampp\\htdocs\\mediawiki"; MUST BE WITH SLASH : $IP = "/xampp/htdocs/mediawiki"; $wgEnableUploads = true; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "convert.exe";
- 3. PHP safe_mode - hhtpd.conf
php_admin_flag engine on php_admin_flag safe_mode on php_admin_value safe_mode_exec_dir /usr/bin/sysexec
- 4. Modify MediaWiki-PHP-Script includes/Image.php
// SHELL_EXEC COULDN'T EXECUTE WITH PHP-SAFE_MODE ON - USE SHELL ! function reallyRenderThumb( $thumbPath, $width, $height ) { ... -REMOVE // wfEscapeShellArg( $this->imagePath ), +ADD ( $this->imagePath ), -REMOVE // wfEscapeShellArg( $thumbPath ) ), +ADD ( $thumbPath ) ), ... -REMOVE // $conv = shell_exec( $cmd ); +ADD // php safe_mode on - set shell_exec to exec +ADD $conv = exec( $cmd ); ... -REMOVE // wfEscapeShellArg($this->imagePath) . " " . +ADD ($this->imagePath) . " " . -REMOVE // wfEscapeShellArg($thumbPath); +ADD ($thumbPath); ... -REMOVE // $conv = shell_exec( $cmd ); +ADD // php safe_mode on - set shell_exec to exec +ADD $conv = exec( $cmd ); ...