RSS구독하기:SUBSCRIBE TO RSS FEED
즐겨찾기추가:ADD FAVORITE
글쓰기:POST
관리자:ADMINISTRATOR
'ubuntu'에 해당되는 글 1
 우분투라하여 이제까지 RHEL 계열만 써본지라 막상 GUI가 더 어색해진 이 마당에.. APM을 설치하게 되어서 잔뜩 쫄아 있었다.

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

그룹/사용자 생성
# groupadd 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


2. APACHE 2.2.14
apache는 별달리 필요로하는 데몬이 없다.
# ./configure \
--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

# ./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

Trackback
Reply
우주곰:지구곰이 아닙니다.
지구곰이 아닙니다.
Categories (190)
Information (5)
About uzoogom (5)
Blah.. blah.. (5)
My Advanced Linux (73)
RedHat Knowledge (10)
Advanced Linux (47)
Virtualization (7)
HA clustering (2)
Bash shell scripts (6)
Learning Linux (96)
Fundamental (41)
AdminCourse (32)
Security (23)
OperatingSystem (5)
AIX (2)
HPUX (3)
Databases (4)
Oralce (3)
Mysql (1)
OpenSource (1)
Tips! (1)
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31