From IT Skills
Jump to: navigation, search
 
(Replaced content with "Category:Configuration ew:Installation")
Line 1: Line 1:
 
[[Category:Configuration]]
 
[[Category:Configuration]]
[[ukraine.com.ua]] hosting used.
+
[[ew:Installation]]
= Mediawiki =
 
*1.26 update
 
** crons to maintenance/update.php and (composer.phar update - has bug with searching for composer.json in /home/777/)
 
*** maybe [https://www.ukraine.com.ua/faq/ustanovka-composer.html#!8 Установка Composer] will help
 
*** put required extensions for composer in the  /home/777/composer.local.json file
 
*** run cron /usr/local/php56/bin/php -d extension=phar.so -f /home/777/www/aaw/composer.phar
 
*** copy extensions and vendor from /home/777
 
** updated some extensions
 
*1.24.2
 
== Extensions ==
 
*include("${IP}/extensions/DynamicPageList/DynamicPageList2.php");
 
*composer require mediawiki/header-footer ~2.1
 
**[[MediaWiki:Hf-nsheader-]] and many others, linksto redirected pages are not supported
 
**[[MediaWiki:Hf-nsfooter-]]
 
=== Google+ ===
 
!!does not work in local network, Google allows only public domain names
 
*http://www.mediawiki.org/wiki/Extension:GoogleLogin#Configuration
 
**[[Languages|language of site changed on EN]] because [https://console.developers.google.com/project/777/apiui/credential Authorized redirect URIs] does not understand Ukrainian 'і'
 
**https://console.developers.google.com/project/777/apiui/credential?clientType&authuser=1#\
 
**Google+ API allowed https://console.developers.google.com/project/777/apiui/apiview/plus/overview
 
**http://www.mediawiki.org/wiki/Extension:GoogleAPIClient is better than https://developers.google.com/api-client-library/php/start/installation
 
=== Semantic MediaWiki (SMW) ===
 
* PHP composer.phar require mediawiki/semantic-media-wiki "~2.1"
 
mediawiki/semantic-media-wiki suggests installing mediawiki/semantic-result-formats (Additional result formats for SMW queries)
 
 
 
mediawiki/semantic-media-wiki suggests installing mediawiki/semantic-forms (Easy creation of forms to add semantic data)
 
 
 
=== Social ===
 
SocialProfile and Comments
 
==== voting ====
 
https://www.mediawiki.org/wiki/Extension:AJAXPoll - simple but impossible to see other people results(maybe to look in db)
 
 
 
https://www.mediawiki.org/wiki/Extension:PollNY - cannot modify(add variants) poll after creation
 
 
 
Extension:VoteNY - doesn't work in MediaWiki:Hf-nsfooter-
 
=== graphs ===
 
* https://www.mediawiki.org/wiki/Extension:PlantUML allow_url_fopen was set to on and is better than https://www.mediawiki.org/wiki/Extension:ExternalUML
 
** UML - http://plantuml.com/classes.html
 
* GraphViz allowes links on pictures by composer, allowed writing permission to images folder
 
** Данное ПО не возможно установить на виртуальном хостинге. (ukraine.com.ua)
 
* tried https://www.mediawiki.org/wiki/Extension:MindMeister without success
 
=== multi-languages ===
 
==== planned ====
 
https://www.mediawiki.org/wiki/Help:Extension:Translate/Installation
 
 
 
http://www.mediawiki.org/wiki/MediaWiki_Language_Extension_Bundle
 
 
 
http://www.mediawiki.org/wiki/Extension:Lingo
 
 
 
tried https://www.mediawiki.org/wiki/Extension:LanguageTag
 
 
 
=== other planned ===
 
http://www.mediawiki.org/wiki/Extension:Add_Article_to_Category
 
 
 
http://www.mediawiki.org/wiki/Extension:Popups
 
 
 
== Optimizations ==
 
*http://www.mediawiki.org/wiki/User:Ilmari_Karonen/Performance_tuning
 
**$wgResourceLoaderUseESI = true; прискорила майже у кілька разів! однак при цьому в CategoryTree відключилося відкривання піддерев..
 
**added
 
*** in root .htaccess
 
<source lang=xml>
 
<IfModule mod_headers.c>
 
<FilesMatch "\.(js|css|gz)$">
 
Header set Cache-Control "max-age=60000"
 
Header append Vary: Accept-Encoding
 
</FilesMatch>
 
</IfModule>
 
<IfModule mod_headers.c>
 
<FilesMatch "\.(php)$">
 
Header set Cache-Control "max-age=300"
 
Header append Vary: Accept-Encoding
 
</FilesMatch>
 
</IfModule>
 
</source>
 
*** in skins .htaccess
 
<source lang=xml>
 
ExpiresActive On
 
ExpiresDefault "access plus 1 month"
 
</source>
 
=== [[Ukraine.com.ua]] ===
 
*має "Настройки параметров сайта"/"Кеширование"
 
*має "Настройки оптимизации сайта"
 
**extend_cache_images was set off to allowing proxy with only one IP opened
 
==== mail ====
 
*для работы с библиотекой PEAR вы можете закачать необходимые библиотеки прямо к себе на сайт (допустим, в папку pear в корне сайта) и в начале скриптов (обычно достаточно в index.php) добавить строку: set_include_path(get_include_path().PATH_SEPARATOR.'/home/логин-аккаунта/ваш-сайт.com/www/pear/'); Это даст вам возможность использовать любые модули PEAR.
 
== bugs ==
 
page with ' in name cannot be opened in mediawiki - the problem was only if wiki hosted on ukraine.com.ua was proxied by apache
 

Revision as of 16:57, 31 May 2016