用ports安裝apache13_modssl+mysql+php+phpmyadm…
2009-05-13 09:45:38来源:未知 阅读 ()
一. 安装及配置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
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- Flash 9 for FreeBSD 7.1 2009-05-13
- FreeBSD: /libexec/ld-elf.so.1: Shared object "libc 2009-05-13
- shenzhen massage help you to relax 2009-05-13
- Creating a FreeBSD Jail 2009-05-13
- Managing Jails 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash