生成根证书
#./new-root-ca.sh
No Root CA key round. Generating one
Generating RSA private key, 1024 bit long modulus
...............................++++++
.......++++++
e is 65537 (0x10001)
Enter pass phrase for ca.key: (此处要输入一个密码,至少四位)
Verifying - Enter pass phrase for ca.key: (重复以上密码)
Self-sign the root CA...
Enter pass phrase for ca.key: (刚刚输过的密码)
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.
-----
Country Name (2 letter code) [MY]:CN
State or Province Name (full name) [Perak]:HeNan
Locality Name (eg, city) [Sitiawan]:Zhengzhou
Organization Name (eg, company) [My Directory Sdn Bhd]:Benet Ltd
Organizational Unit Name (eg, section) [Certification Services Division]:Marion
Common Name (eg, MD Root CA) []:Benet CA
Email Address []:knightma@yeah.net
如此可以生成ca.key和ca.crt两个文件;其中的省份、公司等内容可以按照你自己的相法来设定。
接下来要为服务器生成一个证书:
# ./new-server-cert.sh server (这个证书的名字是server)
No server.key round. Generating one
Generating RSA private key, 1024 bit long modulus
....++++++
.............++++++
e is 65537 (0x10001)
Fill in certificate data
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.
-----
Country Name (2 letter code) [MY]:CN
State or Province Name (full name) [Perak]:HeNan
Locality Name (eg, city) [Sitiawan]:Zhengzhou
Organization Name (eg, company) [My Directory Sdn Bhd]:Benet Ltd
Organizational Unit Name (eg, section) [Secure Web Server]:Marion
Common Name (eg, www.domain.com) []:localhost
Email Address []:knightma@yeah.net
You may now run ./sign-server-cert.sh to get it signed
执行结束后生成了server.csr和server.key这两个文件。但它们还需要签署一下才能使用。
# ./sign-server-cert.sh server
CA signing: server.csr -> server.crt:
Using configuration from ca.config
Enter pass phrase for ./ca.key:
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName RINTABLE:'CN'
stateOrProvinceName RINTABLE:'HeNan'
localityName RINTABLE:'Zhengzhou'
organizationName RINTABLE:'Benet Ltd'
organizationalUnitNameRINTABLE:'Marion'
commonName RINTABLE:'localhost'
emailAddress :IA5STRING:'knightma@yeah.net'
Certificate is to be certified until Nov 21 11:58:38 2007 GMT (365 days)
Sign the certificate? [y/n]:y
1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries
Data Base Updated
CA verifying: server.crt <-> CA cert
server.crt: OK
Syntax error on line 56 of /usr/local/httpd/conf/extra/httpd-ssl.conf:
Invalid command 'SSLPassPhraseDialog', perhaps misspelled or defined by a module not included in the server configuration作者: kukat 时间: 2007-01-11 14:04
ZendOptimizer3.01确实和php5.20不兼容
可以用ZendOptimizer3.20作者: ly_cyz 时间: 2007-01-11 22:50
高手!支持一下!
回头试一试!作者: chenjie34 时间: 2007-01-18 10:56
详细是够详细了,可是我觉得有点不足,通常这类文章都是写给我们菜鸟们看的,所以我觉得应该加上注释,告诉读者,这个整合实现了什么功能,各模块是用来做什么的。作者: mcumsigscr 时间: 2007-01-18 15:28
顶一下.不错的帖子.作者: kexen 时间: 2007-01-21 01:00
花费了一周的时间,总算完整的的把这个东东架设完毕了。当PHPINFO终于出现在我的面前的时候,真的好激动。第一次完整的架设成功,让我学习起来觉得非常有成就感。hoho 谢谢你了LZ。作者: fnet 时间: 2007-02-07 11:14
谢谢提供,顶完再看作者: marion 时间: 2007-02-28 11:01
呵呵,这么多朋友来捧场了,大家共同学习!
CU是个好地方,感觉自己从中获益良多,学习之余就把自己的学习笔记拿出来共享了。欢迎各位多多交流!作者: marion 时间: 2007-02-28 11:03
15楼的chenjie34朋友的建议不错,我回头整理一下自己对这个安装的理解贴上来!作者: marion 时间: 2007-03-05 13:59 标题: 回复 12楼 xuexh 的帖子 错误记录中说明的是语法错误,并进一步指出错误是"SSLPassPhraseDialog"指令不正确。
同时,并推测说或许是由于拼写错误,亦或是没有在主配置文件中把某一个文件包含进来所致。
# tar -zvxf php-5.2.0.tar.gz
# mkdir -p /usr/local/php
# cd php-5.2.0
# ./configure --prefix=/usr/local/php (注意使用续行符)
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysql-dir=/usr/local/mysql
应改为:
--with-mysql=/usr/local/mysql作者: leewei544 时间: 2007-03-22 12:00
我按照你给的步骤..安装httpd-2.2.3...当做到make的时候..出现了make: ***No targets specified and no makefile found. Stop.
是什么原因呢..
我在./configure后最后几句出现了:checking for gcc... gcc
checking for Ccompiler default output file name... configure: error: C compiler cannot create executables
See 'config.log' for more details.
configure failed for srclib/apr好象有错误..什么错误..望不吝赐教..谢谢啊作者: marion 时间: 2007-03-22 21:48
./configure没有成功,apr组件存在问题。
[ 本帖最后由 marion 于 2007-5-8 09:22 编辑 ]作者: marion 时间: 2007-05-08 09:20
做了一次更新!作者: yuyii 时间: 2007-06-06 13:15
apache启动时报不能加载libphp5.so,说是undefined symbol:zend_ini_string
网上查了也未果,有不少老外碰到同样的问题.我这里关于GD2的包都没安装,因为不用GD2.只装了zlib和libxml2.谁有遇到相似状况的?
PS:之前还碰到个sqlite3的undefined symbol.不过搞定了已经.作者: ylcqen 时间: 2007-06-21 16:27
不错,但我安装mysql后,找不到mysql.sock.哈哈.请问牛哥是什么原因.作者: marion 时间: 2007-06-22 12:39
楼上的兄弟,你的问题描述过于简单(找不到的可能性有多种),能不能把错误信息贴上来?作者: powerv_cu 时间: 2007-07-21 12:34
./configure --help 看下有--enable-track-vars 吗?反正我使用这个就出现错误。作者: marion 时间: 2007-08-06 21:18
做了一次更新作者: xiaomage276518 时间: 2007-09-06 14:05
写的不错,但是要是说明各个组件的用途就更好了。作者: xi2008wang 时间: 2007-10-18 13:20
学习!作者: UCfree 时间: 2007-12-12 18:12
3Q very much!作者: UCfree 时间: 2007-12-14 13:30
安装 PHP的时候出错了, 怎么解决?
[root@localhost php-5.1.2]# make install
Installing PHP SAPI module: apache2handler
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp libphp5.la /usr/local/apache/modules/
cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la
cp .libs/libphp5.a /usr/local/apache/modules/libphp5.a
ranlib /usr/local/apache/modules/libphp5.a
chmod 644 /usr/local/apache/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /usr/local/src/php-5.1.2/libs'
Warning! dlname not found in /usr/local/apache/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache/modules/libphp5.so
chmod: 无法取得 ‘/usr/local/apache/modules/libphp5.so’ 的属性: 没有那个文件或目录
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1作者: fuleru 时间: 2008-01-14 09:15
不错,好的帖子都要留名的,谢谢分享!作者: jackhanny 时间: 2008-03-14 14:09 标题: 解决invalid command 'sslpassphrasedialog' 的问题 本人在安装apache的时候有--enable-ssl ,linux图形模式下https正常,文本模式却不行,后来发现在文本模式的httpd.conf中没有LoadModule ssl_module modules/mod_ssl.so这项,/usr/local/httpd/bin/apachectl start 时无法启动,加入LoadModule ssl_module modules/mod_ssl.so后,重启httpd正常。在此发贴希望对遇到同样问题的朋友有帮助。作者: YangFree 时间: 2008-03-23 03:35
[root@localhost php-5.2.5]# make install
Installing PHP SAPI module: apache2handler
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp libphp5.la /usr/local/apache/modules/
cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la
cp .libs/libphp5.a /usr/local/apache/modules/libphp5.a
chmod 644 /usr/local/apache/modules/libphp5.a
ranlib /usr/local/apache/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /usr/local/php-5.2.5/libs'
Warning! dlname not found in /usr/local/apache/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache/modules/libphp5.so
chmod: 无法取得 ‘/usr/local/apache/modules/libphp5.so’ 的属性: 没有那个文件或目录
apxs:Error: Command failed with rc=65536作者: YangFree 时间: 2008-08-27 22:46
mark :)
这个‘标准’过程现在还在用。。。。。。作者: jiangle 时间: 2008-11-26 20:44
嗯,学习。