CentOS초기 설치시 seliux 비활성화 설정

활성시 웹서버 사용시 문제가 발생합니다.

-. 아파치 설정파일 위치
/etc/httpd/conf/httpd.conf
파일 설정

#AddDefaultCharset UTF-8 <=초기값
AddDefaultCharset EUC-KR
<
VirtualHost *:80
>
ServerAdmin 이메일주소
ServerName 도메인명
DocumentRoot /home/계정명/public_html/
ErrorLog /home/계정명/-error_log 파일생성
CustomLog /home/계정명-access_log common 파일생성
<
/VirtualHost
>


터미널에서 계정 하위폴더 권한 바꾸기
#chmod 755 /home/계정명/
#chmod 755 /home/계정명/public_html/
업로드파일은 반드시 ftp로 올리기

- mysql 설정파일 위치
/etc/my.cnf
파일 설정
character-set-server=euckr <=추가
character-set-client-handshake=FALSE <=추가

-. php 설정파일 위치
/etc/php.ini
파일 설정
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
; register_globals = Off 초기값
register_globals = on

; Initialize session on request startup.
; session.auto_start = 0 초기값
session.auto_start = 1


-. vsftpd 설정파일 위치
/etc/vsftpd/vsftpd.conf
파일 설정
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
# anonymous_enable=YES 초기값(익명으로 접속금지)
anonymous_enable=NO

# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES 초기값 주석처리
chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list 초기값 주석처리
chroot_list_file=/etc/vsftpd/chroot_list
********************************************
/etc/vsftpd/chroot_list(생성)
파일 설정
계정명추가
********************************************
-. phpmyadmin 설정파일 위치
/etc/httpd/conf.d/phpmyadmin.conf
파일 설정
#
# Web application to manage MySQL
#
하단 Directory주석처리
# <
Directory "/usr/share/phpmyadmin"
>
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
# <
/Directory
>

Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin


/usr/share/phpmyadmin/config.inc.php(로그인 관련)
파일 설정
(쿠키 방식로그인 사용시)
$cfg['blowfish_secret'] = '이곳에 숫자와 영문 조합해서 입력'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
(http방식 로그인 사용시)
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie'; <= http로 변경


텔넷 접속시 한글이 깨지는 현상
/etc/sysconfig/i18n

LANG="ko_KR.UTF-8"
위부분을 아래와 같이 수정
LNAG="ko_KR,eucKR"

'리눅스관련' 카테고리의 다른 글

Fedora linux 에 google chrome 설치  (0) 2011.06.09
CentOS Network 설정  (0) 2011.06.06
Centos 5.X에서 MP3재생  (0) 2011.06.06
ubuntu 에서 DNS 서버 설정  (0) 2011.06.06
vi,vim 에디터 단축키  (0) 2011.06.06

+ Recent posts