湖濱散記部落格的樹心幽徑[login][主頁]
299:20141009在fedora 19 裝妥httpd

(1)
[root@localhost webadm]# df
檔案系統                        1K-blocks      已用      可用 已用% 掛載點
/dev/mapper/fedora-root          51475068   4516916  44336712   10% /
devtmpfs                          4071896         0   4071896    0% /dev
tmpfs                             4080440        92   4080348    1% /dev/shm
tmpfs                             4080440      1052   4079388    1% /run
tmpfs                             4080440         0   4080440    0% /sys/fs/cgroup
tmpfs                             4080440       940   4079500    1% /tmp
/dev/sda2                          487652     71096    390956   16% /boot
/dev/mapper/fedora-home         903627888  12758056 844961456    2% /home
/dev/mapper/VolGroup00-LogVol00 234218128 161928608  60193216   73%

/run/media/webadm/a324f61c-dd20-430b-bc76-ce8a1a77ceb2
/dev/sdb1                          190346     53812    126495   30% /run/media/webadm/_boot

[root@localhost webadm]# date
五  9月 26 16:50:01 CST 2014
[root@localhost webadm]# uname -a
Linux localhost.localdomain 3.9.5-301.fc19.i686.PAE #1 SMP Tue Jun 11 19:46:44 UTC

2013 i686 i686 i386 GNU/Linux
[root@localhost webadm]#


(2)
[root@localhost webadm]# uname -a
Linux localhost.localdomain 3.9.5-301.fc19.i686.PAE #1 SMP Tue Jun 11 19:46:44 UTC

2013 i686 i686 i386 GNU/Linux
[root@localhost webadm]# wget http://apache.stu.edu.tw//httpd/httpd-2.4.10.tar.gz
:
2014-09-26 16:51:00 (1.86 MB/s) - ‘httpd-2.4.10.tar.gz’ saved [6820719/6820719]
[root@localhost webadm]#

(3)
[root@localhost webadm]# pwd
/home/webadm
[root@localhost webadm]# tar xvzf httpd-2.4.10.tar.gz

(4)
[root@localhost webadm]# wget http://apache.stu.edu.tw//apr/apr-1.5.1.tar.gz
--2014-09-26 16:54:14--  http://apache.stu.edu.tw//apr/apr-1.5.1.tar.gz
:
2014-09-26 16:54:20 (1000 KB/s) - ‘apr-1.5.1.tar.gz’ saved [1020833/1020833]

[root@localhost webadm]#
[root@localhost webadm]# tar xvzf apr-1.5.1.tar.gz
[root@localhost webadm]# cd apr-1.5.1/
[root@blackbear apr-1.5.1]# ./configure --prefix=/usr/local/apr
:
config.status: executing libtool commands
rm: cannot remove 'libtoolT': No such file or directory
config.status: executing default commands
config.status: include/apr.h is unchanged
config.status: include/arch/unix/apr_private.h is unchanged


[root@blackbear apr-1.5.1]# vi configure
# $RM "$cfgfile"
[root@blackbear apr-1.5.1]# ./configure --prefix=/usr/local/apr
:
config.status: include/apr.h is unchanged
config.status: include/arch/unix/apr_private.h is unchanged

[root@blackbear apr-1.5.1]# make
:
make[1]: Leaving directory `/home/webadm/apr-1.5.1'
[root@blackbear apr-1.5.1]# make install
/usr/bin/install -c -m 644 build/apr_rules.out /usr/local/apr-util/build-1/apr_rules.mk
/usr/bin/install -c -m 755 apr-config.out /usr/local/apr-util/bin/apr-1-config
[root@blackbear apr-1.5.1]#


(5)
[root@localhost apr-1.5.1]# yum install gcc
:
Complete!
[root@localhost apr-1.5.1]# gcc -v
使用內建 specs。
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-redhat-linux/4.8.3/lto-wrapper
目的:i686-redhat-linux
:
gcc version 4.8.3 20140624 (Red Hat 4.8.3-1) (GCC)
[root@localhost apr-1.5.1]#


(6)
[root@localhost webadm]# wget http://apache.stu.edu.tw//apr/apr-util-1.5.4.tar.gz
--2014-09-26 17:04:22--  http://apache.stu.edu.tw//apr/apr-util-1.5.4.tar.gz
:
2014-09-26 17:04:22 (1.62 MB/s) - ‘apr-util-1.5.4.tar.gz’ saved [874044/874044]

[root@localhost webadm]# tar xvzf apr-util-1.5.4.tar.gz


(7)
[root@localhost webadm]# vi /etc/hosts
[root@localhost webadm]# vi  /etc/sysconfig/network
[root@localhost webadm]# hostname blackbear
[root@localhost webadm]# cat  /etc/sysconfig/network
# Created by anaconda
NETWORKING=yes
HOSTNAME=blackbear
GATEWAY=163.25.20.254
[root@localhost webadm]# cat /etc/hosts
127.0.0.1  blackbear localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@localhost webadm]#


(8)
[root@blackbear apr-1.5.1]# cd ../apr-util-1.5.3/
[root@blackbear apr-util-1.5.3]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr   --with-gdbm=/usr   --with-openssl=/usr
:
config.status: creating include/private/apu_config.h
config.status: executing default commands
[root@blackbear apr-util-1.5.4]# make

:

make[1]: Leaving directory `/home/webadm/apr-util-1.5.4'
[root@blackbear apr-util-1.5.4]# make test
:
teststrmatch        : SUCCESS
testuri             : SUCCESS
testuuid            : SUCCESS
testbuckets         : SUCCESS
testpass            : SUCCESS
testmd4             : SUCCESS
testmd5             : SUCCESS
testcrypto          : SUCCESS
testdbd             : SUCCESS
testdate            : SUCCESS
testmemcache        : SUCCESS
testxml             : SUCCESS
testxlate           : SUCCESS
testrmm             : SUCCESS
testdbm             : SUCCESS
testqueue           : SUCCESS
testreslist         : SUCCESS
All tests passed.
make[1]: Leaving directory `/home/webadm/apr-util-1.5.4/test'
[root@blackbear apr-util-1.5.4]# make install

:
Libraries have been installed in:
   /usr/local/apr-util/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/install -c -m 644 aprutil.exp /usr/local/apr-util/lib
/usr/bin/install -c -m 755 apu-config.out /usr/local/apr-util/bin/apu-1-config
[root@blackbear apr-util-1.5.4]#


(9)
[root@blackbear apr-util-1.5.4]# cd ../httpd-2.4.10/
[root@blackbear httpd-2.4.10]# ./configure --enable-so --enable-unique-id --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
:
checking for pcre-config... false
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
[root@blackbear httpd-2.4.10]#


(10)
[root@blackbear httpd-2.4.10]# yum install gcc-c++
Installed:
  gcc-c++.i686 0:4.8.3-7.fc19

Complete!


(11)

[root@blackbear httpd-2.4.10]# wget http://downloads.sourceforge.net/pcre/pcre-8.35.tar.bz2
--2014-10-01 20:26:39--  http://downloads.sourceforge.net/pcre/pcre-8.35.tar.bz2
:
Saving to: ‘pcre-8.35.tar.bz2’

100%[===================================================================================>] 1,522,220   1.74MB/s   in 0.8s

2014-10-01 20:26:41 (1.74 MB/s) - ‘pcre-8.35.tar.bz2’ saved [1522220/1522220]

[root@blackbear httpd-2.4.10]#
[root@blackbear httpd-2.4.10]# mv pcre-8.35.tar.bz2 ..
[root@blackbear httpd-2.4.10]# cd ..
[root@blackbear webadm]# tar jxvf pcre-8.35.tar.bz2

[root@blackbear pcre-8.35]# ./configure --prefix=/usr --docdir=/usr/share/doc/pcre-8.35  --enable-unicode-properties --enable-pcre16 --enable-pcre32 --disable-static
:

    Build 8 bit pcre library ........ : yes
    Build 16 bit pcre library ....... : yes
    Build 32 bit pcre library ....... : yes
    Build C++ library ............... : yes
    Enable JIT compiling support .... : no
    Enable UTF-8/16/32 support ...... : yes
    Unicode properties .............. : yes
    Newline char/sequence ........... : lf
    \R matches only ANYCRLF ......... : no
    EBCDIC coding ................... : no
    EBCDIC code for NL .............. : n/a
    Rebuild char tables ............. : no
    Use stack recursion ............. : yes
    POSIX mem threshold ............. : 10
    Internal link size .............. : 2
    Nested parentheses limit ........ : 250
    Match limit ..................... : 10000000
    Match limit recursion ........... : MATCH_LIMIT
    Build shared libs ............... : yes
    Build static libs ............... : no
    Use JIT in pcregrep ............. : no
    Buffer size for pcregrep ........ : 20480
    Link pcregrep with libz ......... : no
    Link pcregrep with libbz2 ....... : no
    Link pcretest with libedit ...... : no
    Link pcretest with libreadline .. : no
    Valgrind support ................ : no
    Code coverage ................... : no

[root@blackbear pcre-8.35]# make
:make[1]: Leaving directory `/home/webadm/pcre-8.35'
[root@blackbear pcre-8.35]# make install
:
make[3]: Leaving directory `/home/webadm/pcre-8.35'
make[2]: Leaving directory `/home/webadm/pcre-8.35'
make[1]: Leaving directory `/home/webadm/pcre-8.35'
[root@blackbear pcre-8.35]#

(12)
[root@blackbear pcre-8.35]# cd ../httpd-2.4.10/
[root@blackbear httpd-2.4.10]#  ./configure --enable-so --enable-unique-id --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
[root@blackbear httpd-2.4.10]# make
:

 const void *ap_hack_apr_version_string = (const void *)apr_version_string;
            ^
make[2]: *** [exports.lo] Error 1
make[2]: Leaving directory `/home/webadm/httpd-2.4.10/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/webadm/httpd-2.4.10/server'
make: *** [all-recursive] Error 1
[root@blackbear httpd-2.4.10]#

(13)
[root@blackbear httpd-2.4.10]# yum install libtool
:
Installed:
  libtool.i686 0:2.4.2-24.fc19

Dependency Installed:
  autoconf.noarch 0:2.69-10.fc19                                 automake.noarch 0:1.13.4-1.fc19
  m4.i686 0:1.4.16-8.fc19                                        perl-Test-Harness.noarch 0:3.23-266.fc19
  perl-Text-ParseWords.noarch 0:3.27-266.fc19                    perl-Thread-Queue.noarch 0:3.02-1.fc19

Complete!
[root@blackbear httpd-2.4.10]#

(14)
[root@blackbear srclib]# pwd
/home/webadm/httpd-2.4.10/srclib

[root@blackbear srclib]# mv ~webadm/pcre-8.35 .
[root@blackbear srclib]# ls
apr-1.5.1  apr-util-1.5.4  Makefile  Makefile.in  pcre-8.35
[root@blackbear srclib]# ls -l
總計 28
drwxr-xr-x. 28 webadm webadm  4096 10月  1 20:17 apr-1.5.1
drwxr-xr-x. 20 webadm webadm  4096 10月  1 20:20 apr-util-1.5.4
-rw-r--r--.  1 root   root     347 10月  6 10:27 Makefile
-rw-r--r--.  1    501 games    121  2月 11  2005 Makefile.in
drwxr-xr-x.  9   1169   1169 12288 10月  1 22:14 pcre-8.35
[root@blackbear srclib]#


(15)
[root@blackbear srclib]# cd apr-1.5.1/
[root@blackbear apr-1.5.1]#  ./configure --prefix=/usr/local/apr
[root@blackbear apr-1.5.1]# make
[root@blackbear apr-1.5.1]# make install
:
Libraries have been installed in:
   /usr/local/apr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/install -c -m 644 apr.exp /usr/local/apr/lib/apr.exp
/usr/bin/install -c -m 644 apr.pc /usr/local/apr/lib/pkgconfig/apr-1.pc
for f in libtool shlibtool; do \
    if test -f ${f}; then /usr/bin/install -c -m 755 ${f} /usr/local/apr/build-1; fi; \
done
/usr/bin/install -c -m 755 /home/webadm/httpd-2.4.10/srclib/apr-1.5.1/build/mkdir.sh /usr/local/apr/build-1
for f in make_exports.awk make_var_export.awk; do \
    /usr/bin/install -c -m 644 /home/webadm/httpd-2.4.10/srclib/apr-1.5.1/build/${f} /usr/local/apr/build-1; \
done
/usr/bin/install -c -m 644 build/apr_rules.out /usr/local/apr/build-1/apr_rules.mk
/usr/bin/install -c -m 755 apr-config.out /usr/local/apr/bin/apr-1-config


(16)
[root@blackbear apr-1.5.1]# cd ../apr-util-1.5.4/
[root@blackbear apr-util-1.5.4]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr   --with-gdbm=/usr   --with-openssl=/usr
[root@blackbear apr-util-1.5.4]#  make clean
[root@blackbear apr-util-1.5.4]# make
[root@blackbear apr-util-1.5.4]#  make test
All tests passed.
make[1]: Leaving directory `/home/webadm/httpd-2.4.10/srclib/apr-util-1.5.4/test'
[root@blackbear apr-util-1.5.4]#
[root@blackbear apr-util-1.5.4]# make install
:
Libraries have been installed in:
   /usr/local/apr-util/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/install -c -m 644 aprutil.exp /usr/local/apr-util/lib
/usr/bin/install -c -m 755 apu-config.out /usr/local/apr-util/bin/apu-1-config
[root@blackbear apr-util-1.5.4]#


(17)
[root@blackbear apr-util-1.5.4]# cd ~webadm/httpd-2.4.10/
[root@blackbear httpd-2.4.10]#  ./configure --enable-so --enable-unique-id --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
[root@blackbear httpd-2.4.10]# make

:
make[2]: *** [exports.lo] Error 1
make[2]: Leaving directory `/home/webadm/httpd-2.4.10/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/webadm/httpd-2.4.10/server'
make: *** [all-recursive] Error 1
[root@blackbear httpd-2.4.10]#



(18)

[webadm@blackbear ~]$ wget https://archive.apache.org/dist/apr/apr-util-1.5.3.tar.gz
--2014-10-07 14:01:27--  https://archive.apache.org/dist/apr/apr-util-1.5.3.tar.gz
:
2014-10-07 14:01:31 (293 KB/s) - ‘apr-util-1.5.3.tar.gz’ saved [874462/874462]

[webadm@blackbear ~]$

[webadm@blackbear ~]$ tar xvzf apr-util-1.5.3.tar.gz

[root@blackbear webadm]#  mv apr-util-1.5.3 httpd-2.4.10/srclib/
[root@blackbear webadm]# cd httpd-2.4.10/srclib/
[root@blackbear srclib]# ls
apr-1.5.1  apr-util-1.5.3  apr-util-1.5.4  Makefile  Makefile.in  pcre-8.35
[root@blackbear srclib]#
[root@blackbear srclib]# cd  apr-util-1.5.3
[root@blackbear apr-util-1.5.3]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr   --with-gdbm=/usr   --with-openssl=/usr

[root@blackbear apr-util-1.5.3]# make
[root@blackbear apr-util-1.5.3]# make test
:

testreslist         : SUCCESS
All tests passed.
make[1]: Leaving directory `/home/webadm/httpd-2.4.10/srclib/apr-util-1.5.3/test'


[root@blackbear apr-util-1.5.3]# make install
:

Libraries have been installed in:
   /usr/local/apr-util/lib

/usr/bin/install -c -m 644 aprutil.exp /usr/local/apr-util/lib
/usr/bin/install -c -m 755 apu-config.out /usr/local/apr-util/bin/apu-1-config


(19)

[root@blackbear apr-util-1.5.3]# cd ~webadm/httpd-2.4.10/
[root@blackbear httpd-2.4.10]# ./configure --enable-so --enable-unique-id --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util

[root@blackbear httpd-2.4.10]# make

:

exports.c:1634:13: note: previous definition of 'ap_hack_apr_version_string' was here
 const void *ap_hack_apr_version_string = (const void *)apr_version_string;
             ^
make[2]: *** [exports.lo] Error 1
make[2]: Leaving directory `/home/webadm/httpd-2.4.10/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/webadm/httpd-2.4.10/server'
make: *** [all-recursive] Error 1
[root@blackbear httpd-2.4.10]#

[root@blackbear httpd-2.4.10]# ./configure --enable-so --enable-unique-id --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-included-apr
:
configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.

[root@blackbear srclib]# mv apr-util-1.5.3   apr-util
[root@blackbear srclib]# mv apr-1.5.1 apr
[root@blackbear srclib]#

[root@blackbear httpd-2.4.10]# ./configure --enable-so --enable-unique-id --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-included-apr

[root@blackbear httpd-2.4.10]# make
:
libtool: link: cannot find the library `/home/webadm/httpd-2.4.10/srclib/apr-util-1.5.3/xml/expat/libexpat.la' or unhandled argument `/home/webadm/httpd-2.4.10/srclib/apr-util-1.5.3/xml/expat/libexpat.la'
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/home/webadm/httpd-2.4.10/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/webadm/httpd-2.4.10/support'
make: *** [all-recursive] Error 1
[root@blackbear httpd-2.4.10]# cd srclib/
[root@blackbear srclib]#

[root@blackbear srclib]# ln -s apr-util apr-util-1.5.3
[root@blackbear srclib]# ls -l
總計 32
drwxr-xr-x. 28 webadm webadm  4096 10月  7 15:17 apr
drwxr-xr-x. 20 webadm webadm  4096 10月  7 17:15 apr-util
lrwxrwxrwx.  1 root   root       8 10月  7 17:15 apr-util-1.5.3 -> apr-util
drwxr-xr-x. 20 webadm webadm  4096 10月  6 10:44 apr-util-1.5.4
-rw-r--r--.  1 root   root     347 10月  7 15:16 Makefile
-rw-r--r--.  1    501 games    121  2月 11  2005 Makefile.in
drwxr-xr-x.  9   1169   1169 12288 10月  1 22:14 pcre-8.35
[root@blackbear httpd-2.4.10]# make
:
make[1]: Leaving directory `/home/webadm/httpd-2.4.10'
[root@blackbear httpd-2.4.10]# make install
:
libtool: install: error: cannot install `libaprutil-1.la' to a directory not ending in /usr/local/apr-util/lib
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/webadm/httpd-2.4.10/srclib/apr-util'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/webadm/httpd-2.4.10/srclib'
make: *** [install-recursive] Error 1
[root@blackbear httpd-2.4.10]#

[root@blackbear httpd-2.4.10]# ls -l /usr/local/apr-util/lib
總計 4196
-rw-r--r--. 1 root root    9262 10月  1 20:11 apr.exp
-rw-r--r--. 1 root root    5272 10月  7 14:06 aprutil.exp
-rw-r--r--. 1 root root 1014918 10月  1 20:11 libapr-1.a
-rwxr-xr-x. 1 root root     970 10月  1 20:11 libapr-1.la
lrwxrwxrwx. 1 root root      17 10月  1 20:11 libapr-1.so -> libapr-1.so.0.5.1
lrwxrwxrwx. 1 root root      17 10月  1 20:11 libapr-1.so.0 -> libapr-1.so.0.5.1
-rwxr-xr-x. 1 root root  708329 10月  1 20:11 libapr-1.so.0.5.1
-rw-r--r--. 1 root root  665088 10月  7 14:06 libaprutil-1.a
-rwxr-xr-x. 1 root root    1065 10月  7 14:06 libaprutil-1.la
lrwxrwxrwx. 1 root root      21 10月  7 14:06 libaprutil-1.so -> libaprutil-1.so.0.5.3
lrwxrwxrwx. 1 root root      21 10月  7 14:06 libaprutil-1.so.0 -> libaprutil-1.so.0.5.4
-rwxr-xr-x. 1 root root  491477 10月  7 14:06 libaprutil-1.so.0.5.3
-rwxr-xr-x. 1 root root  491477 10月  6 10:45 libaprutil-1.so.0.5.4
-rw-r--r--. 1 root root  472378 10月  7 14:06 libexpat.a
-rwxr-xr-x. 1 root root     933 10月  7 14:06 libexpat.la
lrwxrwxrwx. 1 root root      17 10月  7 14:06 libexpat.so -> libexpat.so.0.5.0
lrwxrwxrwx. 1 root root      17 10月  7 14:06 libexpat.so.0 -> libexpat.so.0.5.0
-rwxr-xr-x. 1 root root  407543 10月  7 14:06 libexpat.so.0.5.0
drwxr-xr-x. 2 root root    4096 10月  7 14:06 pkgconfig
[root@blackbear httpd-2.4.10]#
[root@blackbear httpd-2.4.10]# date
二 10月  7 17:22:59 CST 2014

[root@blackbear apr-util]# pwd
/home/webadm/httpd-2.4.10/srclib/apr-util
[root@blackbear apr-util]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr   --with-gdbm=/usr   --with-openssl=/usr
[root@blackbear apr-util]# make
[root@blackbear apr-util]# make install


[root@blackbear httpd-2.4.10]# make
:
make[1]: Leaving directory `/home/webadm/httpd-2.4.10'
[root@blackbear httpd-2.4.10]# make install

:
Installing configuration files
[PRESERVING EXISTING HTDOCS SUBDIR: /usr/local/apache2/htdocs]
[PRESERVING EXISTING ERROR SUBDIR: /usr/local/apache2/error]
[PRESERVING EXISTING ICONS SUBDIR: /usr/local/apache2/icons]
[PRESERVING EXISTING CGI SUBDIR: /usr/local/apache2/cgi-bin]
Installing header files
build/config_vars.sh: line 40: /usr/local/apache2/bin/apu-1-config: 沒有此一檔案或目錄
Installing build system files
Installing man pages and online manual
make[1]: Leaving directory `/home/webadm/httpd-2.4.10'
[root@localhost httpd-2.4.10]#

[root@localhost httpd-2.4.10]# cp /usr/local/apr-util/bin/apu-1-config /usr/local/apache2/bin

[root@blackbear httpd-2.4.10]# make install
:
Installing configuration files
[PRESERVING EXISTING HTDOCS SUBDIR: /usr/local/apache2/htdocs]
[PRESERVING EXISTING ERROR SUBDIR: /usr/local/apache2/error]
[PRESERVING EXISTING ICONS SUBDIR: /usr/local/apache2/icons]
[PRESERVING EXISTING CGI SUBDIR: /usr/local/apache2/cgi-bin]
Installing header files
Installing build system files
Installing man pages and online manual
make[1]: Leaving directory `/home/webadm/httpd-2.4.10'

(20)
[root@blackbear bin]# vi /etc/selinux/config
[root@blackbear bin]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
暫時關閉SELinux而不用重開機
[root@blackbear bin]# setenforce 0


(21)It works!
[root@localhost httpd-2.4.10]# /usr/local/apache2/bin/apachectl start
[root@localhost httpd-2.4.10]# ps ax|grep httpd
 1371 ?        Ss     0:01 /usr/local/apache2/bin/httpd -k start
 1372 ?        Sl     0:16 /usr/local/apache2/bin/httpd -k start
 1373 ?        Sl     0:16 /usr/local/apache2/bin/httpd -k start
 1374 ?        Sl     0:16 /usr/local/apache2/bin/httpd -k start
24552 pts/0    S+     0:00 grep --color=auto httpd

http://163.25.20.91/      
It works!

[root@localhost httpd-2.4.10]# date
四 10月  9 10:14:06 CST 2014


select id,article_id,topic,text from lt_articles_text where article_id =299; ok. update lt_articles set num_reads=num_reads +1 where id=299; ok.