apache2.0 + php4.2 ¼³Ä¡¹ý |
±Û ¾´ ÀÌ |
linux |
³¯ Â¥ |
2002³â 11¿ù 14ÀÏ 00½Ã 26ºÐ 47ÃÊ |
º» ¹® |
apache 2.x°¡ ¸±¸®Áî µÇ¾î ±âÁ¸ÀÇ ¼³Ä¡ ¹æ¹ýÀº ¾ÈµÇ´õ±º¿ä.
mysqlÀº ÀÌ¹Ì ¼³Ä¡µÇ¾î ÀÖ´Ù°í ÇսôÙ.
1.apache compile
./configure --prefix=/usr/local/apache --enable-rule=SHARED_CORE --enable-module=so --enable-shared=max --enable-so
make
make install
2.php compile
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-apache-install=/usr/local/apache --with-mysql --enable-module=so --disable-debug
make
make install
cp php.ini-dist /usr/local/lib/php.ini
3. httpd.conf ¼öÁ¤
1. LoadModule section¿¡ ´ÙÀ½ Ãß°¡
LoadModule php4_module modules/libphp4.so
SetOutputFilter PHP
SetInputFilter PHP
2. AddType section¿¡ ´ÙÀ½ Ãß°¡
AddType application/x-httpd-php .php .php3 .htm .html
Addtype application/x-httpd-php-source .phps
4. ÀÌ¿ÜÀÇ httpd.conf¼öÁ¤Àº ±âÁ¸°ú °°À¸´Ï ¼öÁ¤ÇϽʽÿÀ.
ÀúÀÇ °æ¿ì redhat 7.2, gcc-2.96-98¿¡¼ ÇÏ¿´´Âµ¥ Àß µÇ¾ú½À´Ï´Ù.
±×·³.
|
|
|
|