標籤:編譯安裝httpd2.2.4
編譯安裝httpd2.2.4
PHP 緩衝器:
APC
eAccelerator
XCache
httpd+php
CGI
Module
FastCGI
LAMP:
httpd
php53
pgp53-mysql
mysql-server
編譯配置LAMP:
Linux,Apache,Mysql,PHP (Python,Perl)
Apache: ASF (apache 軟體基金會),httpd,tomcat, cloudware
httpd:2.4.4
php:5.4.13
MySQL:5.6.10 (rpm,通用二進位,源碼)
通用二進位MySQL , 源碼包httpd , 源碼包 php
httpd-->mysql-->php-->XCache
httpd
apr: Apache portable runtime
rpm包:
/bin /sbin /usr/bin /usr/sbin
/lib /usr/lib
/etc
/usr/share/(doc,man)
編譯安裝:
/usr/local/
bin sbin
lib
etc
share/{doc,man}
/usr/local/apr/
bin,sbin,lib,includes,etc,share/man
www.apache.org -->projects-->APR
將源碼包上傳到tmp目錄下
[[email protected] tmp]# ls
apr-1.5.2.tar.bz2 apr-util-1.5.4.tar.bz2 httpd-2.4.23.tar.bz2
[[email protected] apr-1.5.2]# hwclock -s 同步時間
[[email protected] apr-1.5.2]# date
Thu Jul 21 13:04:31 EDT 2016
[[email protected] apr-1.5.2]# cd apr-1.5.2
[[email protected] apr-1.5.2]# ./configure --help |less
[[email protected] apr-1.5.2]# ./configure --prefix=/usr/local/apr
[[email protected] apr-1.5.2]# make
[[email protected] apr-1.5.2]# make install
[[email protected] tmp]# tar -xf apr-util-1.5.4.tar.bz2
[[email protected] tmp]# cd apr-util-1.5.4
[[email protected] apr-util-1.5.4]# ./configure --help |less
[[email protected] apr-util-1.5.4]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr ##--with-apr指定到哪裡去找所依賴的檔案
[[email protected] apr-util-1.5.4] make
[[email protected] apr-util-1.5.4] make install
[[email protected] tmp]# tar -xf httpd-2.4.23.tar.bz2
[[email protected] httpd-2.4.23]# cd httpd-2.4.23
[[email protected] httpd-2.4.23]# yum -y install pcre-devel
[[email protected] httpd-2.4.23]# ./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd --enable-so --enable-rewirte --enable-mod-ssl --enable-cgi --enable-cgid -enable-modules=most --enable-mods-shared=most --enable-mpms-shared=all --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
[[email protected] apache]# file ./bin/apachectl
./bin/apachectl: POSIX shell script text executable
[[email protected] bin]# /usr/local/apache/bin/apachectl start
[[email protected] htdocs]# pwd
/usr/local/apache/htdocs 此目錄下放置首頁面
[[email protected] htdocs]# ls
index.html
[[email protected] htdocs]# vim /etc/httpd/httpd.conf 設定檔
PidFile "/var/run/httd.pid" 修改pid檔案位置
本文出自 “營運成長路” 部落格,謝絕轉載!
編譯安裝httpd2.2.4