湖濱散記部落格的樹心幽徑[login][主頁]
298:20140926在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:50:53--  http://apache.stu.edu.tw//httpd/httpd-2.4.10.tar.gz
正在查找主機 apache.stu.edu.tw (apache.stu.edu.tw)... 120.119.118.1,

2001:e10:c41:eeee::1
正在連接 apache.stu.edu.tw (apache.stu.edu.tw)|120.119.118.1|:80... 連上了。
已送出 HTTP 要求,正在等候回應... 200 OK
長度: 6820719 (6.5M) [application/x-gzip]
Saving to: ‘httpd-2.4.10.tar.gz’

100%[====================================================

===============================>] 6,820,719   1.92MB/s   in 3.5s

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
正在查找主機 apache.stu.edu.tw (apache.stu.edu.tw)... 120.119.118.1,

2001:e10:c41:eeee::1
正在連接 apache.stu.edu.tw (apache.stu.edu.tw)|120.119.118.1|:80... 連上了。
已送出 HTTP 要求,正在等候回應... 200 OK
長度: 1020833 (997K) [application/x-gzip]
Saving to: ‘apr-1.5.1.tar.gz’

100%[====================================================

===============================>] 1,020,833   1000KB/s   in 1.0s

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@localhost apr-1.5.1]#  ./configure --prefix=/usr/local/apr-util --with-

apr=/usr/local/apr
configure: WARNING: unrecognized options: --with-apr
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring APR library
Platform: i686-pc-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.5.1
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/webadm/apr-1.5.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
[root@localhost apr-1.5.1]#


(6)
[root@localhost apr-1.5.1]# yum install gcc
:
Installed:
  gcc.i686 0:4.8.3-1.fc19

Dependency Installed:
  cpp.i686 0:4.8.3-1.fc19                      glibc-devel.i686 0:2.17-20.fc19       glibc-

headers.i686 0:2.17-20.fc19
  kernel-headers.i686 0:3.14.17-100.fc19       libasan.i686 0:4.8.3-1.fc19          

libatomic.i686 0:4.8.3-1.fc19
  libmpc.i686 0:1.0.1-1.fc19

Updated:
  glibc.i686 0:2.17-20.fc19

Dependency Updated:
  glibc-common.i686 0:2.17-20.fc19             libgcc.i686 0:4.8.3-1.fc19             libgomp.i686

0:4.8.3-1.fc19

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
配置為:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info

--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared

--enable-threads=posix --enable-checking=release --with-system-zlib --enable-

__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-

linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c+

+,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-java-awt=gtk

--disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-

libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-

ecj.jar --disable-libjava-multilib --with-isl=/builddir/build/BUILD/gcc-4.8.3-

20140624/obj-i686-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-

4.8.3-20140624/obj-i686-redhat-linux/cloog-install --with-tune=generic --with-

arch=i686 --build=i686-redhat-linux
執行緒模型:posix
gcc version 4.8.3 20140624 (Red Hat 4.8.3-1) (GCC)
[root@localhost apr-1.5.1]#

(7)
[root@localhost apr-1.5.1]# ./configure --prefix=/usr/local/apr-util --with-

apr=/usr/local/apr
:
config.status: executing libtool commands
rm: cannot remove 'libtoolT': No such file or directory
config.status: executing default commands
configure: WARNING: unrecognized options: --with-apr

(8)

[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
正在查找主機 apache.stu.edu.tw (apache.stu.edu.tw)... 120.119.118.1,

2001:e10:c41:eeee::1
正在連接 apache.stu.edu.tw (apache.stu.edu.tw)|120.119.118.1|:80... 連上了。
已送出 HTTP 要求,正在等候回應... 200 OK
長度: 874044 (854K) [application/x-gzip]
Saving to: ‘apr-util-1.5.4.tar.gz’

100%[====================================================

===============================>] 874,044     1.62MB/s   in 0.5s

2014-09-26 17:04:22 (1.62 MB/s) - ‘apr-util-1.5.4.tar.gz’ saved [874044/874044]

[root@localhost webadm]#

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

[root@localhost webadm]# cd apr-util-1.5.4/
[root@localhost apr-util-1.5.4]# ./configure --prefix=/usr/local/apr-util --with-

apr=/usr/local/apr/bin/apr-1-config

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
APR-util Version: 1.5.4
checking for chosen layout... apr-util
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
Applying apr-util hints file rules for i686-pc-linux-gnu
checking for APR... configure: error: the --with-apr parameter is incorrect. It must

specify an install prefix, a build directory, or an apr-config file.
[root@localhost apr-util-1.5.4]#


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