'php'에 해당되는 글 1건

  1. 2006.04.28 PHP 설치

PHP 설치

리눅스 2006. 4. 28. 01:01



- Configure & Compile -

# ./configure --prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--enable-track-vars \
--with-config-file-path=/usr/local/php \
--with-exec-dir=/usr/local/apache/bin \
--with-mod-charset \
--with-language=korean \
--with-charset=euckr \
--enable-trans-sid
;make; make install


- 설정 파일 복사 -
cp php.ini-dist /usr/local/php/php.ini


- 설정 -
v(설정 후 아파치 재실행)
# vi /usr/local/php/php.ini
max_execution_time = 3600
max_input_time = 3600
memory_limit = 100M
post_max_size = 100M
upload_max_filesize = 100M
file_uploads = On => On으로 되어 있는지 확인
register_globals = Off => On으로 변경



- 추가 -
./configure --prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-zlib-dir \
--with-png-dir=/usr \
--with-jpeg-dir=/usr \
--with-gdbm=/usr \
--with-tiff-dir=/usr \
--with-ttf \
--with-freetype-dir=/usr \
--with-gd \
--enable-track-vars \
--with-config-file-path=/usr/local/php \
--with-exec-dir=/usr/local/apache/bin \
--with-mod-charset \
--with-language=korean \
--with-charset=euckr \
--with-xml \
--with-iconv \
--enable-trans-sid
Posted by Gungume
,