<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ko">
	<id>https://devcafe.co.kr/w/index.php?action=history&amp;feed=atom&amp;title=%EB%AF%B8%EB%94%94%EC%96%B4%EC%9C%84%ED%82%A4_%EC%84%A4%EC%A0%95_LocalSettings.php</id>
	<title>미디어위키 설정 LocalSettings.php - 편집 역사</title>
	<link rel="self" type="application/atom+xml" href="https://devcafe.co.kr/w/index.php?action=history&amp;feed=atom&amp;title=%EB%AF%B8%EB%94%94%EC%96%B4%EC%9C%84%ED%82%A4_%EC%84%A4%EC%A0%95_LocalSettings.php"/>
	<link rel="alternate" type="text/html" href="https://devcafe.co.kr/w/index.php?title=%EB%AF%B8%EB%94%94%EC%96%B4%EC%9C%84%ED%82%A4_%EC%84%A4%EC%A0%95_LocalSettings.php&amp;action=history"/>
	<updated>2026-04-06T05:47:22Z</updated>
	<subtitle>이 문서의 편집 역사</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://devcafe.co.kr/w/index.php?title=%EB%AF%B8%EB%94%94%EC%96%B4%EC%9C%84%ED%82%A4_%EC%84%A4%EC%A0%95_LocalSettings.php&amp;diff=1314&amp;oldid=prev</id>
		<title>Devcafe: 새 문서: ==개요== ;미디어위키 LocalSettings.php ;미디어위키 설정 파일 *미디어위키를 설치한 폴더에 위치한다. *주요 항목 **DB접속정보 **확장기능 활성화 **사용자그룹별 열람/편집 권한 조정 **파일 업로드 확장자 허용 *미디어위키 설치시에 자동으로 설정되는 부분이다. 버전마다 조금씩 다를 수 있으나 대동소이하다.  ==기본 설정 부분== &lt;source lang=&#039;php&#039;&gt; &lt;?php # This file was automati...</title>
		<link rel="alternate" type="text/html" href="https://devcafe.co.kr/w/index.php?title=%EB%AF%B8%EB%94%94%EC%96%B4%EC%9C%84%ED%82%A4_%EC%84%A4%EC%A0%95_LocalSettings.php&amp;diff=1314&amp;oldid=prev"/>
		<updated>2025-05-16T15:30:19Z</updated>

		<summary type="html">&lt;p&gt;새 문서: ==개요== ;미디어위키 LocalSettings.php ;미디어위키 설정 파일 *미디어위키를 설치한 폴더에 위치한다. *주요 항목 **DB접속정보 **확장기능 활성화 **사용자그룹별 열람/편집 권한 조정 **파일 업로드 확장자 허용 *미디어위키 설치시에 자동으로 설정되는 부분이다. 버전마다 조금씩 다를 수 있으나 대동소이하다.  ==기본 설정 부분== &amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt; &amp;lt;?php # This file was automati...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;새 문서&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==개요==&lt;br /&gt;
;미디어위키 LocalSettings.php&lt;br /&gt;
;미디어위키 설정 파일&lt;br /&gt;
*미디어위키를 설치한 폴더에 위치한다.&lt;br /&gt;
*주요 항목&lt;br /&gt;
**DB접속정보&lt;br /&gt;
**확장기능 활성화&lt;br /&gt;
**사용자그룹별 열람/편집 권한 조정&lt;br /&gt;
**파일 업로드 확장자 허용&lt;br /&gt;
*미디어위키 설치시에 자동으로 설정되는 부분이다. 버전마다 조금씩 다를 수 있으나 대동소이하다.&lt;br /&gt;
&lt;br /&gt;
==기본 설정 부분==&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
# This file was automatically generated by the MediaWiki 1.18.0&lt;br /&gt;
# installer. If you make manual changes, please keep track in case you&lt;br /&gt;
# need to recreate them later.&lt;br /&gt;
#&lt;br /&gt;
# See includes/DefaultSettings.php for all configurable settings&lt;br /&gt;
# and their default values, but don&amp;#039;t forget to make changes in _this_&lt;br /&gt;
# file, not there.&lt;br /&gt;
#&lt;br /&gt;
# Further documentation for configuration settings may be found at:&lt;br /&gt;
# http://www.mediawiki.org/wiki/Manual:Configuration_settings&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*이 파일(LocalSettings.php)이 미디어위키에 의해 자동으로 생성되었음을 알려준다.&lt;br /&gt;
*자세한 사항은 http://www.mediawiki.org/wiki/Manual:Configuration_settings 를 참고하라는 친절한 설명도 있다.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
# Protect against web entry&lt;br /&gt;
if ( !defined( &amp;#039;MEDIAWIKI&amp;#039; ) ) {&lt;br /&gt;
	exit;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*MEDIAWIKI라는 고정변수가 정의되어 있지 않을 경우 즉시 종료.&lt;br /&gt;
*php에서 include 시 보안상 이유로 흔히 사용되는 기법이다. 다른 파일에서 비정상적으로 호출(include)될 경우 오류 등의 정보가 노출되는 것을 방지한다.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
## Uncomment this to disable output compression&lt;br /&gt;
# $wgDisableOutputCompression = true;&lt;br /&gt;
&lt;br /&gt;
$wgSitename      = &amp;quot;Jmnote&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
## The URL base path to the directory containing the wiki;&lt;br /&gt;
## defaults for all runtime URL paths are based off of this.&lt;br /&gt;
## For more information on customizing the URLs please see:&lt;br /&gt;
## http://www.mediawiki.org/wiki/Manual:Short_URL&lt;br /&gt;
$wgScriptPath       = &amp;quot;/wiki&amp;quot;;&lt;br /&gt;
$wgScriptExtension  = &amp;quot;.php&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
## The protocol and server name to use in fully-qualified URLs&lt;br /&gt;
$wgServer           = &amp;quot;http://jmnote.com&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
## The relative URL path to the skins directory&lt;br /&gt;
$wgStylePath        = &amp;quot;$wgScriptPath/skins&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
## The relative URL path to the logo.  Make sure you change this from the default,&lt;br /&gt;
## or else you&amp;#039;ll overwrite your logo when you upgrade!&lt;br /&gt;
#$wgLogo             = &amp;quot;$wgStylePath/common/images/wiki.png&amp;quot;;&lt;br /&gt;
$wgLogo=&amp;quot;$wgScriptPath/custom/jmnote20120124.png&amp;quot;;&lt;br /&gt;
$wgFavicon = &amp;quot;$wgScriptPath/custom/jmnote20120124.ico&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
## UPO means: this is also a user preference option&lt;br /&gt;
&lt;br /&gt;
$wgEnableEmail      = true;&lt;br /&gt;
$wgEnableUserEmail  = true; # UPO&lt;br /&gt;
&lt;br /&gt;
$wgEmergencyContact = &amp;quot;긴급연락시_이메일주소&amp;quot;;&lt;br /&gt;
$wgPasswordSender   = &amp;quot;패스워드요청시_발신자_이메일주소&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$wgEnotifUserTalk      = false; # UPO&lt;br /&gt;
$wgEnotifWatchlist     = false; # UPO&lt;br /&gt;
$wgEmailAuthentication = true;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
## Database settings&lt;br /&gt;
$wgDBtype           = &amp;quot;mysql&amp;quot;;&lt;br /&gt;
$wgDBserver         = &amp;quot;localhost&amp;quot;;&lt;br /&gt;
$wgDBname           = &amp;quot;DB명&amp;quot;;&lt;br /&gt;
$wgDBuser           = &amp;quot;DB계정&amp;quot;;&lt;br /&gt;
$wgDBpassword       = &amp;quot;DB패스워드&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
# MySQL specific settings&lt;br /&gt;
$wgDBprefix         = &amp;quot;DB테이블_이름_앞에 붙는_접두어&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
# MySQL table options to use during installation or update&lt;br /&gt;
$wgDBTableOptions   = &amp;quot;ENGINE=InnoDB, DEFAULT CHARSET=binary&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
# Experimental charset support for MySQL 4.1/5.0.&lt;br /&gt;
$wgDBmysql5 = false;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
## Shared memory settings&lt;br /&gt;
$wgMainCacheType    = CACHE_NONE;&lt;br /&gt;
$wgMemCachedServers = array();&lt;br /&gt;
&lt;br /&gt;
## To enable image uploads, make sure the &amp;#039;images&amp;#039; directory&lt;br /&gt;
## is writable, then set this to true:&lt;br /&gt;
$wgEnableUploads  = true;&lt;br /&gt;
#$wgUseImageMagick = true;&lt;br /&gt;
#$wgImageMagickConvertCommand = &amp;quot;/usr/bin/convert&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
# InstantCommons allows wiki to use images from http://commons.wikimedia.org&lt;br /&gt;
# (기본값) $wgUseInstantCommons  = false;&lt;br /&gt;
$wgUseInstantCommons = true;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
## If you use ImageMagick (or any other shell command) on a&lt;br /&gt;
## Linux server, this will need to be set to the name of an&lt;br /&gt;
## available UTF-8 locale&lt;br /&gt;
$wgShellLocale = &amp;quot;en_US.utf8&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
## If you want to use image uploads under safe mode,&lt;br /&gt;
## create the directories images/archive, images/thumb and&lt;br /&gt;
## images/temp, and make them all writable. Then uncomment&lt;br /&gt;
## this, if it&amp;#039;s not already uncommented:&lt;br /&gt;
#$wgHashedUploadDirectory = false;&lt;br /&gt;
&lt;br /&gt;
## Set $wgCacheDirectory to a writable directory on the web server&lt;br /&gt;
## to make your wiki go slightly faster. The directory should not&lt;br /&gt;
## be publically accessible from the web.&lt;br /&gt;
#$wgCacheDirectory = &amp;quot;$IP/cache&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
# Site language code, should be one of the list in ./languages/Names.php&lt;br /&gt;
$wgLanguageCode = &amp;quot;ko&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$wgSecretKey = &amp;quot;비밀키(자동 생성됨. 수정금지)&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
# Site upgrade key. Must be set to a string (default provided) to turn on the&lt;br /&gt;
# web installer while LocalSettings.php is in place&lt;br /&gt;
$wgUpgradeKey = &amp;quot;업그레이드키(자동 생성됨, 수정금지)&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
## Default skin: you can change the default skin. Use the internal symbolic&lt;br /&gt;
## names, ie &amp;#039;standard&amp;#039;, &amp;#039;nostalgia&amp;#039;, &amp;#039;cologneblue&amp;#039;, &amp;#039;monobook&amp;#039;, &amp;#039;vector&amp;#039;:&lt;br /&gt;
$wgDefaultSkin = &amp;quot;vector&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
## For attaching licensing metadata to pages, and displaying an&lt;br /&gt;
## appropriate copyright notice / icon. GNU Free Documentation&lt;br /&gt;
## License and Creative Commons licenses are supported so far.&lt;br /&gt;
$wgRightsPage = &amp;quot;&amp;quot;; # Set to the title of a wiki page that describes your license/copyright&lt;br /&gt;
$wgRightsUrl  = &amp;quot;&amp;quot;;&lt;br /&gt;
$wgRightsText = &amp;quot;&amp;quot;;&lt;br /&gt;
$wgRightsIcon = &amp;quot;&amp;quot;;&lt;br /&gt;
# $wgRightsCode = &amp;quot;&amp;quot;; # Not yet used&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
# Path to the GNU diff3 utility. Used for conflict resolution.&lt;br /&gt;
$wgDiff3 = &amp;quot;/usr/bin/diff3&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*여기서 미디어위키의 문서버전별 비교 기능 모듈이 [[diff3]]임을 알 수 있다.&lt;br /&gt;
*리눅스 설치시 보통 해당 위치에 알아서 설치된다.&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
# Query string length limit for ResourceLoader. You should only set this if&lt;br /&gt;
# your web server has a query string length limit (then set it to that limit),&lt;br /&gt;
# or if you have suhosin.get.max_value_length set in php.ini (then set it to&lt;br /&gt;
# that value)&lt;br /&gt;
$wgResourceLoaderMaxQueryLength = -1;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
# End of automatically generated settings. (맨 위부터 여기까지는 자동으로 생성된 설정부분)&lt;br /&gt;
# Add more configuration options below. (아래는 사용자가 추가로 설정하는 부분)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*여기까지는 최초 설치에 성공했다면 대부분 자동으로 잘 설정되어 있을 것이다. (단 위 내용 중 로고, 파비콘은 본인이 직접 설정해야 한다.)&lt;br /&gt;
&lt;br /&gt;
==추가 설정 부분==&lt;br /&gt;
이 아래로는 필자가 의도적으로 추가한 코드들이다.&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
$wgAllowExternalImages = true;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*미디어위키에서는 기본적으로 &amp;lt;img&amp;gt;태그를 사용할 수 없게 되어 있어서 외부그림을 삽입할 수 없다. (즉 자기 사이트의 그림만 보여줄 수 있다.)&lt;br /&gt;
*이것을 true로 하면 외부 그림을 보여줄 수 있게 해준다. 위키문서에 그림의 url주소를 넣으면 그림으로 출력된다.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
$wgExternalLinkTarget = &amp;#039;_blank&amp;#039;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*링크 클릭시 새창으로 보여준다. (이 줄을 없으면 링크를 같은 창에서 보여준다.)&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
$wgGroupPermissions[&amp;#039;*&amp;#039;][&amp;#039;edit&amp;#039;] = false;&lt;br /&gt;
$wgGroupPermissions[&amp;#039;*&amp;#039;][&amp;#039;createaccount&amp;#039;] = false;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*권한이 없는 사용자는 편집이나 계정생성을 할 수 없다. (즉 회원가입도 편집도 할 수 없는 개인 지필 위키가 된다. 열람은 제한하지 않았으므로 내용은 인터넷 상에 공개된다.)&lt;br /&gt;
&amp;lt;source lang=&amp;#039;php&amp;#039;&amp;gt;&lt;br /&gt;
require_once( &amp;quot;$IP/extensions/ParserFunctions/ParserFunctions.php&amp;quot; );&lt;br /&gt;
$wgPFEnableStringFunctions = true;&lt;br /&gt;
require_once(&amp;quot;$IP/extensions/CharInsert/CharInsert.php&amp;quot;);&lt;br /&gt;
require_once(&amp;quot;$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php&amp;quot;);&lt;br /&gt;
require_once(&amp;quot;$IP/extensions/Cite/Cite.php&amp;quot;);&lt;br /&gt;
require_once(&amp;quot;$IP/extensions/googleAnalytics/googleAnalytics.php&amp;quot;);&lt;br /&gt;
require_once(&amp;quot;$IP/extensions/MagnetLinks/MagnetLinks.php&amp;quot;);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*미디어위키의 extensions 폴더에 설치한 각종 확장기능들은, 이런 식으로 등록해야 실제로 사용할 수 있게 된다.&lt;br /&gt;
&lt;br /&gt;
==같이 보기==&lt;br /&gt;
*[[미디어위키 주요 커스터마이징]]&lt;br /&gt;
*[[미디어위키 전역변수]]&lt;br /&gt;
*[[미디어위키 Setup.php]]&lt;br /&gt;
&lt;br /&gt;
==참고==&lt;br /&gt;
* http://www.mediawiki.org/wiki/Manual:Configuration_setting&lt;br /&gt;
* http://www.mediawiki.org/wiki/Manual:LocalSettings.php&lt;br /&gt;
* https://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php&lt;br /&gt;
&lt;br /&gt;
[[분류: 미디어위키]]&lt;br /&gt;
[[분류: .php]]&lt;/div&gt;</summary>
		<author><name>Devcafe</name></author>
	</entry>
</feed>