#cd /usr/local
#tar zxvf httpd-2.2.2.tar.gz ; tar zxvf mysql-4.1.18.tar.gz ; tar zxvf php-4.4.2.tar.gz
##mysql <mysql-4.1.18>
#cd /usr/local/mysql-4.1.18
#./configure \
#--prefix=/usr/local/mysql \
#--localstatedir=/usr/local/mysql/data \
#--with-charset=euckr
#make ; make install
#useradd -M -u 600 mysql
#chown mysql.mysql -R /usr/local/mysql/data
#/usr/local/mysql/bin/mysql_install_db
#/usr/local/mysql/bin/safe_mysqld &


#apache <httpd-2.2.2>cd /usr/local/httpd-2.2.2
./configure \
--prefix=/usr/local/httpd \
--enable-mods-shared=most \
--enable-modules=so
make ; make install


#php <php-4.4.2>
cd /usr/local/php-4.4.2
./configure \
--prefix=/usr/local/php \
--with-mysql=/usr/local/mysql \
--with-apxs2=/usr/local/httpd/bin/apxs \
--with-exec-dir=/usr/local/httpd/bin \
--with-config-file-path=/usr/local/httpd/conf \
--enable-track-vars \
--enable-trans-sid
make ; make install
cp /usr/local/php-4.4.2/php.ini-dist /usr/local/httpd/conf/php.ini



#/usr/local/httpd/conf/httpd.conf 파일에 다음 추가
#AddType application/x-httpd-php .php .html .htm .inc
#AddType application/x-httpd-php-source .phps


################ 여기 까지 setup 끝 #####################



#============================================================
#httpd.conf 파일에 다음 옵션으로 추가 할 수도 있음
## mkdir /usr/local/httpd/conf.d
## cd conf.d
## touch php.conf#        SetInputFilter PHP
#        SetOutputFilter PHP
#    </Files>
#    DirectoryIndex index.php
#=============================================================
#
## cd /usr/local/httpd/conf
## vi httpd.conf
#============= httpd.conf의 Main Section에 추가 ==============
#    include conf.d/*.conf
#=============================================================
#
#
## vi /usr/local/httpd/htdocs/index.php
#==================== index.php 의 내용 ======================
#    <? phpinfo() ?>
#=============================================================
## vi php.conf
#===================== php.conf 의 내용 ======================
#    LoadModule php4_module modules/libphp4.so
#    <Files *.php>

centos 4.4 SercerCD에 설치시


gcc(컴파일시 기본), gcc-c++(mysql, php), flex, libxml2-devel(php) 를 yum으로 설치해야 됨.

테터툴스를 위한 apm 설치
apache


./configure --prefix=/usr/local/httpd --enable-modules=so --enable-rewrite


mysql


./configure ; --prefix=/usr/local/mysql ; --localstatedir=/usr/local/mysql/data ; --with-charset=euckr ; --enable-thread-safe-client


php

APM 소스설치

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다