정보기술/웹&데이터베이스
Ubuntu Linux 관리 Tip - IIS 를 Ubuntu APM 으로 포팅할 경우
fermi
2010. 5. 25. 23:38
- Ubuntu Document 검색
https://help.ubuntu.com
- APM (Apache2, PHP5, MySQL5) 설치
https://help.ubuntu.com/community/ApacheMySQLPHP
설치할 패키지 리스트:
- apache2
- php5
- libapache2-mod-php5
- mysql-server
- libapache2-mod-auth-mysql
- php5-mysql
추가 패키지:
- php5-gd
관리를 위해 설치하면 편리한 패키지:
- mysql-admin (MySQL Administration Tool)
- mysql-query-browser (MySQL Query Tool)
- Apache 의 Mod_Rewrite 모듈 활성화 방법
https://help.ubuntu.com/community/Apache/EnablingModRewrite
- HTML 확장자를 PHP에서 인식하도록 추가
AddType application/x-httpd-php .html
https://help.ubuntu.com/community/ServerSideIncludes 를 참고하여 default site의 설정파일 (경로: /etc/apache2/sites-available/default) 을 수정
- Zeroboard 4 로그인 문제 - PHP 설정
/etc/php5/apache2/php.ini 수정
register_globals = Off
register_long_arrays = Off
되어 있는 것을 모두 On으로 변경
register_globals = On
register_long_arrays = On
- Zeroboard 4 소스
lib.php 의 IIS 로그인 문제 수정 부분 원상 복구
- Zeroboard 게시판 header_url 과 footer_url 수정
zetyx_admin_table 의 header_url 과 footer_url 을 변경되 경로에 맞게 수정
IIS 에서는 상대경로 (../../htdocs/head.html) 가 작동하였으나 Ubuntu 에서는 절대경로만 작동함
MySQL Query Browser 를 이용해서 Update SQL 을 작성하여 한꺼번에 수정 가능함
- index_head.html 수정
- CountDownData() 함수의 return value 가 float 인것을 int 로 변경, intval() 함수 이용
- 테터 긁어오는 소스의 경로 수정
- Tatter 로 변환을 위해서 MySQL의 UTF-8 설정
/etc/mysql/my.ini
[mysqld] 섹션에 다음 추가
skip-character-set-client-handshake
default-character-set=utf8
default-collation=utf8_unicode_ci