본문 바로가기

Server

우분투 설치후 서버셋팅


 1. 우분투 설치
        1.1 업데이트


                #apt-get update
                #apt-get dist-upgrade

        1.1.1 한글

                #apt-get install language-pack-ko
                #locale-gen ko_KR.EUC-KR
                #update-locale LANG=ko_KR.UTF-8

                /etc/enviroment 수정
                -----------------------------------------------
                LANG=ko_KR.UTF-8
                LANG=ko_KR.EUC-KR
                -----------------------------------------------



        1.2 개발 환경

                #apt-get install build-essential

        1.3 개발용 manual page 설치

                #apt-get install manpages-dev
                
        1.4 웹 서버 설치
        
                #apt-get install apache2
                #apt-get install libapache2-mod-auth-mysql
                #apt-get install mysql-common mysql-server mysql-client
                #apt-get install php5-common php5 libapache2-mod-php5
                #apt-get install php5-mysql php5-gd
                
                웹 서버 재시동
                
                #a2enmod rewrite
                
                -- /etc/apache2/sites-available/default 수정
                
                -----------------------------------------------
                
                        Options Indexes FollowSymLinks MultiViews
                        AllowOverride All
                        Order allow,deny
                        allow from all
                
                -----------------------------------------------
                
                웹 서버 재시동

        1.5 암호화 관련 패키지 설치

                #apt-get install mcrypt
                #apt-get install libmcrypt4
                #apt-get install php5-mcrypt
                
        1.6 FTP 설치
        
                #apt-get install vsftpd
                #vim /etc/vsftpd.conf
                ::수정할 부분::
                anonymous_enable=NO //기본값이 YES 이므로 NO로 변경
                local_enable=YES //주석 제거
                write_enable=YES //주석 제거
                데몬 재시작
                #/etc/init.d/vsftpd restart
                
2. 제로보드 설치

        2.1 lib.php 수정
        
                ZeroBoard4 폴더의 lib.php 파일 상단에 다음 내용 추가
                
                -----------------------------------------------
                ini_set('register_globals','1');
                ini_set('session.bug_compat_42','1');
                ini_set('session.bug_compat_warn','0');
                ini_set('session.auto_start','1');
                -----------------------------------------------
                
        2.2 mysql character-set 변경
        
                /etc/mysql/my.cnf 내용 수정
                
                -----------------------------------------------
                [mysqld]
                #
                # * Basic Settings
                #
                
                default-character-set=utf8
                character-set-server=utf8
                ----------------------------------------------- 

'Server' 카테고리의 다른 글

rewrite  (3) 2010.05.13
[MySql] JOIN 문 left outer join  (1) 2010.04.08
URL 재작성지침서  (0) 2010.03.09
vi / vim 단축키 모음  (2) 2010.03.08
우분투 openSSL  (3) 2010.03.08