apache2已经包含mod_ssl了,它的documents里面有关于mod_ssl的faq,照着做就行了,不难。

来源:互联网 发布:portable ssd t3 软件 编辑:程序博客网 时间:2024/04/28 04:45

>>>>>>>>>>>>>>>>>>>>>>>>>>> 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的。