π2017λ
μ΄μ ν¬μ€ν
λͺ¨μ π/πLinux OSπ
Apache μ»΄νμΌ μ€μΉμ΅μ
πBugsBunnyπ
2011. 5. 14. 15:43
βββββββββ λ²μ λ³ μ»΄νμΌ μ€μΉ λ΄μ© βββββββββ
ββββββ <μ΅μ μ€λͺ > ββββββ
--prefix=/usr/local/apache2 ==> Apache μ€μΉ κ²½λ‘ μ§μ
--sysconfdir=/usr/local/apache2/conf
--enable-module=so ==> DSO(Dynamic Shared Objects) λμ 곡μ κ°μ²΄λ‘ Apache μ€μΉ
--enable-so - DSO(Dynamic Shared Objects) λμ 곡μ κ°μ²΄λ‘ Apache μ€μΉ, λͺ¨λ μλμ μ΄
--enable-rule=SHARED_CORE - DSO(Dynamic Shared Objects) λμ 곡μ κ°μ²΄λ‘ Apache μ€μΉ, λͺ¨λμλμ μ΄
--enable-module=ssl - ssl μΈμ¦μ λͺ¨λμ μ€μΉνλ€.
--enable-ssl=shared - ssl μΈμ¦μ λͺ¨λμ μ€μΉνλ€.
--with-mpm=prefork - λ€μ€μ²λ¦¬λͺ¨λμ λ°©μμ prefork λ°©μμΌλ‘ μ§μ νλ€. μμΈν λ΄μ©μ
ββββββ Apache-1λ²μ μ°λ μ€μΉββββββ
SSL_BASE=/usr/local/openssl ./configure --prefix=/usr/local/apache \
--sysconfdir=/usr/local/apache/conf --activate-module=src/modules/php5/libphp5.a \
--enable-module=ssl --enable-shared=ssl --enable-module=rewrite \
--enable-shared=rewrite --enable-rule=SHARED_CORE \
--enable-module=so --enable-shared=max
ββββββ Apache-2λ²μ ββββββ
SSL_BASE=/usr/local/openssl ./configure --prefix=/usr/local/httpd \
--enable-shared=max --enable-rule=SHARED_CORE \
--enable-modules=so --enable-so
β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£
β£β£β£β£β£β£ Apache1λ²μ [μ£Όλ‘ λ΄κ° μ¬μ©νλ μ΅μ ] β£β£β£β£β£β£
β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£β£
λ 립μ€μΉμ΅μ
================================================================================================
./configure --prefix=/usr/local/apache --enable-module=all \
--enable-shared=max --enable-module=rewrite --enable-shared=rewrite --enable-module=proxy \
--enable-shared=proxy --enable-rule=SHARED_CORE --enable-module=so
==================================================================================================
httpd-2.2.6]# /usr/local/apache2/bin/apxs -i -a -c mod_logio.c ==> μλμ»΄νμΌ λ°©μ
apxsκ° μμκ²½μ°μ μλ λ€λ₯Έ λ°©μ
/modules/dav/fs]# cp mod_dav_fs.c /usr/local/apache2/include
/modules/dav/fs]# cp repos.c /usr/local/apache2/include
/modules/dav/fs]# cd /usr/local/apache2/include
/apache2/include]# gcc -fpic -DSHARED_MODULE -l/usr/include/apache2 -DEAPI -c mod_dav_fs.c
/apache2/include]# gcc -shared -o mod_dav_fs.so mod_dav_fs.o
/apache2/include]# mv mod_dav_fs.so /usr/local/apache2/modules
/apache2/include]# chmod 755 /usr/local/apache2/modules/mod_dav_fs.so