Linux????apache??????????
???????????? ???????[ 2015/12/14 10:45:20 ] ??????????????
????????????apache
????1????????????
????httpd-2.4.4??????°汾??apr??apr-util????????????????????????
?????????????????????????????????????????????????rpm??????????С???????????????????????У??????????·???????~_~????????????????????????????????????????????
????2?????????????????????????????????????????????????
????yum-yinstallpcre-devel
????yum-yinstall"DevelopmentLibraries"(??????????????????????????С?????????????????????)
????3????????????????????????
????(1)?????apr
????tarxfapr-1.4.6.tar.bz2
????cdapr-1.4.6
????./configure--prefix=/usr/local/apr
????make&&makeinstall
????(2)?????apr-util
????tarxfapr-util-1.5.2.tar.bz2
????cdapr-util-1.5.2
????./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr
????make&&makeinstall
????(3)?????httpd-2.4.4
????tarxfhttpd-2.4.4.tar.bz2
????cdhttpd-2.4.4
????./configure--prefix=/usr/local/apache--sysconfdir=/etc/httpd--enable-so--enable-ssl--enable-cgi--enable-rewrite--with-zlib--with-pcre--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util--enable-modules=most--enable-mods-shared=most--enable-mpms-shared=most--with-mpm=event
????make&&makeinstall
????????????
????1?????apache????????
??????????????????????SELinux?????????й????apache??????????????????????????????iptables????????????????????????????й???
????2?????apache????
????#setenforce0
????#serviceiptablesstop
????#/usr/local/apache/bin/apachectlstart
?????????????????ip????????????3??????????
????Itworks!
???????apache????????????????
????????и???????????????httpd.conf????????????????????????????????
?????????Щ????apache???????????
????1????RPM??????Apache???????????λ???
????/etc/httpd/--------------------------Apache??????????
????/etc/httpd/conf/httpd.conf---------?????????
????/var/www/html---------------------????????????
????/var/log/httpd/error_log----------??????????
????/var/log/httpd/access_log--------??????????
????2????????????????????????????????????????д????????
?????????????----------------------???????????????--prefix=?????????·??
????????????-------------------???apache???μ?htdocs??
??????????λ??-------------------???apache???μ?logs??
????apache??????????----------???apache???μ?bin??
???????????????
????#1#
????/usr/local/apache/bin/httpd:symbollookuperror:/usr/local/apache/bin/httpd:undefinedsymbol:apr_pool_pre_cleanup_register
???????δ????????apr??apr-util·??
?????????????°??apr??apr-util??????д????????·????
????--with-apr=/usr/local/bin/apr-1-config
????--with-apr-util=/usr/local/apr/bin/apu-1-config
????#2#
????httpd:apr_sockaddr_info_get()failedforredhat
????httpd:Couldnotreliablydeterminetheserver'sfullyqualifieddomainname??using127.0.0.1forServerName
???????httpd.conf?????????ServerName??????????μ???
????????????????httpd.conf?????#ServerName????
????#3#
????httpd:Syntaxerroronline142of/usr/local/apache/conf/httpd.conf:Cannotloadmodules/mod_dir.sointoserver:/usr/local/apache/modules/mod_dir.so:undefinedsymbol:apr_array_clear
??????????????mod_dir.so??饗???岻??
????????????????
????tar-zxvfapr-1.4.6.tar.gz
????tar-zxvfapr-util-1.5.2.tar.gz
????mv./apr-1.4.6/usr/local/src/apache/srclib/apr
????mv./apr-util-1.5.2/usr/local/src/srclib/apr-util
????./configure??????????
????--with-included-apr
????--with-pcre=/usr/local/bin/pcre-config
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11