![]() In LocalSettings.php, edit these values: $wgEmergenc圜ontact = Copyright Text and Suppress Icon In LocalSettings.php, edit this value: $wgServer = "" Set the wiki site URL Logo: WikiMedia Logo: WikiMedia Put the logo in /resources/assets, then in LocalSettings.php, edit this value: $wgLogo = "$wgResourceBasePath/resources/assets/mylogo.png" In LocalSettings.php, edit this value: $wgSitename = "Acme Inc. After you do, refresh your browser and the settings will take hold. At the end, it creates a LocalSettings.php which you download, and then place in the root of your site. MediaWiki’s setup is quite well developed by now, and a lot of settings are done automatically for you. etc/nginx/sites-enabled/localhost - domain.To jog my own memory for the next time, I assembled this handy list of tips for setting up a MediaWiki site. # this will secure the MediaWiki uploads against arbitrary PHP injection attacks: Try_files $uri GATEWAY_INTERFACE CGI/1.1 įastcgi_param QUERY_STRING $query_string įastcgi_param REQUEST_METHOD $request_method įastcgi_param CONTENT_TYPE $content_type įastcgi_param CONTENT_LENGTH $content_length įastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name įastcgi_param SCRIPT_NAME $fastcgi_script_name įastcgi_param DOCUMENT_URI $document_uri įastcgi_param DOCUMENT_ROOT $document_root įastcgi_param SERVER_PROTOCOL $server_protocol įastcgi_param SERVER_NAME įastcgi_pass unix:/var/run/ ![]() Location ~* ^(.*)(install.php|LocalSettings.php|\.git) # uncomment this if you want to htpasswd-protect your site while you set it up initially Assuming your site is named, create a /etc/nginx/sites-available/ file with the following contents:Īccess_log /var/log/nginx/.log main Įrror_log /var/log/nginx/.log error Oh! Now we need to configure nginx to serve pages as the docs user. The line should start with php_admin_value and end with show_source. Please note that the last line is very long - I have split it into 3 lines for readability on this wiki, but you should combine them into a single line in your configuration file. This configuration file tells PHP to use the docs user when running MediaWiki. Posix_getgrgid, parse_ini_file, proc_get-status, proc_nice, proc_terminate, suexec, pclose, virtual, set_time_limit, show_source Php_admin_value = exec, system, shell_exec, passthru, popen, dl, curl_multi_exec, posix_getpwuid,ĭisk_total_space, disk_free_space, escapeshellcmd, escapeshellarg, eval, get_current_user, getmyuid, getmygid, Php_admin_value = /home/docs/php-errors.log Php_admin_value = /home/docs/public_html:/tmp Root # groupadd docs root # useradd -g docs -home /home/docs docs root # install -d /home/docs root # chown -R docs:docs /home/docs Set up PHPĪs our last major configuration step, we will configure the PHP FastCGI Process Manager by creating a /etc/php/fpm-php5.4/nf file with the following contents (existing contents can be deleted): When we run our wiki, we will run it as the docs user, for security. Mysql> grant index, create, select, insert, update, delete, alter, lock tables on mediawiki.* to identified by 'wikifever' Type '\c' to clear the current input statement. Other names may be trademarks of their respective Oracle is a registered trademark of Oracle Corporation and/or itsĪffiliates. Server version: 5.1.62-log Gentoo Linux mysql-5.1.62-r1Ĭopyright (c) 2000, 2011, Oracle and/or its affiliates. Now, let's create a database named mediawiki for use by MediaWiki, and a user to access this database, using a password of wikifever: Root # emerge -config mysql root # rc-update add mysql default root # rc-update add metalog default root # rc-update add postfix default root # rc root # mysql_secure_installation Database Setup Time to configure MySQL with a root password, start it, secure it, and enable it to start at boot. Root # emerge -jobs xcache metalog postfix Start and Configure Services This should pull in MySQL as well as php-5.4: >=dev-php/xcache-2.0.0 php_targets_php5-4Įmerge xcache, and we'll also emerge metalog and postfix. We will also properly secure MediaWiki, and also cover some additional tips and tricks, focusing on spam reduction.Īdd the following line to /etc/ nf:Īdd the following lines to /etc/portage/e/php:ĭev-lang/php curl exif fpm gd mysql mysqli sockets suhosin threads intl xmlreader xmlwriter We will use Nginx, xcache and PHP-FPM, which will result in good performance. This page documents how to set up MediaWiki on Funtoo Linux, from a bare stage3 install with network connectivity. ![]() MediaWiki is a Web-server-stack web application. As of late 1.22 and 1.23, MediaWiki now unofficially works with php-5.5
0 Comments
Leave a Reply. |