1. 먼저 해당 소스파일을 다운 받는다.
2. 프로그램을 설치한다.
[MySQL]
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> scripts/mysql_install_db
shell> chown -R root .
shell> chown -R mysql data
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> scripts/mysql_install_db
shell> chown -R root .
shell> chown -R mysql data
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
shell> ./bin/mysqladmin -u root password 'new-password'
shell> cp /usr/local/mysql/support-files/mysql.server /etc/rc.d/init.d/mysql
shell> vi /etc/rc.d/init.d/mysql
basedir=/실제 mysql/디렉토리/
shell> cp /usr/local/mysql/support-files/my-large.cnf /etc/my.cnf
shell> /etc/rc.d/init.d/mysql stop
shell> /etc/rc.d/init.d/mysql start
[Apache]
shell> ./configure --prefix= , --enable-so
shell> make; make install
shell> vi conf/httpd.conf
LoadModule php5_module libexec/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php-source .phps
shell> bin/apachectl stop
shell> bin/apachectl start
[PHP]
shell> ./configure --with-apxs2=/oas/sj_temp/apache2/bin/apxs
--with-mysql=/oas/sj_temp/mysql --with-charset=euc_kr
--with-language=korean --enable-track-vars
--prefix=/oas/sj_temp/php5
>> configure 도중 linux 버전 탓인지 xmllib2에서 에러가 발생해서 최신버전으로 설치
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: libxml2 version 2.5.10 or greater required.
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: libxml2 version 2.5.10 or greater required.
shell> rpm -Uvh libxml2-2.6.16-1.0.rh7.rf.i386.rpm
Preparing... ########################################### [100%]
1:libxml2 ########################################### [100%]
1:libxml2 ########################################### [100%]
shell> rpm -ivh libxml2-devel-2.6.16-1.0.rh7.rf.i386.rpm
Preparing... ########################################### [100%]
1:libxml2-devel ########################################### [100%]
Preparing... ########################################### [100%]
1:libxml2-devel ########################################### [100%]
shell> ./configure --with-apxs2=/oas/sj_temp/apache2/bin/apxs
--with-mysql=/oas/sj_temp/mysql --with-charset=euc_kr
--with-language=korean --enable-track-vars
--prefix=/oas/sj_temp/php5
shell> make; make install
최종확인