¡¡
¡¡ ¡¡
¡¡ ¡¡ ¡¡ ¡¡
¡¡ ¡¡ ¡¡ ¡¡
¡¡

¡¡

Ȩ > È°¿ë°¡À̵å > È°¿ë °¡À̵å > ¸®´ª½º¿ë ¼­¹ö >APM
 
1. MySQL(¼Ò½º¹öÀü) ¼³Ä¡
1) codns ÀÚ·á½Ç ¶Ç´Â ´ÙÀ½ »çÀÌÆ®¿¡¼­ http://dev.mysql.com/downloads´Ù¿î ¹Þ½À´Ï´Ù.
2) ·¹µåÇÞ ¸®´ª½º ±â¹ÝÀÇ ½Ã½ºÅÛ¿¡¼­´Â MysqlÀÇ RPM ÆÐÅ°Áö°¡ ¼³Ä¡µÇ¾îÀÖ´ÂÁö ¸ÕÀú È®ÀÎÇÕ´Ï´Ù.
rpm -qa | grep mysql ¶Ç´Â MySQL
3) ±âÁ¸¿¡ ¼³Ä¡µÇ¾îÀÖ´Â mysql RPM ÆÐÅ°Áö¸¦ Á¦°ÅÇÕ´Ï´Ù.
rpm -e [mysql ÆÐÅ°Áö¸í]
4) Mysql °èÁ¤ÀÌ ¾øÀ» °æ¿ì »ç¿ëÀÚ ¹× ±×·ì °èÁ¤À» Ãß°¡ÇÕ´Ï´Ù.
groupadd mysql
useradd -g mysql mysql
5) ¾ÐÃàÀ» DZ´Ï´Ù.
mv ./mysql-4.0.21.tar.gz /usr/local/src
cd /usr/local/src
tar xvfz mysql-4.0.21.tar.gz
6) ÇØ´ç µð·ºÅ丮·Î À̵¿ ÄÄÆÄÀÏ°ú ÀνºÅç ÇÕ´Ï´Ù.
cd mysql-4.0.21
./configure--prefix=/usr/local/share/mysql--localstatedir=/usr/local/share/mysql/data--with-charset=euc_kr
make
make install
7) MysqlÀÌ ¼³Ä¡µÈ µð·ºÅ丮·Î À̵¿ grant tableÀ» ¸¸µé¾îÁÝ´Ï´Ù.
cd /usr/local/share/mysql
bin/mysql_install_db
8) Mysql µð·ºÅ丮ÀÇ ±ÇÇÑÀ» ¼³Á¤ÇÕ´Ï´Ù.
chown -R root /usr/local/share/mysql
chgrp -R mysql /usr/local/share/mysql
chown -R mysql /usr/local/share/mysql/data
9) ¼³Á¤ÆÄÀÏ my-medium.cnf ¸¦ my.cnf¶ó´Â À̸§À¸·Î /etc µð·ºÅ丮¿¡ º¹»çÇÕ´Ï´Ù.
cp share/mysql/my-medium.cnf /etc/my.cnf
10) ) /etc/my.cnf ÆÄÀÏÀ» ¿¡µðÅÍ·Î ¿­¾î basedir°ú datadirÀÇ °æ·Î¸¦ Ãß°¡ÇÕ´Ï´Ù.
vi /etc/my.cnf
[mysqld]
basedir=/usr/local/share/mysql
datadir=/usr/local/share/mysql/data
11) /etc/profile ÆÄÀÏÀ» ¿¡µðÅÍ·Î ¿­¾î PATH¿¡ /usr/local/share/mysql/binÀ» Ãß°¡ÇÕ´Ï´Ù.
12) support-files/mysql.server ÆÄÀÏÀ» /etc/rc.d/init.d µð·ºÅ丮¿¡ mysqld·Î À̸§À» º¯°æÇÏ¿© º¹»çÇÕ´Ï´Ù.
cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld
13) ½Ã½ºÅÛ ºÎÆýà ÀÚµ¿ÀûÀ¸·Î MysqlÀ» ½ÇÇàÇÏ°íÀÚ ÇÒ °æ¿ì¿¡´Â /etc/rc.d/init.d/httpdÀÇ symbolic link ÆÄÀÏÀ» »ý¼ºÇÕ´Ï´Ù.(Àý´ë°æ·Î)
ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc0.d/K01mysql
ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S90mysql
2. apache ¼³Ä¡ ¹× ¼³Á¤
¸Þ´º »ó´ÜÀÇ ¸®´ª½º À¥¼­¹ö ¸Þ´º¸¦ Ŭ¸¯ ÇÏ¿© Âü°í ÇϽà ±æ ¹Ù¶ø´Ï´Ù.
3. php ¼³Ä¡
1) ³»È¨ ÀÚ·á½Ç ¶Ç´Â ´ÙÀ½ »çÀÌÆ® http://www.php.net/downloads.php¿¡¼­ ´Ù¿î ¹ÞÀ¸½Ã±æ ¹Ù¶ø´Ï´Ù.
2) ±âÁ¸¿¡ PHP°¡ RPMÀ¸·Î ¼³Ä¡µÇ¾îÀÖ´ÂÁö È®ÀÎÇÑ ÈÄ ¼³Ä¡µÇ¾î ÀÖÀ¸¸é RPMÀ» Á¦°ÅÇÕ´Ï´Ù.
rpm -qa | grep php
rpm -e (--nodeps) [php RPM name]
3) GD ¿É¼ÇÀ» »ç¿ëÇϱâ À§ÇØ libpng RPM°¡ ¼³Ä¡µÇÁö ¾Ê¾ÒÀ¸¸é ´Ù¿î·Îµå ¹Þ¾Æ¼­ ¼³Ä¡ ÇÕ´Ï´Ù.
rpm -ivh libpng-devel-1.2.2-16.i386.rpm
4) ¹èÆ÷ÆÄÀÏÀ» Àû´çÇÑ À§Ä¡·Î ¿Å±ä ÈÄ ¾ÐÃàÀ» Ç®¾îÁÝ´Ï´Ù.
mv php-4.3.9.tar.gz /usr/local/src
cd /usr/local/src
tar xvfz php-4.3.9.tar.gz
¾ÐÃàÀ» Ç®¸é php-4.3.9 µð·ºÅ丮°¡ »ý¼ºµË´Ï´Ù.
5) µð·ºÅ丮 ¾ÈÀ¸·Î À̵¿ÇÏ¿© configure¸¦ ½ÇÇà½Ãŵ´Ï´Ù.
cd ./php-4.3.9
./configure --with-apxs2=/usr/sbin/apxs --with-config-file-path=/etc --with-zlib --
with-gd--with-mysql--with-mod-charset--with-language=korean-with-
charset=euc_kr
6) ÄÄÆÄÀÏ°ú ÀνºÅçÀ» ÁøÇàÇÕ´Ï´Ù.
make
make install
7) ´ÙÀ½Àº À§ÀÇ °úÁ¤À¸·Î ¼³Ä¡¸¦ ÁøÇàÇßÀ» °æ¿ìÀÇ ¼³Ä¡ °æ·ÎÀÔ´Ï´Ù.
¡¡ PHP CLI
binary : /usr/local/bin/
PHP CLI man page : /usr/local/man/man1/

Apache
Shared module (libphp4.so) : /usr/lib/apache/

shared extensions :
/usr/local/lib/php/extensions/no-debug-non-zts-20020429
PEAL environment :
/usr/local/lib/php/
build environment : /usr/local/lib/php/build/

header
files : /usr/local/include/php/
helper programs : /usr/local/bin/
/etc/httpd/conf/httpd.conf ÆÄÀÏÀÇ AddType ºÎºÐÀ¸·Î À̵¿Çؼ­ ´ÙÀ½À» Ãß°¡ÇÕ´Ï´Ù.
AddType application/x-httpd-php .php .phtml
AddType application/s-httpd-php-source .phps

DirectoryIndex ºÎºÐÀ» ã¾Æ index.php¿Í index.phtmlÀ» Ãß°¡ÇÕ´Ï´Ù.
DirectoryIndex index.html index.htm index.html.var index.php index.phtml

4. php Å×½ºÆ®
phpÅ×½ºÆ®¸¦ À§ÇØ /var/www/html µð·ºÅ丮 ³»¿¡¼­ ´ÙÀ½°ú °°Àº Äڵ带 ÀÛ¼ºÇÏ¿© À¥ºê¶ó¿ìÀú¸¦ ÅëÇØ È®ÀÎ ÇÕ´Ï´Ù.
vi /var/www/html/phpinfo.php

À¥ºê¶ó¿ìÀú¿¡¼­ http://¾ÆÀ̵ð.codns.com/phpinfo.php¸¦ ÀÔ·Â ÇßÀ» ¶§ phpÁ¤º¸°¡ È­¸é¿¡
³ªÅ¸³ª¸é Á¤»óÀÔ´Ï´Ù.

¡¡
¡¡

»õ ÆäÀÌÁö 1
¡¡