apache2已经包含mod_ssl了,它的documents里面有关于mod_ssl的faq,照着做就行了,不难。
2004-09-03 01:28
477 查看
>>>>>>>>>>>>>>>>>>>>>>>>>>> Install Apache2+ php 4.3.6 + mod_ssl for 5.2.1 >>>>>>>>>>>>>>>>>>>
#
# autoconf 2.52 creates scripts that are incompatible with the Posix
# shell implementation (/bin/sh) on FreeBSD. Be sure to use v2.13
# of autoconf.
#
# Threaded MPMs are not supported on FreeBSD 4.x. Current releases of
# FreeBSD 5.x (5.2 or later) support threaded MPMs correctly. You must pass
# '--enable-threads=yes' to APR's configure in order to enable threads.
# Additionally, you must use libthr or libkse via libmap.conf as the default
# libc_r is still broken as of this writing. Please consult the man page for
# libmap.conf for more details about configuring libthr or libkse.
#
# http://httpd.apache.org/dev/anoncvs.txt
# Notice: Please updating to stable Apache 2.0 release:
# The two anoncvs servers currently available are:
# :pserver:anoncvs@cvs.apache.org:/home/cvspublic
# and
# :pserver:anoncvs@CVS.Sourcery.Org:/cvs/apache
# Choose one of these values for your setting of CVSROOT.
# Once you have set your CVSROOT, you need to log in:
#
# The password is "anoncvs" (without the quotation marks) for
# both servers
CVSROOT=:pserver:anoncvs@cvs.apache.org:/home/cvspublic
export CVSROOT
cvs login
cvs checkout -d httpd-2.1 httpd-2.0
cd httpd-2.0/srclib
cvs checkout -r apr
cvs checkout -r apr-util
cd ..
./buildconf
./configure --prefix=/usr/local/httpd --enable-so --enable-threads=yes --enable-ssl --with-mpm=worker /
--enable-rewrite CFLAGS='-O3 -mcpu=pentiumpro'
make
make install
tar zvxf php-4.3.6.tar.gz
cd php-4.3.6
CFLAGS='-O3 -mcpu=pentiumpro' ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/httpd/bin/apxs /
--enable-track-vars --with-config-file-path=/usr/local/php/lib /
--enable-force-cgi-redirect --enable-ftp --enable-xml --with-openssl=/usr/local/ssl
make
make install
cp php.ini-dist /usr/local/php/lib/php.ini
# Edit your httpd.conf to load the PHP module.
LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php .phtml
echo '<? phpinfo(); ?>' >/usr/local/httpd/htdocs/index.php
进入apache2 的ports,直接make install clean就可以了,已经包含mod_ssl了,安装完后,可以打入 http://网站名字/manual/ 来看apache2 的手册,如果装了mod_php的话,用phpinfo()也是可以看到关于mod_ssl的。
#
# autoconf 2.52 creates scripts that are incompatible with the Posix
# shell implementation (/bin/sh) on FreeBSD. Be sure to use v2.13
# of autoconf.
#
# Threaded MPMs are not supported on FreeBSD 4.x. Current releases of
# FreeBSD 5.x (5.2 or later) support threaded MPMs correctly. You must pass
# '--enable-threads=yes' to APR's configure in order to enable threads.
# Additionally, you must use libthr or libkse via libmap.conf as the default
# libc_r is still broken as of this writing. Please consult the man page for
# libmap.conf for more details about configuring libthr or libkse.
#
# http://httpd.apache.org/dev/anoncvs.txt
# Notice: Please updating to stable Apache 2.0 release:
# The two anoncvs servers currently available are:
# :pserver:anoncvs@cvs.apache.org:/home/cvspublic
# and
# :pserver:anoncvs@CVS.Sourcery.Org:/cvs/apache
# Choose one of these values for your setting of CVSROOT.
# Once you have set your CVSROOT, you need to log in:
#
# The password is "anoncvs" (without the quotation marks) for
# both servers
CVSROOT=:pserver:anoncvs@cvs.apache.org:/home/cvspublic
export CVSROOT
cvs login
cvs checkout -d httpd-2.1 httpd-2.0
cd httpd-2.0/srclib
cvs checkout -r apr
cvs checkout -r apr-util
cd ..
./buildconf
./configure --prefix=/usr/local/httpd --enable-so --enable-threads=yes --enable-ssl --with-mpm=worker /
--enable-rewrite CFLAGS='-O3 -mcpu=pentiumpro'
make
make install
tar zvxf php-4.3.6.tar.gz
cd php-4.3.6
CFLAGS='-O3 -mcpu=pentiumpro' ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/httpd/bin/apxs /
--enable-track-vars --with-config-file-path=/usr/local/php/lib /
--enable-force-cgi-redirect --enable-ftp --enable-xml --with-openssl=/usr/local/ssl
make
make install
cp php.ini-dist /usr/local/php/lib/php.ini
# Edit your httpd.conf to load the PHP module.
LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php .phtml
echo '<? phpinfo(); ?>' >/usr/local/httpd/htdocs/index.php
进入apache2 的ports,直接make install clean就可以了,已经包含mod_ssl了,安装完后,可以打入 http://网站名字/manual/ 来看apache2 的手册,如果装了mod_php的话,用phpinfo()也是可以看到关于mod_ssl的。
相关文章推荐
- 关于ScrollView里面包含listView只能显示listView的第一行问题解决方案
- 关于padding值不包含在width里面的问题,可能和box-sizing有关
- CentOS安装Apache2带SSL支持(mod_ssl, openssl)
- 使用SVCUTIL生成客户端代理类时:元数据包含无法解析的引用:“https: 无法为 SSL/TLS 安全通道与颁发机构“localhost”建立信任关系。基础连接已经关闭: 未能为 SSL/TL
- 金山毒霸错杀httpd里面的mod_ssl.so导致apache无法启动
- 关于Ubuntu16.04不能安装libapache2-mod-php5
- wcf在IIS里面出现的一个异常(WCF 错误:此集合已经包含方案 http 的地址。此集合中每个方案中最多只能包含一个地址)
- 关于 请求参数 传递时 参数字符串里面包含 特殊符号的 解决~
- 关于,VS2010 里面 一个解决方案包含多个win32程序,调试的问题~~~happy
- CentOS安装Apache2带SSL支持(mod_ssl, openssl)
- 关于JSP不能通过浏览器直接访问,要通过servlet跳转,但一个jsp文件里面用<iframe>标签包含了另一个jsp的访问问题
- 关于firefox 打开https 报错: (错误码: ssl_error_ssl_disabled)(已经解决)
- Centos6.5,安装nginx,包含ssl模块,如果已经安装nginx则配置即可
- 关于listview里面包含edittext。
- 这里面有一些关于依图工作的内容
- 关于OutputStream的write方法FAQ(from bbs.csdn.net)
- Cart 关于购物车里面需要封装的方法
- 关于ssl/https证书
- 使用sql server时碰到的错误 关于对象.属性qingjia.id' 无效,因为该列没有包含在聚合函数或 GROUP BY 子句中
- 关于sql server2000提示:SSL安全错误 connectionopen(secdoclienthandshake()) 的解决办法