linux下apache安装2.2.9
1013 2017-02-10 16:12:14 rpm -qa|grep openssl10142017-02-10 16:13:00 ping 171.33.128.1
10152017-02-10 16:13:58 rpm -e openssl --nodeps
10162017-02-10 16:14:04 echo $?
10172017-02-10 16:14:33 ./config
10182017-02-10 16:14:42 echo $?
10192017-02-10 16:14:51 history
make && make install
tar -czf apache2017210.tar apache
root@WN4DPITSTAP0001:/usr/local>rm -rf apache
root@WN4DPITSTAP0001:/etc>tar -czf httpd.conf.tar.gz httpd
root@WN4DPITSTAP0001:/etc>rm -rf httpd
cd /home/ap/webuser/soft
cd httpd-2.2.9
10152017-02-10 16:13:58 rpm -e openssl --nodeps
10172017-02-10 16:14:33 ./config /usr/local/ssl默认
make &&make install
10682017-02-10 16:41:16 rpm -e apr-util-ldap-1.3.9-3.el6_0.1.x86_64 --nodeps
10692017-02-10 16:41:32 rpm -e apr-util-1.3.9-3.el6_0.1.x86_64 --nodeps
10712017-02-10 16:41:51 tar -xvf apr-1.5.2.tar.gz
10722017-02-10 16:41:59 tar -xvf apr-util-1.5.4.tar.gz
10742017-02-10 16:42:17 cd apr-1.5.2
./configure --prefix=/usr/local/apr
make &&make install
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make &&make install
./configure --prefix=/usr/local/apache --sysconfdir=/usr/local/apache --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-ssl=/usr/local/ssl --with-zlib --with-pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --enable-modules=most --enable-mpms-shared=all --with-mpm=event
make &&make install
server/mpm/experimental/event/.libs/libevent.a(event.o): In function `child_main':
/home/ap/webuser/soft/httpd-2.2.9/server/mpm/experimental/event/event.c:1453: undefined reference to `ap_thread_s
tacksize'collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9'
make: *** Error 1
./configure --prefix=/usr/local/apache --sysconfdir=/usr/local/apache --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-ssl=/usr/local/ssl --with-zlib --with-pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-modules=most
make && make install
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9'
Making install in srclib
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/srclib'
Making install in pcre
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/srclib/pcre'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/srclib/pcre'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/srclib/pcre'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/srclib/pcre'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/srclib'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/srclib'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/srclib'
Making install in os
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/os'
Making install in unix
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/os/unix'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/os/unix'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/os/unix'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/os/unix'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/os'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/os'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/os'
Making install in server
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/server'
Making install in mpm
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/server/mpm'
Making install in prefork
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/server/mpm/prefork'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/server/mpm/prefork'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/server/mpm/prefork'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/server/mpm/prefork'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/server/mpm'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/server/mpm'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/server/mpm'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/server'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/server'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/server'
Making install in modules
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules'
Making install in aaa
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/aaa'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/aaa'
mkdir /usr/local/apache
mkdir /usr/local/apache/modules
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/aaa'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/aaa'
Making install in database
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/database'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/database'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/database'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/database'
Making install in debug
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/debug'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/debug'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/debug'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/debug'
Making install in filters
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/filters'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/filters'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/filters'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/filters'
Making install in loggers
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/loggers'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/loggers'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/loggers'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/loggers'
Making install in metadata
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/metadata'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/metadata'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/metadata'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/metadata'
Making install in ssl
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/ssl'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/ssl'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/ssl'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/ssl'
Making install in http
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/http'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/http'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/http'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/http'
Making install in dav/main
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/dav/main'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/dav/main'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/dav/main'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/dav/main'
Making install in generators
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/generators'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/generators'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/generators'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/generators'
Making install in dav/fs
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/dav/fs'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/dav/fs'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/dav/fs'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/dav/fs'
Making install in mappers
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/mappers'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules/mappers'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/mappers'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules/mappers'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/modules'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules'
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/modules'
Making install in support
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/support'
make: Entering directory `/home/ap/webuser/soft/httpd-2.2.9/support'
mkdir /usr/local/apache/bin
libtool: install: invalid libtool wrapper script `htpasswd'
libtool: install: invalid libtool wrapper script `htdigest'
libtool: install: invalid libtool wrapper script `rotatelogs'
libtool: install: invalid libtool wrapper script `logresolve'
libtool: install: invalid libtool wrapper script `ab'
libtool: install: invalid libtool wrapper script `checkgid'
libtool: install: invalid libtool wrapper script `htdbm'
libtool: install: invalid libtool wrapper script `htcacheclean'
libtool: install: invalid libtool wrapper script `httxt2dbm'
make: *** Error 1
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/support'
make: *** Error 1
make: Leaving directory `/home/ap/webuser/soft/httpd-2.2.9/support'
make: *** Error 1
userdel -r apache
./configure --prefix=/usr/local/apache --sysconfdir=/usr/local/apache/conf --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-ssl=/usr/local/ssl--with-pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-modules=most
root@WN4DPITSTAP0001:/usr/local>ls
apache_20170120.tar.gzapr bingames lib libexecsharessl
apache2017210.tar apr-utiletcincludelib64sbin src
root@WN4DPITSTAP0001:/usr/local>tar -czf ssl.tar.gz ssl
root@WN4DPITSTAP0001:/usr/local>ls
apache_20170120.tar.gzapr bingames lib libexecsharessl
apache2017210.tar apr-utiletcincludelib64sbin src ssl.tar.gz
root@WN4DPITSTAP0001:/usr/local>rm -rf ssl
root@WN4DPITSTAP0001:/usr/local>ls
apache_20170120.tar.gzapr bingames lib libexecsharessl.tar.gz
apache2017210.tar apr-utiletcincludelib64sbin src
./config --prefix=/usr/local/openssl
make &&make install
cd /home/ap/webuser/soft/httpd-2.2.9
./configure --prefix=/usr/local/apache --sysconfdir=/usr/local/apache/conf --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-ssl=/usr/local/openssl --with-zlib --with-pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --enable-modules=most --enable-mpms-shared=all --with-mpm=event
make: Nothing to be done for `local-all'.
make clean 清编译残余文件
./configure --prefix=/usr/local/apache --sysconfdir=/usr/local/apache/conf --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-ssl=/usr/local/openssl --with-zlib --with-pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --enable-modules=most --enable-mpms-shared=all --with-mpm=event
make&&make install
安装完成
页:
[1]