elitejun@backrush.com http://www.backrush.com
[Apache + PHP + Mysql ¼³Ä¡Çϱâ]
1. ÃֽŠversion download
http://www.apache.org/dist/httpd/ //apache site
http://www.php.net/downloads.php //php site
http://www.mysql.com/downloads/ //mysql site
=============================================================================
[stone]/usr/local> ls -al
-rw-r--r-- 1 user users 2177983 1¿ù 19ÀÏ 17:49 apache_1.3.22.tar.gz
-rw-r--r-- 1 user users 3157346 1¿ù 19ÀÏ 18:06 php-4.0.6.tar.gz
-rw-r--r-- 1 user users 11939073 1¿ù 19ÀÏ 17:59 mysql-3.23.47.tar.gz
* gunzip°ú tar ÀÌ¿ëÇÏ¿© Ç®¾îÁØ´Ù.
=============================================================================
2. ¼³Ä¡¼ø¼
mysql => apache ./configure => php ¼³Ä¡ => apache ¼³Ä¡
=============================================================================
2.1 mysql ¼³Ä¡(Binary version)
* ¼³Ä¡Àü mysql À̶ó´Â user¿Í group À» ¸¸µé¾îµÐ´Ù.
[stone]/usr/local> cd mysql
[stone]/usr/local/mysql> scripts/mysql_install_db
[stone]/usr/local/mysql> chown -R root /usr/local/mysql
[stone]/usr/local/mysql> chown -R mysql /usr/local/mysql/data
[stone]/usr/local/mysql> chgrp -R mysql /usr/local/mysql
[stone]/usr/local/mysql> chown -R root /usr/local/mysql/bin
[stone]/usr/local/mysql> bin/safe_mysqld --user=mysql &
[stone]/usr/local/mysql>ps -ef |grep mysql //mysql Daemon È®ÀÎ
root 256 1 0 1¿ù 18 ? 0:00 /bin/sh ./bin/safe_mysqld --user=mysql
mysql 285 256 0 1¿ù 18 ? 1:03 /usr/local/mysql/bin/mysqld --defaults-extra-file=/usr/local/mysql/data/my.cnf
===============================================================================
2.2 Apache configure
[stone]/usr/local> cd apache_1.3.22
[stone]/usr/local/apache_1.3.22>./configure
===============================================================================
2.3 PHP Install
[stone]/usr/local> cd php-4.0.6
[stone]/usr/local/php-4.0.6>./configure \
--with-oracle=/oracle/product/8.1.7 \
--with-oci8=/oracle/product/8.1.7 \
--with-mysql=/usr/local/mysql \
--with-config-file-path=/usr/local/apache/conf \
--with-apache=/usr/local/apache_1.3.22 \
--enable-track-vars \
--enable-sigchild
[stone]/usr/local/php-4.0.6>make
[stone]/usr/local/php-4.0.6>make install
===============================================================================
2.4 Apache Install
[stone]/usr/local/apache_1.3.22>./configure \
--prefix=/usr/local/apache \
--activate-module=src/modules/php4/libphp4.a
[stone]/usr/local/apache_1.3.22>make
[stone]/usr/local/apache_1.3.22>make install
[stone]/usr/local/apache_1.3.22>cd ../apache/bin
[stone]/usr/local/apache/bin>./apachectl start
[stone]/usr/local/apache/bin>ps -ef |grep httpd //Apache Daemon È®ÀÎ
nobody 3434 234 0 1¿ù 18 ? 0:17 /usr/local/apache/bin/httpd
nobody 3432 234 0 1¿ù 18 ? 0:22 /usr/local/apache/bin/httpd
===============================================================================
2.5 ¸¶¹«¸®
[stone]/usr/local/apache/conf>vi httpd.conf //ÀÚ±â ȯ°æ¿¡ ¸Â°Ô ¼öÁ¤
[stone]/usr/local/apache/htdocs> µð·ºÅ丮¿¡ html°ú php Å×½ºÆ® ÆäÀÌÁö¸¦ ¸¸µé°í È®ÀÎ
!!!!!Àß µ¹¾Æ°¡¿ä???..!!!!!
|