[thelist] Apache/SSL Question

Anthony Baratta Anthony at Baratta.com
Wed Oct 30 19:23:01 CST 2002


At 04:29 PM 10/30/2002, Buffington, Michael wrote:

>About serving SSL with Apache, do you have any good resources on how to
>set that up? I've had a heck of time getting Apache with any form of SSL
>to work (OpenSSL, mod_ssl).

Don't forget when the IP address updates, you'll need to update Apache's
httpd.conf file. Here's my notes on installing Apache
1.3x/mod_ssl/mod_perl/php. I dump everything into a directory like
/src/web_server and each tar file gets its own sub-directory. I then
symlink apache to the apache_## directory.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Documentation for Installing Apache, mod_ssl, mod_perl, and php
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Need to be "root" for this to work]

#########
Open SSL
#########

http://www.openssl.org/

./config
make
make test
make install

# This helps with some apps
ln -s /usr/local/openssl  /usr/local/ssl

#########
Perl Update
#########

(make life easier update to latest perl)

http://www.perl.com/

sh Configure -de
make
make test
make install


#########
CPAN Update
#########

perl -MCPAN -e shell
(run through config and update to latest version)

use CPAN to install Bundles below.

install 'Bundle::CPAN'
reload cpan
install 'Bundle::libnet'
install 'Bundle::LWP'
install 'Bundle::DBI'
install 'Bundle::DBD::mysql'
install 'Bundle::Apache'
install 'Bundle::Slash'

You may need to manually install some components.
Don't expect every part to install, ever. ;-P


#########
mod_ssl
#########

http://www.modssl.org/

./configure --with-apache=../apache \
--with-ssl=/usr \
--enable-shared=ssl


#########
mod_perl
#########

http://perl.apache.org/

edit Makefile.PL add "-DEAPI " to CFLAGS

perl Makefile.PL USE_APACI=1 \
EVERYTHING=1 PERL_MARK_WHERE=1 \
DO_HTTPD=1 \
SSL_BASE=/usr/ \
APACHE_PREFIX=/usr/local/apache \
APACI_ARGS=--enable-module=ssl,--enable-module=so,--enable-shared=ssl

make
make test
make install


#########
Apache
#########

http://httpd.apache.org/dist/

(create the following links)

cd /etc/rc.d/init.d
ln -s /usr/local/apache/bin/apachectl apache

cd /etc/rc.d/rc3.d
ln -s ../init.d/apache S85apache
ln -s ../init.d/apache K85apache
cd /etc/rc.d/rc5.d
ln -s ../init.d/apache S85apache
ln -s ../init.d/apache K85apache


#########
PHP
#########

http://www.php.net/

./configure --prefix=/usr/local/php \
--exec-prefix=/usr/local/php \
--with-mysql=/usr \
--with-apxs=/usr/local/apache/bin/apxs \
--with-openssl=/usr/ \
--with-pgsql=/usr/lib/pgsql \
--enable-magic-quotes \
--enable-trans-sid

[get working later]
--with-aspell=/usr/lib/aspell \
--with-pspell=/usr/share/pspell \

make
make install


----------------

Edit httpd.conf file to taste.



--
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."




More information about the thelist mailing list