用ports安裝apache13_modssl+mysql+php+phpmyadm…

2009-05-13 09:45:38来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

用ports安裝apache13_modssl+mysql+php+phpmyadmin
一. 安装及配置mysql:
FreeBSD# cd /usr/ports/databases/mysql323-server
FreeBSD# make \ WITH_CHARSET=gbk\ WITH_XCHARSET=all\ WITH_OPENSSL=yes\ DB_DIR=/usr/local/mysql\ WITH_LINUXTHREADS=yes\ SKIP_DNS_CHECK=yes\ BUILD_OPTIMIZED=yes install clean
FreeBSD# /usr/local/etc/rc.d/mysql-server.sh start
FreeBSD# mysqladmin -u root password abc123
在/etc/rc.conf里加入:
mysql_enable="YES"
二. 安装及配置apache13-modssl
FreeBSD# cd /usr/ports/www/apache13-modssl/
FreeBSD# make
FreeBSD# make install
FreeBSD# make certificate
SSL Certificate Generation Utility (mkcert.sh)
Copyright (c) 1998-2000 Ralf S. Engelschall, All Rights Reserved.
Generating test certificate signed by Snake Oil CA [TEST]
WARNING: Do not use this for real-life/production systems
______________________________________________________________________
STEP 0: Decide the signature algorithm used for certificate
The generated X.509 CA certificate can contain either
RSA or DSA based ingredients. Select the one you want to use.
Signature Algorithm ((R)SA or (D)SA) [R]:R (选择加密方式)
______________________________________________________________________
STEP 1: Generating RSA private key (1024 bit) [server.key]
4493119 semi-random bytes loaded
Generating RSA private key, 1024 bit long modulus
..++++++
...........................................................................++++++
e is 65537 (0x10001)
______________________________________________________________________
STEP 2: Generating X.509 certificate signing request [server.csr]
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
1. Country Name (2 letter code) [XY]:CN
2. State or Province Name (full name) [Snake Desert]:Shanghai
3. Locality Name (eg, city) [Snake Town]:Xuhui
4. Organization Name (eg, company) [Snake Oil, Ltd]:Lingfeng soft
5. Organizational Unit Name (eg, section) [Webserver Team]:Tech D.
6. Common Name (eg, FQDN) [www.snakeoil.dom]:www.lingfeng.com.cn
7. Email Address (eg,
[email=name@FQDN]name@FQDN[/email]
) [www@snakeoil.dom]:lingfeng@lingfeng.com
8. Certificate Validity (days) [365]:365
______________________________________________________________________
STEP 3: Generating X.509 certificate signed by Snake Oil CA [server.crt]
Certificate Version (1 or 3) [3]:3
Signature ok
subject=/C=CN/ST=Guang Dong/L=Guang Zhou/O=Kingisme.com xBSD
[email=Studio/OU=cnfug.org/CN=www.cnfug.org/emailAddress=ihweb@cnfug.org]Studio/OU=cnfug.org/CN=www.cnfug.org/emailAddress=ihweb@cnfug.org[/email]

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Freebsd下基于ipsec的Site to Site 的VPN

下一篇:Webalizer网页记录分析