아파치를 루트로 수행하면 보안상의 문제가 생긴다.
여차 잘못된 플밍으로 웹상에서 rm -rf * 를 수행 시킬수 있기 떄문이다.
따라서 극히 제한된 사용자만 접근하게 설정하고 사용하도록 해야한다.
설치 방법및 셋팅 방법
###################################################################
#apache compile #httpd-2.2.2 APACHE DSO 방식 설치
###################################################################
#root 로 httpd 를 수행하기 위해 필요
CFLAGS="-DBIG_SECURITY_HOLE"
export CFLAGS
./configure --enable-module=so
make;make install
###################################################################
#php #php-5.2.0
#http://ftp.superuser.co.kr/pub/php
###################################################################
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-openssl --with-zlib --with-gd --with-ttf --with-png --with-expat-dir=/usr --with-mysql=/usr --with-language=korean --with-charset=euc_kr --disable-debug --disable-posix --disable-rpath --enable-safe-mode --enable-magic-quotes --disable-dmalloc --enable-bcmath --enable-dio --enable-sysvsem --enable-sysvshm --enable-versioning --enable-pic --enable-inline-optimization --enable-mbstring --enable-mbregex --enable-mbstr-enc-trans --with-config-file-path=/usr/local/lib --enable-ftp --disable-debug --enable-track-vars=yes --with-jpeg-dir --with-freetype-dir --enable-dl --with-kerberos
make;make install
#############################################################################
#http://ftp.superuser.co.kr/pub/ZendOptimizer/
#############################################################################
#zend ZendOptimizer?-3.0.1-linux-glibc21-i386
./install.sh
#############################################################################
#apache setting vi usr/local/apache/conf/httpd.conf
#############################################################################
AddType? application/x-httpd-php .php .phtml .php3 .html .htm AddType? application/x-httpd-php-source .phps
#############################################################################
#php setting vi /usr/local/lib/php.ini
#############################################################################
register_globals=On
default_socket_timeout = 600 post_max_size = 20M memory_limit = 20M upload_max_filesize = 20M
2007.04.03 by dancal

덧글