mysql
./configure --prefix=/usr/local/mysql --with-charset=euckr
/////////////////////////////////////////////////////////////////////////////////////
//////// 유니코드 함수사용 라이브러리 설치
iconv 란 함수가 있는데 이 함 수를 쓰기
위해서는 라이브러리가 필요한데
http://www.gnu.org/software/libiconv/에서 다운 후
압축을 푼 후
./configure --prefix=/usr/local/libiconv
make
make install
///////////////////////////////////////////////////////////////////////////
////// php 설치
./configure --with-apache= --with-apache=../apache_1.3.33 \
--with-mysql=/usr/local/mysql \
--with-gd --with-jpeg-dir --enable-ftp --with-charset=euc_kr --with-zlib-dir \
--with-iconv=/usr/local/libiconv
make
make install
cp php.ini-dist /usr/local/lib/php.ini
# php.ini global register on 으로 변경
# post ,upload 사이즈 변경 furl_open off 로 변경
////////////////////////////////////////////////////////////////////////////////////////
////////// eaccelerator-0.9.5.tar.bz2 웹 캐쉬
tar xvf eaccelerator-0.9.5.tar
export PHP_PREFIX="/usr/local"
[root@keen eaccelerator-0.9.5]# $PHP_PREFIX/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
make
make install
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
설치된 위치
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so
zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/var/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
=========================================================
mkdir /dev/shm/php
ln -s /dev/shm/php /var/tmp/eaccelerator
chown 99:99 /var/tmp/eaccelerator
chmod 0700 /var/tmp/eaccelerator
////////////////////////////////////////////////////////////////////////////////////////////////
///////// 아파치 설치 한글처리 모듈 포함
./configure --activate-module=src/modules/php4/libphp4.a --enable-module=rewrite --add-module=../mod_redurl.c
/////////////////////////////////////////////////////////////////////////////////
/////// 아파치 httpd.conf 에 추가 설정 변경
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php-source .phps
<IfModule mod_redurl.c>
CheckURL On
</IfModule>
Timeout 30
KeepAlive Off
MaxClients 756
#src/include/httpd.h 256 이상 변경시 소스 변경 후 컴파일
/////////////////////////////////////////////////////////////////////////////////
////////////// rc.local 파일에 추가
/usr/local/mysql/bin/mysqld_safe -O max_connections=1000 -O table_cache=256 -O wait_timeout=100 &
/usr/local/apache/bin/apachectl start
mkdir /dev/shm/php
ln -s /dev/shm/php /var/tmp/eaccelerator
chown 99:99 /var/tmp/eaccelerator
chmod 0700 /var/tmp/eaccelerator