¼Ö¶ó¸®½º¿¡ apm ¼³Ä¡Çϱâ
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2004-04-24 10:43:07
 

Á¦¸ñ : Apache-2.0.43+PHP-4.2.3+MySQL-3.23.52(APM¼³Ä¡Çϱâ)
Á¦°ø : howtosolaris.com
Ç÷§Æû : O/S : Solaris 8 (SPARC) Kernel version: 108528-16 August 2002


Çã°Æ ~~~ ¹«Ã´À̳ª Èûµé¾ú½À´Ï´Ù...¾îµð¸¦ µÚÁ®ºÁµµ ÀÚ·á°¡ ¾øµå¸¸À¯....
ÀÌƲ°£ °í»ý Çß½À´Ï´Ù..
¾Æ¿ï·¯ APM(apache+php+mysql) ÃֽŹöÁ¯ ÄÄÆÄÀÏ ¼º°ø¿¡ µµ¿òÀ» ÁֽŠÀÎõ´ëÇÐ ±Ç¼øâ ±³¼ö´Ô²² °¨»ç µå¸³´Ï´Ù.

¾Æ·¡´Â APM ÄÄÆÄÀϽÿ¡ ÇÊ¿äÇÑ ±¸¼º¿ä¼Ò µéÀÌ¸ç ¹öÁ¯Àº ¿Ø¸¸ÇÏ¸é ¾Æ·¡¿Í °°Àº ¹öÁ¯À» »ç¿ëÇϽʽÿä.


//////////// ±¸¼º¿ä¼Ò ///////////

Gcc Version : 2.9.35
Autoconf Version : 2.13
Automake Version : 1.4
libtool Version : 1.4.2
perl Version : v5.8.0
Gnutar version : 1.13.19
Gnumake version : 3.80

////////////////////////////////


ÇÊ¿äÇÑ ¼Ò½º´Â À¥¿¡¼­ ´Ù¿îÇÏ½Ã¸é µÇÁö¸¸ ´Ù¿î·Îµå ÁÖ¼Ò¸¸ ¾È´Ù¸é wegetÀ» »ç¿ëÇϸé ÆíÇÏ°í ºü¸¨´Ï´Ù.

wegetÀº http://www.sunfreeware.com ¿¡ ÀÖ½À´Ï´Ù.

¿©·¯ºÐ ¹«½ÄÇÏ°Ô ´Ù¿î¹Þ¾Æ ftp·Î ¿Å±â´Â ¼Ö¶ó¸®¼­´Â µÇÁö ¸¿½Ã´ç..^^;

howtosolaris# su - root

howtosolaris# mkdir /sources

howtosolaris# cd /sources

howtosolaris# wget http://mysql.holywar.net/Downloads/MySQL-3.23/mysql-3.23.52.tar.gz

howtosolaris# wget http://www.apache.org/dist/httpd/httpd-2.0.43.tar.gz

howtosolaris# wget "http://www.php.net/do_download.php?mr=http%3A%2F%2Fkr.php.net%2F&df=p
hp-4.2.3.tar.gz"



/////////// MYSQL ÄÄÆÄÀÏÇϱâ ///////////////////////

howtosolaris# /usr/local/bin/tar xvzf mysql-3.23.52.tar.gz ---> GNUtar ·Î Ǫ¼¼¿©.

howtosolaris# cd mysql-3.23.52

config.cache ¶ó´Â ÆÄÀÏÀ» mysql-3.23.52 µð·ºÅ͸® ¹Ø¿¡ »õ·Î ¸¸µé¾î
±× ÆÄÀÏ¿¡ ´ÙÀ½°ú °°ÀÌ ±ò²ûÇÏ°Ô ÇÑÁÙ Àû¾î ³Ö½À´Ï´Ù.

ac_cv_sys_restartable_syscalls=${ac_cv_sys_restartable_syscalls='no'}


howtosolaris# sh

howtosolaris# CC=gcc CFLAGS="-O6" \
CXX=gcc CXXFLAGS="-O6 -felide-constructors -fno-exceptions -fno-rtti" \
./configure --prefix=/usr/local/mysql --with-low-memory

configure ÀÛ¾÷À» ¸¶ÃÆÀ¸¸é config.h ÆÄÀÏÀ» »ìÆì º¾´Ï´Ù.

±×ÆÄÀÏÀÇ ¶óÀÎÀÇ ±ÛÁß¿¡¼­

#define HAVE_TERM_H 1 À̶ó´Â ¶óÀΰú

#define HAVE_CURSES_H 1 À̶ó´Â ¶óÀο¡ ÁÖ¼®Ã³¸®°¡ µÇ¾î ÀÖ´ÂÁö »ìÆì º¾´Ï´Ù.


À§¿Í °°ÀÌ µÇ¾îÀÖ´Ù¸é ÄÄÆÄÀÏ ÇÕ´Ï´Ù.

howtosolaris# make

howtosolaris# make install

howtosolaris# groupadd mysql

howtosolaris# useradd -g mysql mysql

howtosolaris# script/mysql_install_db

howtosolaris# chown -R root /usr/local/mysql

howtosolaris# chown -R mysql /usr/local/mysql/var

howtosolaris# chgrp -R mysql /usr/local/mysql

howtosolaris# chown -R root /usr/local/mysql/bin

howtosolaris# cd /usr/local/mysql

howtosolaris# ./bin/safe_mysqld &


///////////////// APACHE ÄÄÆÄÀÏ Çϱâ //////////////////////////


howtosolaris# cd /sources/

howtosolaris# /usr/local/bin/tar xvzf httpd-2.0.43.tar.gz

howtosolaris# cd httpd-2.0.43

howtosolaris# ./configure --prefix=/usr/local/apache --enable-shared=max --enable-module=so

hostosolaris# make

hostosolaris# make install

/////////////// PHP ÄÄÆÄÀÏ Çϱâ ///////////////////////////////

howtosolaris# cd /sources
howtosolaris# /usr/local/bin/tar xvzf php-4.2.3.tar.gz
howtosolaris# cd php-4.2.3
howtosolaris# ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql
howtosolaris# make
howtosolaris# make install
howtosolaris# cp php.ini-dist /usr/local/lib/php.ini

///////////////// httpd.conf ¼³Á¤ ///////////////////////////////

howtosolaris# cd /usr/local/apache/conf

howtosolaris# vi /usr/local/apache/conf/httpd.conf

#ServerName howtosolaris.com -- ¿øº»
ServerName howtosolaris.com -- ¼öÁ¤

Group #-1 -- ¿øº»
Group nobody -- ¼öÁ¤

DirectoryIndex index.html -- ¿øº»
DirectoryIndex index.phtml index.shtml index.html index.cgi index.pl --¼öÁ¤

#AddHandler cgi-script .cgi -- ¿øº»
AddHandler cgi-script .cgi .pl -- ¼öÁ¤

#AddType text/html .shtml -- ¿øº»
AddType text/html .shtml -- ¼öÁ¤

#AddOutputFilter INCLUDES .shtml -- ¿øº»
AddOutputFilter INCLUDES .shtml -- ¼öÁ¤
AddType application/x-httpd-php .phtml --Ãß°¡

# echo "<? phpinfo() ?>" >> /usr/local/apache/htdocs/index.phtml

# /usr/local/apache/bin/apachectl start


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦