1. Environment installation: Nginx Install nginx-1.5.7php install PHP 5.4.10 (CLI) (Built:jul 16:45:08) mysql install Ver 14.14 distrib 5.5.30icu Install yum I Nstall Icuautomake Installing yum install Automakeicu lib installation wget http://download.icu-project.org/files/icu4c/53.1/icu4c-53_1- SRC.TGZTAR-ZXVF icu4c-53_1-src.tgzcd icu/source./configure--prefix=/usr/local/icumake && make install Yum Install autoconfpecl install INTLICU position fill/usr/local/icu 2. Add extension=intl.so 3 to the php.ini. After installing WYSIWYG:HTTPS://CODELOAD.GITHUB.COM/MEDIAWIKI-WYSIWYG/WYSIWYG-CKEDITOR/ZIP/CKEDITOR_V4 decompression, copy the WYSIWYG directory to/data /webroot/mediawiki/extensions/Use Tutorial: HTTP://CODEX.WORDPRESS.ORG.CN/4. Permission control: localsettings.php
$wgGroupPermissions false; # Anonymous user not writable $wgGroupPermissions false; # Anonymous user not readable $wgWhitelistRead Array ("Main page", "Special:userlogin"); # specify a non-logged on user visible page $wgGroupPermissions false; # Restrict new user registration
Link opens in a new window
LocalSettings.php: $wgExternalLinkTarget = ' _blank '; the outer chain does not include interwiki link 5. Mail message configuration https://www.mediawiki.org/wiki/Manual: $wgSMTP/mediawiki/includes/defaultsetting.php
$wgEnableUserEmail=true;$wgEnableEmail=true; /mediawiki/localsetting.PHP$wgEnableEmail=true;$wgEnableUserEmail=true;#Upo $wgEmergencyContact= "[Email protected]";$wgPasswordSender= "[Email protected]";$wgSMTP=Array( ' Host ' = ' smtp.qq.com ', ' idhost ' = ' qq.com ', ' port ' = ' + ', ' auth ' =true, ' username ' = ' [email protected] ', ' password ' = ' MyPassword ',);
[Email protected]192.168.100.252:/data/release/htdocs/mediawiki/includes# PearInstallMAIL net_smtpwarning:"PEAR/AUTH_SASL"is deprecatedinchFavor of"PEAR/AUTH_SASL2"did not download optional dependencies:pear/AUTH_SASL, use--alldeps to download Automaticallypear/NET_SMTP can optionally use package"PEAR/AUTH_SASL"(Version >=1.0.5) Downloading Mail-1.2.0.Tar ... Starting to download Mail-1.2.0.Tar(Unknown size) ... ...... .......... Done:119,296bytesdownloading net_smtp-1.6.2.Tar ... Starting to download Net_smtp-1.6.2.Tar(Unknown size) ... Done: $,536bytesdownloading Net_socket-1.0. -.Tar ... Starting to download Net_socket-1.0. -.Tar(Unknown size) ... Done: -,576bytesInstallOk:channel://pear.php.net/mail-1.2.0InstallOk:channel://pear.php.net/net_socket-1.0.14InstallOk:channel://pear.php.net/net_smtp-1.6.2[Email protected]192.168.100.252:/data/release/htdocs/mediawiki/includes# Pear listinstalled packages, channel pear.php.net:=========================================Package Version Statearchive_tar1.3.7stableconsole_getopt1.3.0Stablemail1.2.0STABLENET_SMTP1.6.2Stablenet_socket1.0. -Stablepear1.9.4Stablestructures_graph1.0.4Stablexml_util1.2.1Stable
Media wiki run on Nginx