편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
1번째 줄: | 1번째 줄: | ||
{{테스트|미디어위키 1.18.0, 리눅스}} | {{테스트|미디어위키 1.18.0, 리눅스}} | ||
==설정파일 변경== | ==설정파일 변경== | ||
10번째 줄: | 7번째 줄: | ||
*변경 전 | *변경 전 | ||
< | <source lang='php'> | ||
## To enable image uploads, make sure the 'images' directory | ## To enable image uploads, make sure the 'images' directory | ||
## is writable, then set this to true: | ## is writable, then set this to true: | ||
$wgEnableUploads = false; | $wgEnableUploads = false; | ||
</ | </source> | ||
*변경 후 | *변경 후 | ||
< | <source lang='php'> | ||
## To enable image uploads, make sure the 'images' directory | ## To enable image uploads, make sure the 'images' directory | ||
## is writable, then set this to true: | ## is writable, then set this to true: | ||
$wgEnableUploads = true; | $wgEnableUploads = true; | ||
</ | </source> | ||
이렇게 파일을 수정하고 웹사이트를 열면 왼쪽 메뉴의 도구모음에 '파일 올리기'가 보일 것이다. | 이렇게 파일을 수정하고 웹사이트를 열면 왼쪽 메뉴의 도구모음에 '파일 올리기'가 보일 것이다. | ||
==폴더 권한== | ==폴더 권한== | ||
파일 올리기가 안되는 경우 설치폴더 아래의 images 폴더의 권한을 확인하고, 업로드가 가능하도록 권한을 조정한다. | *파일 올리기가 안되는 경우 설치폴더 아래의 images 폴더의 권한을 확인하고, 업로드가 가능하도록 권한을 조정한다. | ||
* | *특별히 건드리지 않았다면 images 권한의 초기 상태는 755일 것이다. 757로 바꾸자. | ||
;변경 전 | |||
< | <source lang='dos'> | ||
[root@ | [root@jmnote wiki]# ll | grep images | ||
drwxr-xr-x 2 1244 1244 4096 Jul 8 2011 images | |||
</source> | |||
</ | |||
= | ;변경 후 | ||
<source lang='dos'> | |||
[root@jmnote wiki]# chmod -R 757 images | |||
[root@jmnote wiki]# ll | grep images | |||
drwxr-xrwx 4 1244 1244 4096 Jan 25 11:22 images | |||
</source> | |||
== | ===테스트=== | ||
*555: The upload directory (public) is not writable by the webserver. | |||
*556: Could not create directory "public/5/5b". | |||
*557: Could not create directory "public/archive/5/5b". | |||
*655: The upload directory (public) is not writable by the webserver. | |||
*656: Could not create directory "public/5/5b". | |||
*657: Could not create directory "public/archive/5/5b". | |||
*755: The upload directory (public) is not writable by the webserver. | |||
*756: Could not create directory "public/5/5b". | |||
*757: 성공 | |||
[[분류: 미디어위키 | ※ images 폴더의 소유자(owner) 계정, 아파치 구동 계정에 따라 달라질 수 있다. | ||
[[분류:미디어위키]] |