编译安装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目录下
[root@localhost tmp]# ls
apr-1.5.2.tar.bz2 apr-util-1.5.4.tar.bz2 httpd-2.4.23.tar.bz2
[root@localhost apr-1.5.2]# hwclock -s 同步时间
[root@localhost apr-1.5.2]# date
Thu Jul 21 13:04:31 EDT 2016
[root@localhost apr-1.5.2]# cd apr-1.5.2
[root@localhost apr-1.5.2]# ./configure --help |less
[root@localhost apr-1.5.2]# ./configure --prefix=/usr/local/apr
[root@localhost apr-1.5.2]# make
[root@localhost apr-1.5.2]# make install
[root@localhost tmp]# tar -xf apr-util-1.5.4.tar.bz2
[root@localhost tmp]# cd apr-util-1.5.4
[root@localhost apr-util-1.5.4]# ./configure --help |less
[root@localhost apr-util-1.5.4]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr ##--with-apr指定到哪里去找所依赖的文件
[root@localhost apr-util-1.5.4] make
[root@localhost apr-util-1.5.4] make install
[root@localhost tmp]# tar -xf httpd-2.4.23.tar.bz2
[root@localhost httpd-2.4.23]# cd httpd-2.4.23
[root@localhost httpd-2.4.23]# yum -y install pcre-devel
[root@localhost 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
[root@localhost apache]# file ./bin/apachectl
./bin/apachectl: POSIX shell script text executable
[root@localhost bin]# /usr/local/apache/bin/apachectl start
[root@localhost htdocs]# pwd
/usr/local/apache/htdocs 此目录下放置主页面
[root@localhost htdocs]# ls
index.html
[root@localhost htdocs]# vim /etc/httpd/httpd.conf 配置文件
PidFile "/var/run/httd.pid" 修改pid文件位置
本文出自 “运维成长路” 博客,谢绝转载!
原文地址:http://coolcl.blog.51cto.com/4514424/1828639