WIKI Configuration Parameters

Source: Internet
Author: User
Tags image converter imagemagick tidy dedicated server mediawiki

First, the general settings

1, $wgMetaNamespace the name of the meta-namespace used.
2, $wgMetaNamespaceTalk meta-namespace The name of the discussion page. It is not usually necessary to consider the variable, but also to write: $wgMetaNamespace. "_talk". In some languages, you might want to set it up according to your grammar needs.
3. $wgServer the URL of the server.
4. $wgServerName the server name without the communication protocol. (Example: en.wikipedia.org)
5. $wgSitename the name of the website. Note You should change it in the localsettings.php file.
6. $wgVersion The version number of the mediawiki that the website is using.

Second, the path

1, $IP file system installation path. The variable is not included in the defaultsettings.php file.
2, $wgActionPaths on various user operations, in the address bar to produce a more convenient and intuitive URL path.
3. $wgArticlePath the template that generates the URL of the new entry link.
4, $wgFavicon site Favicon URL.
5, the $wgLogo website logo URL.
6. $wgMathDirectory the file system path of the directory where the latex math image resides.
7. $wgMathPath the URL of the directory where the latex math image resides.
8, $wgRedirectscr the URL of the īpt redirect.php file, which is used to achieve compatibility with the lower version.
9. $wgscr the URL of the īpt index.php file.
10. $wgscr the URL of the Īptpath wiki site.
11, $wgStyleDirectory the file system path of the skin directory.
12, $wgStylePath the URL of the skin directory.
13. The file system path of the directory where the $wgStyleSheetDirectory interface style is located.
14. The URL of the directory where the $wgStyleSheetPath interface style is located.
15. $wgTmpDirectory The URL of the temporary folder.
16. $wgUploadBaseUrl
17, $wgUsePathInfo whether the use of convenient and intuitive URL. Similar to: index.php/page name.
18, $wgHashedUploadDirectory set to: True, the directory structure of the/a/ab/foo.png style is used.
19. $wgUploadDirectory the file system path of the upload directory.
20. $wgUploadNavigationUrl links the upload feature to an external URL.
21. $wgUploadPath The URL of the upload directory.

Third, share upload

1. $wgCacheSharedUploads cache shared metadata in memcached.
2, $wgHashedSharedUploadDirectory whether to hash shared upload directory. If more than one wiki is required to share the same set of files, set the value to False.
3, $wgSharedLatin 1 if the file name that uploads the file storage space takes the latin1 character, set the value to true.
4. $wgSharedUploadDBname the name of the database that contains metadata about the shared directory. If the upload file does not come from a wiki site, the value is set to False.
5. $wgSharedUploadDirectory the file system path where the shared upload directory resides.
6. $wgSharedUploadPath the full path of the Web server on which the shared upload directory resides.
7. $wgUseSharedUploads if a given file cannot be found in the local file upload space (for example: [[[Image:]], [[Media: ...]] And so on), whether to continue searching within the shared upload space.
8, $WGFETCHCOMMONSDESCR Īptions is set to "true", you can consolidate the media files stored in the Commonswiki description.

Iv. Email Settings

1, $wgEmergencyContact site administrator's email address.
2, $wgEnableEmail set to "true", to enable the basic functions of email, such as: When the user forgot password, send a prompt message.
3. $wgEnableUserEmail set to "true" to enable the email function between users.
4. $wgPasswordSender The email address used to send the password hint message.
5, $wgSMTP to use a direct (authenticated or password-authenticated) SMTP server connection.

Five, database settings

1. $wgDBconnection
2. log file for MySQL error $wgDBerrorLog logged.
3, $wgDBminWordLen Normally, if a word is less than the length of the variable, MySQL will ignore this (search) word that does not return any results. (see MySQL system variable Ft_min_word_len)
4, $wgDBmysql 4 is set to: true, you can apply advanced full-text search functionality.
5. $wgDBname the name of the database.
6, $wgDBpassword the database user password.
7, $wgDBport the database port.
8, $wgDBprefix table name prefix.
9. $wgDBschema in some databases, this value allows a separate logical namespace for site data.
10. $wgDBserver the database host name or IP address.
11, $wgDBservers the database load balancer. A two-dimensional array that records the information structure of a database, set to False, uses the information structure of a single server.
12, $wgDBtransactions If the InnoDB table is used, set the value to: true.
13. $wgDBtype database type.
14, $wgDBuser database user name.
15. $wgLocalDatabases may use a developer account to administer the other wiki sites installed on the site.
16. $wgMasterWaitTimeout Slave The time it takes to track the master.
17, $wgSearchType database search type.
18. $wgSqlLogFile
19. $wgSqlTimeout

Vi. Sharing Database Settings

1. $wgSharedDB the name of a database shared by multiple wiki sites.

VII. system Administrator SQL query

Note: When an administrator queries through Special:asksql, the following settings are used. Warning: If configured improperly, it will bring an unsafe factor to the system.
1, $wgAllowSysopQueries allow the administrator to do the query operation.
2, $wgDBsqlpassword the database user password.
3. $wgDBsqluser SQL database user for query operation.

Viii. Settings for memcached

See also: docs/memcached.doc documentation.
1. $wgLinkCacheMemcached cache link using the object cache settings. (Cache settings include Memcache, Turck MMCache, eaccelerator, etc.).
2. $wgMemCachedDebug if the server does not work, set the value to False in setup.php.
3. $wgMemCachedServers
4. $wgSessionsInMemcached
5. $wgUseEAccelShm If the wiki site is running on a dedicated server, you can implement a persistent cache.
6, $wgUseMemCached use the server settings in $wgmemcachedservers, run Memcache.
7, $WGUSETURCKSHM using Turck mmcache shared memory.
8, $wgUseMemCached is no longer used, replaced by: "$wgMainCacheType =cache_memcached;"

Nine, localization configuration

1, $wgAmericanDates in the English interface, according to "May 12" instead of "a", the format of the output date.
2. $wgDisableLangConversion whether language variable conversion is enabled.
3, $wgDocType in 4, $wgDTD
5. $wgEditEncoding
6. $WGFORCEUIMSGASCONTENTMSG
7, $wgInputEncoding Input text encoding method: UTF-8.
8. $wgInterwikiMagic Use the language link as the Magic connectors, not the online link.
9, $wgLanguageCode site language, should belong to the./language/languages (. *). php file.
10. $wgLanguageFile the name of the language file produced by the dumpmessages.php file.
11. $wgLegacyEncoding When you call an old change that does not make a utf-8 tag, you need to set the variable to: ' Iso-8859-1 ' to complete the character set conversion.
12. $wgLocaltimezone adjust the time zone for server output.
13. $wgMimeType the type defined in the "Content-type" of the header information.
14. $wgMsgCacheExpiry the time period (in seconds) that a message is stuck in the cache.
15, $wgOutputEncoding Output text encoding method: UTF-8.
16. $wgPartialMessageCache
17, $wgTranslateNumerals for those in the Web interface with the use of Indian and Arabic local digital representation method, rather than (0-9) number format users.
18, $wgUseDatabaseMessages use Mediawiki:namespace to complete the conversion. If you do not install memcached, this will extend the website upload time 25-60%.
19, $wgUseDynamicDates enable this feature, can (auto? Overwrites the date and time in the page document. Note: For most languages, the rewritten date format is not normal.
20, $wgUseLatin 1 Enable iso-8859-1 compatibility mode.
21, $wgUseZhdaemon whether to use Zhdaemon for Chinese word processing. Zhdaemon is still in the development phase, so in addition to testing, this function is not generally used.
22. $wgZhdaemonHost the host where the Zhdaemon is located. Enabled only if the $wgusezhdaemon setting is valid.
23. $wgZhdaemonPort the host port where the Zhdaemon is located.

X. Debug/Log Recording

1. $wgDebugComments
2. $wgDebugDumpSql
3. $wgDebugLogFile the file name of the debug log, when not enabled, the value is empty. Another wfdebug () variable is added to the file.
4, $wgDebugRawPage avoid due to CSS leakage, resulting in debugging content is overwritten.
5. $wgDebugRedirects
6. $wgLogQueries
7, $wgShowSQLErrors whether to display: "Sorry, there is a database error" page. An error message is displayed during debugging. However, Web site attackers may also benefit from this.

Xi. Profiling

1. $wgDebugFunctionEntry each time the Wfprofilein/wfprofileout function is called, debug information is output.
2. $wgDebugProfiling detects wfprofilein/wfprofileout function calls that do not respond (cannot be matched).
3. $wgDebugSquid a large amount of debug output information from the squidupdate.php file.
4, $wgProfileCallTree set to: True, does not report the call state of each function, but rather prints out a rough tree structure of all function calls.
5, $wgProfileLimit only if the page length exceeds this setting value, only records its profling information.
6. $wgProfileOnly do not write non-profiling information to the log file.
7, $wgProfileSampleRate Open profiling, every n requests, a profile.
8, $wgProfileToCommentUser only a specific user, the profiling information is added to the output file in the HTML code.
9. $wgProfileToDatabase writes the sums information in the profile to the "profiling" table in the database.
10. $wgProfiling enable this option to use more detailed time information in the debug log.

12. Website customization The following are the appearance settings that apply to the entire site.

1, $wgAllowUserCss whether to allow the use of user-defined CSS. The ability to add elegant, personalized style, but it will bring insecure factors to users and servers.
2, $wgAllowUserJs whether to allow the use of the user's javascrīpt page. The ability to add elegant, personalized style, but it will bring insecure factors to users and servers.
3. $wgDefaultUserOptions adding new elements to the array will overwrite language global variables within the personalization space of anonymous visitors and newly registered users.
4. The $wgExtraSubtitle is displayed in the subtitle under each page title.
5, $wgNavigationLinks page flanking navigation links.
6. $wgNoFollowLinks set to: True to set the Rel=nofollow property for external links in the wiki document.
7. $wgSiteNotice display its contents at the top of each page.
8, $wgSiteSupportPage users get the contact page of donations.
9, $wgUrlProtocols define the MediaWiki analysis program support and can be converted to HTML code Communication protocol.
10, $wgUseSiteCss Use the CSS provided by the site.
11, $wgUseSiteJs Use the JAVASCRĪPT page provided by the site.

13. Namespace name space

Includes the following:
-2 Media:-1 special:0 template:1 talk:2 user:3 user_talk:4 test:5 test_talk:6 image:7 image_talk:8 mediawiki:9 Mediawiki_talk:10 template:11 template_talk:12 help:13 help_talk:14 category:15 category_talk:
1. $wgExtraNamespaces the newly added namespace. If the namespaces defined in the language.php and namespace.php files are not sufficient, you can add them here.
2. $wgNamespacesToBeSearchedDefault should search within those namespaces?
3. $wgNamespacesWithSubpages Those namespaces can contain sub-pages?

14. Skin

1, $wgDefaultSkin the site default skin.
2. This skin option does not appear in the list of skins that can be obtained $wgSkipSkin.
3, $wgSkipSkins array variables, the role of $wgskipskin.

XV, classification

1, $wgCategoryMagicGallery in the category page, the thumbnail display of the image belonging to the category, rather than as an entry in the form of listing it.
2, $wgUseCategoryBrowser Disable the experimental type of DMOZ similar to browse the Web page by category. Example: Encyclopedia>music>style of Music>jazz
3. $wgUseCategoryMagic should the pseudo-namespaces for classification be enabled? (Add Categoryog on one page, can you include it in the "Dog" category?) )

17. Cache

1. $wgCacheEpoch to the current time to cancel all pages that have been cached (both client and server side).
2. $wgCachePages allows the client to cache the page.
3, $wgEnableParserCache the parsed pages are stored in the cache (ObjectCache table, Turck, or memcached) to speed up other users with the same operational requirements to open the page.
4. $wgFileCacheDirectory
5, $wgImageHtmlCacheExpiry set for a few seconds, cache the HTML code associated with an image.
6, $wgUseFileCache to the non-logged users cache static pages, slowing down the operational load of the public network database.
7. $wgUseGzip use gzip to store pages within the cache. Requires PHP to enable zlib support.
8, $wgUseWatchlistCache every about an hour, produce a watch list.
9, $wgWLCacheTimeout the above mentioned about one hour time.
10, $wgMainCacheType replace $wgusememcached variable. Type information see defines.php.

18. Persistent link Cache

1, $wgCompressedPersistentLC using the BLOBs variable GZ compression.
2, $wgEnablePersistentLC has ceased to use.

19, interwiki

1. $wgInterwikiExpiry the cache validity period of the interwiki table.
2, $wgLocalInterwiki the interwiki prefix of this wiki site. Should be modified in the localsettings.php.

20. Permission settings

Wiki lock, User rights selection, blocking function, and other related settings.
1, $wgAccountCreationThrottle each IP address can register the number of accounts, set to 0 is not limited. Requires memcached support.
2. $wgAllowAnonymousMinor allow anonymous users to add a "minor change" tag to a newly made change.
3, $wgAutoblockExpiry automatically block the expiration date of the project (in seconds).
4, $wgDefaultBlockExpiry The default time limit expressed in strtotime () format, or set as infinite to implement an indefinite ban.
5, $wgDisabledActions array variables, including the disabled for the entry of an operation: Browse, edit, Dublincore, delete and so on.
6, $wgGroupPermissions set the user group and user's operation rights. See also: Help:user_rights.
7, $wgPasswordSalt set to: false, compatible with the earlier installation version.
8, $wgReadOnly not allowed to edit, and give reasons.
9. $wgReadOnlyFile If the file is found, the database will be locked according to the reason stated in the article.
10, $wgSysopRangeBans allow the administrator to prohibit an IP address range.
11, $wgSysopUserBans allow the administrator to prohibit some users who have logged in.
12. $wgWhitelistAccount the type of user who can register a new user.
13, $wgWhitelistEdit set to: True, the user must be logged in before editing can be made. (For a previous version of 1.4 (including 1.4). )
14. $wgWhitelistRead the page that the anonymous user can see.

21. Frequency Limiter

1, $wgRateLimitLog set to a file name, record rate limiter clicks.
2. $wgRateLimits Simple rate limiter option to control excessive editing traffic.

22. Agent

1, $wgBlockOpenProxies the editing operation, whether to conduct automatic public agent inspection.
2, $wgEnableOpm use http://opm.blitzed.org to find the public agent. has not yet been put into practical use.
3, $wgEnableSorbs use Http://dnsbl.sorbs.net to find the public agent.
4, $wgProxyKey has been replaced by $wgsecretkey.
5, $wgProxyList all the banned IP address list. Displays the key name rather than the actual value.
6. $wgProxyMemcExpiry
7. $wgProxyPorts
8, $WGPROXYSCR Īptpath
9. $wgProxyWhitelist Despite some questionable factors, the list of IP addresses is assumed to be non-proxy.
10. $wgSecretKey items that should be customized in the localsettings.php file.

23, Squid

1, $wgInternalServer if the internal server name has changed, squid determines that the value is the internal server name.
2. $wgMaxSquidPurgeTitles the maximum number of headers to clean up in any client operation.
3, $wgSquidFastPurge in the cleanup cache, the use of persistent connection, no need to wait for response.
4, $wgSquidMaxage squid cache effective time.
5. $wgSquidServers the list of proxy servers to be cleaned (as indicated by IP address).
6. $wgSquidServersNoPurge similar to $wgsquidservers, just do not clean up the proxy server in the list.
7. $wgUseESI run SQUID3 with ESI support to enable this option.
8. $wgUseSquid Enable/disable squid.

24. Cookies

1. $wgCookieDomain set a dominant domain in the login cookie. For example: Justthis.domain. Org or:. any.subdomain.net.
2. $wgCookiePath
3. $wgDisableCookieCheck
4. $wgCookieExpiration

25. Reduce some website features

1. $wgDisableAnonTalk Close the discussion page for anonymous users.
2. $wgDisableCounters
3, $wgDisableQueryPages Once you turn on save mode, close all query pages.
4. $wgDisableSearchUpdate if the search function is turned off (not permanently), the variable disables the update operation on the table.
5, $wgDisableTextSearch disable full-text search function.
6. $wgMiserMode set to True to disable features that require database support.
7, $wgUseDumbLinkUpdate through the delete/insert operation, complete the link update, instead of using the incremental method.
8, $wgWantedPagesThreshold minimum number of links must be to a page, the page can appear in the Special:wantedpages list.

26. Upload Settings

When uploading a feature, pay particular attention to ensuring that the site is secure.
1. $wgCheckFileExtensions whether to check the extension of the uploaded file.
2, $wgEnableUploads enable the upload function, display to upload the page to go to the link.
3. $wgDisableUploads is contrary to the above functions.
4. $wgFileBlacklist prohibit uploading files with these extensions.
5. $wgFileExtensions the recommended list of upload file extensions. If the extension of an uploaded file is not included in this list, a warning prompt will appear.
6, $wgRemoteUploads set to: True, the upload link is displayed when the local upload feature is not turned on.
7, $wgStrictFileExtensions When this feature is turned off, users can ignore the resulting warning message if the uploaded file's extension is not in $wgfileextensions.
8, $wgUploadSizeWarning If the upload file is larger than this setting, give a warning prompt.

27. MIME type

1. $wgLoadFileinfoExtension pecl The switch that calls the FileInfo extension when running.
2, $wgMimeDetectorCommand set up an external MIME detection program.
3. $wgMimeInfoFile set the MIME type information file used by the mimemagic.php file.
4. $wgMimeTypeFile set the MIME type definition file used by the mimemagic.php file.
5, $wgTrivialMimeDetection used to monitor the subtle mime.
6. $wgVerifyMimeType Decide if the MIME type of the uploaded file should be checked.

28. Prevent viruses

1. $wgAntivirus the internal name of the virus scanning software.
2. $wgAntivirusRequired If a file is not scanned by virus, reject the file.
3. $wgAntivirusSetup the configuration information of different virus scanning files.

29. Interpreter

1, $wgAllowExternalImages whether to allow inline images to point to other sites.
2. $wgUseXMLparser apply XML syntax interpreter?

30. HTML

1. $wgRawHtml allow unchecked HTML code to appear in ... Paragraph?
2, $wgUserHtml in the wiki page, allow a limited number of user-written HTML code?

31. Tex uses embedded Tex

You need to edit the "texvc" file (under the "math" subdirectory of the MediaWiki package), you also need to install Latex,dvips,gs (GHOSTSCRĪPT), convert (imagemagic), and can be called from the path. See Math/readme for more information.
1, $wgTexvc the position of TEXVC binary.
2, $wgUseTeX allow the use of labels.

32, Tidy

1. $wgTidyBin the path where tidy binary resides.
2. $wgTidyConf the path where the tidy configuration file is located.
3, $wgTidyInternal control the use of pecl extension, using a tidy library, instead of establishing a separate program.
4. The option to pass to tidy in the command line.
5. Apply tidy to ensure that the HTML output is complete and valid.

33. Image

1. $wgImageHtmlCacheExpiry the cache time of the HTML code associated with the image (set to seconds).
2, $wgImageLimits The image description page appears in the number of images, limited to the number of users can choose.
3. $wgImageMagickConvertCommand command to enable ImageMagick.
4, $WGSHAREDTHUMBNAILSCR īptpath similar to $wgthumbnailscrīptpath, just for sharing upload.
5, $wgSVGConverter $wgSVGConverters a key name, Image Converter.
6. $wgSVGConverterPath If the image converter is not in the executable path, specify here.
7, $wgSVGConverters A number of Image converter array, the implementation of SVG as an image upload.
8, $WGTHUMBNAILSCR Īptpath give the path to call the thumb.php file, according to the client request to produce image thumbnails. You do not need to generate a thumbnail, then output a static URL.
9, $wgUseImageMagick can use PHP's internal image library or use ImageMagick to change the image size. PHP supports only PNG,GIF,JPG,XBM and wbmp image formats, and ImageMagick supports more image formats. Set $wguseimagemagick to True to do what you want without calling the built-in function, and using ImageMagick directly.
1, $wgUseImageResize set to: true, to achieve the server-side dynamic image scaling function (thumbnail image).
2, $wgShowEXIF decide whether to display Exif metadata. Set to False to not display the data.

34. Latest Changes

See also: Special:recentchanges
1. $wgPutIPinRC record the IP address in the Recentchanges table.
2. $wgRCMaxAge the contents of the latest changes will be cleaned up regularly. Content that is earlier than the set time of the variable is cleaned up.
3. $wgRCSeconds in "Recent Changes", the display unit of the modified time is specific to the second.
4, $wgUseRCPatrol use RC Parade method to check whether there is vandalism behavior.

35. UDP update sends RC update via UDP


1, $wgRC 2UDPAddress
2, $wgRC 2UDPPort
3, $wgRC 2UDPPrefix

36. Copyright

1, $wgCheckCopyrightUpload If you want to prohibit the inspection whether the value of the detailed copyright information is non-null, set the value to False.
2, $wgCopyrightIcon can use the HTML code to overwrite the original copyright icon, in exchange for the copyright icon of their website.
3. $WGENABLECREATIVECOMMONSRDF enable RSS from Creative Commons.
4. $WGENABLEDUBLINCORERDF
5. $wgRightsIcon
6. $wgRightsPage
7. $wgRightsText
8. $wgRightsUrl
9, $wgUseCopyrightUpload If you want to upload a detailed copyright information table, set this value to: true.

37. Expansion

1, $wgAuth security plug-in. See: Authplugin.php.
2, $wgDisableInternalSearch disable MySQL-based internal search, and let the extension implement this feature.
3. $wgExtensionFunctions
4. $wgExternalStores external storage class allows tracking of URL links, referencing content from non-database sources.
5, $wgHooks all hooks list.
6. $wgSearchForwardUrl set as a URL to direct the search request to the external link location.
7. $wgSkinExtensionFunctions

38, HTCP Multicast purging

1. $wgHTCPMulticastAddress
2. $wgHTCPMulticastTTL
3. $wgHTCPPort

39. Other Settings

1, $wgAllowPageInfo allow information operation, but the current function is not perfect.
2, $wgAllowRealName whether to allow the real name field.
3, $wgAntiLockFlags anti-lock tag.
4. $wgBrowserBlackList a list of browsers that do not support Unicode.
5, $wgCapitalLinks set to False, the first letter of the link is no longer forced uppercase.
6. $wgCompressRevisions This function is enabled, the Zlib tool will compress the contents of the old revision table when the page is saved.
7, $wgCountCategorizedImagesAsUsed in Special:unusedimages, if the image is divided into a classification, that the image is considered to be used.
8. $wgDiff 3 The path to the GNU DIFF3 application.
9, $wgDisableHardRedirects disable redirection to a special page or between interwiki redirects.
10. $wgEnableSOAP enable the SOAP interface.
11. $wgExtraRandompageSQL "Random page" filter, part of the where statement.
12, $wgFeedCacheTimeout "latest changes" in the cache for the shortest period of validity, in seconds.
13. When the rss/atom of "latest changes" is generated, there is no "content difference" option for pages that exceed the variable length $wgFeedDiffCutoff.
14, $wgFeedLimit the "latest changes", "New Generation page" and other special pages of the RSS, Atom document, the maximum number of items displayed.
15, $wgHitcounterUpdateFreq page counter update frequency.
16. $wgMakeDumpLinks The HTML entry path after the hash is generated.
17, $wgMaxNameChars The maximum number of bytes for the user name.
18. $wgMaxTocLevel Document directory contains a maximum of several levels.
19, $wgShowIPinHeader anonymous users log in, the page at the top of the user Information Bar to output their IP address.
20. $wgUseData
21, $wgUseExternalDiffEngine Use the external C + + diff engine.
22. $wgUseGeoMode to identify longitude/latitude coordinates.
23, $wgUseOldExistenceCheck using the old pre-populated link method, only for debugging.
24. $wgSpamRegex the text that matches the regular expression will be considered spam.
25, $wgUseTrackbacks support the use of blog style "tracking" feature in the entry.
26, $wgUseValidation the availability of the print version or other version. Default is disabled state

WIKI Configuration Parameters

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.