OpenSource 2009. 11. 9. 10:30
우분투라하여 이제까지 RHEL 계열만 써본지라 막상 GUI가 더 어색해진 이 마당에.. APM을 설치하게 되어서 잔뜩 쫄아 있었다.
먼저 기본으로 설치되어야할 데몬이 있다.
Ubuntu도 YUM과 같이 한번에 의존성이 걸린 패키지까지 설치 할 수 있는 명령어가 있다.
apt-get도 비슷한 명령어인데 aptitude가 좀 더 진보된(?) 명령어라고 한다.
Ubuntu같은 경우에는 설치 한 후 그 상태로는 root 로그인이 안되니, 구글링을 통하여 root 로그인이 가능하게 한 후 설치를 진행하자.(sudo 를 쓰면되나 귀찮아서...)
1. MySql 5.1.37
사전 데몬 설치
그룹/사용자 생성
compile, make, make install
2. APACHE 2.2.14
apache는 별달리 필요로하는 데몬이 없다.
3. PHP 5.2.11 (PHP 5.3.0)
php 같은 경우 필요로 하는 라이브러리 모듈이 많이 있을 수 있다. php compile시 필요한 모듈을 찾아 설치 해 주자.
사전 데몬 설치
Ubuntu DeskTop Linux 9.10(32bit)
Apache 2.2.14
Php 5.2.11 (5.3.0)
Mysql 5.1.37
먼저 기본으로 설치되어야할 데몬이 있다.
Ubuntu도 YUM과 같이 한번에 의존성이 걸린 패키지까지 설치 할 수 있는 명령어가 있다.
apt-get도 비슷한 명령어인데 aptitude가 좀 더 진보된(?) 명령어라고 한다.
Ubuntu같은 경우에는 설치 한 후 그 상태로는 root 로그인이 안되니, 구글링을 통하여 root 로그인이 가능하게 한 후 설치를 진행하자.(sudo 를 쓰면되나 귀찮아서...)
1. MySql 5.1.37
사전 데몬 설치
# aptitude install build-essential
# aptitude install libncurses5-dev
# aptitude install libncurses5-dev
그룹/사용자 생성
# groupadd mysql
# useradd -g mysql mysql
# useradd -g mysql mysql
compile, make, make install
#./configure \
--prefix=/usr/local/mysql \
--with-mysqld-ldflags=-all-static \
--with-client-ldflags=-all-static \
--with-charset=utf8 \
--with-collation=utf8_general_ci
컴파일 완료 확인 후
# make && make install
--prefix=/usr/local/mysql \
--with-mysqld-ldflags=-all-static \
--with-client-ldflags=-all-static \
--with-charset=utf8 \
--with-collation=utf8_general_ci
컴파일 완료 확인 후
# make && make install
2. APACHE 2.2.14
apache는 별달리 필요로하는 데몬이 없다.
# ./configure \
--prefix=/usr/local/apache \
--enable-mods-shared=most \
--enable-so \
--enable-ssl
컴파일 완료 확인 후
# make && make install
--prefix=/usr/local/apache \
--enable-mods-shared=most \
--enable-so \
--enable-ssl
컴파일 완료 확인 후
# make && make install
3. PHP 5.2.11 (PHP 5.3.0)
php 같은 경우 필요로 하는 라이브러리 모듈이 많이 있을 수 있다. php compile시 필요한 모듈을 찾아 설치 해 주자.
사전 데몬 설치
# aptitude install libxml2-dev
# aptitude install libcurl3-dev
# aptitude install libjpeg62-dev
# aptitude install libpng12-dev
# aptitude install libfreetype6-dev
# aptitude install libxslt-dev
# aptitude install libmcrypt-dev
# aptitude install libcurl3-dev
# aptitude install libjpeg62-dev
# aptitude install libpng12-dev
# aptitude install libfreetype6-dev
# aptitude install libxslt-dev
# aptitude install libmcrypt-dev
# ./configure \
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--with-mysql=/usr/local/mysql \
--with-jpeg-dir \
--with-png-dir \
--with-zlib --with-zlib-dir \
--with-freetype-dir \
--with-libxml-dir \
--with-iconv \
--with-gd \
--enable-mod-charset \
--enable-sigchild \
--enable-magic-quotes \
--enable-sockets \
--enable-zip \
--with-xsl --with-xmlrpc \
--with-curl --with-mcrypt
컴파일 완료 확인 후
# make && make install
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--with-mysql=/usr/local/mysql \
--with-jpeg-dir \
--with-png-dir \
--with-zlib --with-zlib-dir \
--with-freetype-dir \
--with-libxml-dir \
--with-iconv \
--with-gd \
--enable-mod-charset \
--enable-sigchild \
--enable-magic-quotes \
--enable-sockets \
--enable-zip \
--with-xsl --with-xmlrpc \
--with-curl --with-mcrypt
컴파일 완료 확인 후
# make && make install