Apache 2.x 수정
server/mpm/prefork/prefork.c 파일에서
#define DEFAULT_SERVER_LIMIT 256 부분을 찾아서
#define DEFAULT_SERVER_LIMIT 1280 으로 수정
server/mpm/worker/worker.c 파일에서
#define DEFAULT_SERVER_LIMIT 16 부분을 찾아서
#define DEFAULT_SERVER_LIMIT 20 으로 수정
Apache 1.3.x 수정
src/include/httpd.h
#ifndef HARD_SERVER_LIMIT
#ifdef WIN32
#define HARD_SERVER_LIMIT 1024
#elif defined(NETWARE)
#define HARD_SERVER_LIMIT 2048
#else
#define HARD_SERVER_LIMIT 1256 # 256을 1256 으로 수정
prompt >./configure --prefix=/usr/local/apache2 \
--enable-rewrite \
--enable-so \
--enable-mods-shared=most \
--with-mpm=worker
prompt>make
prompt>make install
PHP 설치
* FREETYPE 설치 (freetype-2.3.6.tar.gz)
http://freetype.sourceforge.net/download.html
prompt>tar xvf freetype-2.3.6.tar.gz
prompt>./configure
prompt>make
prompt>make install
prompt>tar xvf zlib-1.2.3.tar.gz
prompt>./configure
prompt>make
prompt>make install
* JPEG 설치 (jpegsrc.v6b.tar.gz)
ftp://ftp.uu.net/graphics/jpeg/
prompt>tar xvf jpegsrc.v6b.tar.gz
prompt>./configure --enable-shared --enable-static
prompt>make
prompt>mkdir /usr/local/man
prompt>mkdir /usr/local/man/man1
prompt>make install
* GIF 설치 (libungif-4.1.0.tar.gz)
ftp://sunsite.unc.edu/pub/Linux/libs/graphics/
prompt>tar xvf libungif-4.1.0.tar.gz
prompt>./configure
prompt>make
prompt>make install
* LIBPNG 설치 (libpng-1.2.34.tar.gz)
http://www.libpng.org/pub/png/libpng.html
prompt>tar xvf libpng-1.2.34.tar.gz
prompt>cd libpng-1.2.34
prompt>./configure
prompt>make
prompt>make install
* LIBICONV 설치 (libiconv-1.12.tar.gz)
http://www.gnu.org/software/libiconv/
prompt>cd libiconv-1.12.tar.gz
prompt>./configure
prompt>make
prompt>make install
* GD 설치 (gd-2.0.35.tar.gz)
http://www.libgd.org/Downloads
prompt>tar xvf gd-2.0.35.tar.gz
prompt>cd gd-2.0.35
prompt>./configure
prompt>make
prompt>make install
* LIBXML2 설치 (libxml2-2.6.30.tar.gz)
ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/
prompt>tar xvf libxml2-2.6.30.tar.gz
prompt>./configure
prompt>make
prompt>make install
--prefix=/usr/local/php5 \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-gd \
--with-iconv=/usr/local/bin/iconv \
--disable-debug \
--with-libxml-dir=/usr/local/ \
--disable-ipv6
prompt>make
prompt>make install
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml .html .inc
AddType application/x-httpd-php-source .phps
Mysql 설치
계정생성
prompt>useradd mysql
prompt>./configure --prefix=/usr/local/mysql \
--with-mysqld-user=mysql
prompt>make
prompt>make install
초기설정 및 권한변경
/usr/local/mysql 디렉토리 소유자 변경
prompt>chown -R mysql.mysql /usr/local/mysql
prompt>cd /usr/local/mysql/bin
prompt>./mysql_install_db --user=mysql
시작
prompt>./mysqld_safe --user=mysql &
종료
prompt>./mysqladmin -u root -p shutdown
prompt>vi .bash_profile
PATH=$PATH:$HOME/bin ==> PATH=$PATH:$HOME/bin:/usr/local/mysql/bin 추가
FreeTDS 설치 (MSSQL,SYBASE...연결시)
/usr/local/src# wget http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz
/usr/local/src# tar xvfpz freetds-stable.tgz
/usr/local/src/freetds# ./configure
--prefix=/usr/local/freetds
--with-tdsver=8.0
--disable-odbc
--disable-debug
--enable-dbmfix
--enable-msdblib
/usr/local/src/freetds# make
/usr/local/src/freetds# make install
configure 단계에서 'Directory /usr/local/freetds is not a FreeTDS installation directory' 라는 메시지가 나올경우
# cp /usr/local/src/freetds/include/tds.h /usr/local/freetds/include/
또는
# cp /usr/local/src/freetds/src/tds/.libs/tds.h /usr/local/freetds/include/
tds.h 파일을 설치된 디렉토리에 복사한다.
freetds.conf 파일에 client charset=EUC-KR을 추가하여 한글깨짐 현상을 막을 수 있습니다..
[global]PHP 설치시 추가
client charset = EUC-KR
--with-mssql=/usr/local/freetds
--with-sybase=/usr/local/freetds
'JOB' 카테고리의 다른 글
(0) | 2012.12.10 |
---|