日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

apache+mysql+php+ssl服務(wù)器之完全安裝攻略( 四 )


Apache 與 Mod_SSL
該配置并安裝mod_ssl和Apache了 。對(duì)此 , 你將需要有rsaref-2.0文件 。在http://ftpsearch.lycos.com/上搜索“rsaref20.tar.Z” 。如果你不喜歡Lycos , 你可以選擇其他搜索引擎來搜索文件 。當(dāng)然只有你在美國(guó)才需要這個(gè)文件 。(管它呢 , 你也可從別處下載 , 首先在http://ftpsearch.ntnu.no/查找“rsaref20.tar.Z” , 好多?。?。)創(chuàng)建rasref目錄 , 你將在該目錄提取文件 。注意 。這假定你下載了一個(gè)臨時(shí)目錄 , 而你就在此目錄 。# mkdir rsaref-2.0
# cd rsaref-2.0
# gzip -d -c ../rsaref20.tar.Z | tar xvf -現(xiàn)在配置并構(gòu)造OpenSSL庫(kù) 。# cd rsaref-2.0
# cp -rp install/unix local
# cd local
# make
# mv rsaref.a librsaref.a
# cd ../..安裝OpenSSL 。記住 , 你將用它來創(chuàng)建臨時(shí)證書和CSR文件 。--prefix選項(xiàng)指定主安裝目錄 。# cd openssl-0.9.x
# ./config -prefix=/usr/local/ssl
-L`pwd`/../rsaref-2.0/local/ rsaref -fPIC現(xiàn)在make、測(cè)試并安裝它 。# make
# make test
# make install
# cd ..我們將配置MOD_SSL模塊 , 然后用Apache配置指定它為一個(gè)可裝載的模塊 。# cd mod_ssl-2.5.x-1.3.x
# ./configure
--with-apache=../apache_1.3.x
# cd ..現(xiàn)在我們可以把更多的Apache模塊加到Apache源代碼樹中 ??蛇x的--enable-shared=ssl選項(xiàng)使得mod_ssl構(gòu)造成為一個(gè)DSO“l(fā)ibssl.so” 。關(guān)于在Apache支持DSO的更多信息 , 閱讀Apache源代碼樹中的INSTALL和 htdocs/manual/dso.html文檔 。我強(qiáng)烈建議ISP和軟件包裝維護(hù)者為了最靈活地使用mod_ssl而使用DSO工具 , 但是注意 , DSO不是在所有平臺(tái)上的Apache都支持 。# cd apache_1.3.x
# SSL_BASE=../openssl-0.9.x
RSA_BASE=../rsaref-2.0/local
./configure --enable-module=ssl
--activate-module=src/modules/php4/libphp4.a
--enable-module=php4 --prefix=/usr/local/apache
--enable-shared=ssl
[...你可加入更多的選項(xiàng)...]生成Apache , 然后生成證書 , 并安裝...# make如果你已正確地完成 , 你將得到類似于以下的信息:-----------------------------------------------------------------------
| Before you install the package you now should prepare the SSL |
| certificate system by running the "make certificate" command. |
| For different situations the following variants are provided: |
| |
| % make certificate TYPE=dummy (dummy self-signed Snake Oil cert) |
| % make certificate TYPE=test (test cert signed by Snake Oil CA) |
| % make certificate TYPE=custom (custom cert signed by own CA) |
| % make certificate TYPE=existing (existing cert) |
| CRT=/path/to/your.crt [KEY=/path/to/your.key] |
| |
| Use TYPE=dummy when you"re a vendor package maintainer, |
| the TYPE=test when you"re an admin but want to do tests only, |
| the TYPE=custom when you"re an admin willing to run a real server |
| and TYPE=existing when you"re an admin who upgrades a server. |
| (The default is TYPE=test) |
| |
| Additionally add ALGO=RSA (default) or ALGO=DSA to select |
| the signature algorithm used for the generated certificate. |
| |
| Use "make certificate VIEW=1" to display the generated data. |
| |
| Thanks for using Apache & mod_ssl. Ralf S. Engelschall |
| rse@engelschall.com |
| www.engelschall.com |
-----------------------------------------------------------------------
現(xiàn)在你可以創(chuàng)建一個(gè)定制的證書 。該選項(xiàng)將提示輸入你的地址、公司、和其他一些東西 。關(guān)于證書 , 請(qǐng)參閱本文的結(jié)尾 。# make certificate TYPE=custom現(xiàn)在安裝Apache...# make install如果一切正常 , 你應(yīng)該看到類似于以下的信息:----------------------------------------------------------------------------------
| You now have successfully built and installed the |
| Apache 1.3 HTTP server. To verify that Apache actually |
| works correctly you now should first check the |
| (initially created or preserved) configuration files |

推薦閱讀