{"id":45,"date":"2014-10-13T19:49:54","date_gmt":"2014-10-13T17:49:54","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=45"},"modified":"2019-04-01T19:15:30","modified_gmt":"2019-04-01T17:15:30","slug":"install-configure-mediawiki","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/install-configure-mediawiki\/","title":{"rendered":"Install &#038; configure MediaWiki"},"content":{"rendered":"<pre class=\"brush:bash shell\">\r\nModify \/usr\/local\/zy-pkgs\/gui\/mediawiki\/includes\/installer:\r\n\tsearch:\tprotected static function getPossibleBinPaths() {\r\n\tpatch:\treturn array('\/ffp\/sbin', '\/ffp\/bin', '\/ffp\/opt\/ejre1.7.0_60\/bin');\r\nPreinstalation:\r\n\t# mediawiki source files modifications\r\n\tcd \/usr\/local\/zy-pkgs\/gui\/mediawiki\r\n\tfind . -type f \\( -name \"*.py\" -o -name \"*.sh\" -o -name \"*.php\" -o -name \"*.pl\" \\) -exec sed -i s\/\"\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/ {} \\;\r\n\tfind . -type f \\( -name \"*.py\" -o -name \"*.sh\" -o -name \"*.php\" -o -name \"*.pl\" \\) -exec sed -i s\/\"\\\/usr\\\/bin\"\/\"\\\/ffp\\\/bin\"\/ {} \\;\r\n\tsed -i s\/\"\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/ maintenance\/storage\/make-blobs\r\n\tsed -i s\/\"\\\/usr\\\/bin\"\/\"\\\/ffp\\\/bin\"\/ maintenance\/mwjsduck-gen\r\n\tsed -i s\/\"\\\/usr\\\/bin\"\/\"\\\/ffp\\\/bin\"\/ maintenance\/hiphop\/run-server\r\n\tsed -i s\/\"\\\/usr\\\/bin\"\/\"\\\/ffp\\\/bin\"\/ maintenance\/Doxyfile\r\n\t#find . -type f \\( -name \"*.py\" -o -name \"*.sh\" -o -name \"*.php\" -o -name \"*.pl\" \\) -exec sed -i s\/\"\\\/ffp\\\/ffp\"\/\"\\\/ffp\"\/ {} \\;\r\n\t# Alternative PHP Cache (APC) installation\r\n\tcd \/ffp\/lib\/php\r\n\tpear install CodeGen_PECL\r\n\tphp peclcmd.php install APC\r\n\tphp peclcmd.php install intl\r\n\t# mysql database\r\n\tmysql -p\r\n\tmysql> CREATE DATABASE wiki CHARACTER SET utf8;\r\n\tmysql> GRANT ALL ON wiki.* TO 'wiki'@'localhost' IDENTIFIED BY 'wiki' WITH GRANT OPTION;\r\n\tmysql> FLUSH PRIVILEGES;\r\n\tmysql> exit;\r\nConfiguration:\r\n\tmysql account: wiki\/wiki\r\n\tAdministrator account: root\/xxx___\r\n\tSave generated LocalSettings.php to \/i-data\/md0\/seagate-ext4\/ProjectsNew\/nsa310-config\/trunk\/ffp\/home\/root\/temp.\r\n\tcp -v \/i-data\/md0\/seagate-ext4\/ProjectsNew\/nsa310-config\/trunk\/ffp\/home\/root\/temp\/LocalSettings.php \/usr\/local\/zy-pkgs\/gui\/mediawiki\r\nSee also:\r\n\thttp:\/\/www.mediawiki.org\/wiki\/Manual:LocalSettings.php\r\n\tThe LocalSettings.php file provides basic configuration settings (based on the DefaultSettings.php file) of a MediaWiki installation. You should take your time to review the settings in this file. The file is usually generated by the web-based MediaWiki installer but you can tweak the parameters, possibly in concert with Apache settings. \r\n\t\/usr\/local\/zy-pkgs\/gui\/mediawiki\/includes\/DefaultSettings.php\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Modify \/usr\/local\/zy-pkgs\/gui\/mediawiki\/includes\/installer: search: protected static function getPossibleBinPaths() { patch: return array(&#8216;\/ffp\/sbin&#8217;, &#8216;\/ffp\/bin&#8217;, &#8216;\/ffp\/opt\/ejre1.7.0_60\/bin&#8217;); Preinstalation: # mediawiki source files modifications cd \/usr\/local\/zy-pkgs\/gui\/mediawiki find . -type f \\( -name &#8220;*.py&#8221; -o -name &#8220;*.sh&#8221; -o -name &#8220;*.php&#8221; -o -name &#8220;*.pl&#8221; \\) -exec sed [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/install-configure-mediawiki\/#more-45\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Install &#038; configure MediaWiki<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,163],"tags":[],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-configuration","category-nsa310"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}