note 25494 deleted from install.apache by betz
| From: | betz@php.net | Date: | Wed, 09 Jun 2004 22:30:18 +0000 |
| Subject: | note 25494 deleted from install.apache by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-70683@lists.php.net to get a copy of this message | ||
Note Submitter: Ryan.Summers@neotool.com
----
I had a hard time finding a guide on how to set up apache+mod_ssl+php for secure server
transactions. Here is did to get this combination up and running.
Most of this is borrowed from an article published on devshed.com http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/page1.html
I made some modifications, but this guide helped a lot. Thanks guys!
downloads in /data/src/tarballs/
apache_1.3.26.tar.gz
mod_ssl-2.8.10-1.3.26.tar.gz
openssl-0.9.6g.tar.gz
rsaref2.tar.gz
php-4.1.2.tar.gz
libxml2-2.4.23.tar.gz (for DOM support in php)
mkdir /data/src/source/
cd /data/src/source/
# unpack source
# resides in /data/src/tarballs/
tar zxvf ../tarballs/apache_1.3.26.tar.gz
tar zxvf ../tarballs/mod_ssl-2.8.10-1.3.26.tar.gz
tar zxvf ../tarballs/openssl-0.9.6g.tar.gz
tar zxvf ../tarballs/rsaref2.tar.gz
tar zxvf ../tarballs/php-4.1.2.tar.gz
tar zxvf ../tarballs/libxml2-2.4.23.tar.gz
# build rsaref
cd rsaref2/install/unix/
make
mv rsaref.a librsaref.a
cd ../../
mkdir local
cd local
cp -rp ../install/unix/* .
# install openssl
cd ../../openssl_0.9.6g/
./config --prefix=/usr/local/ssl -L
pwd/../rsaref-2.0/local/rsaref -fPIC
make
make test
make install
# configure apache with mod_ssl
cd ../mod_ssl-2.8.10-1.3.26/
./configure --with-apache=../apache_1.3.26/
# blow away previously installed apache
rm -R /usr/local/apache-ssl/
# build and install apache
cd ../apache_1.3.26/
SSL_BASE=../openssl_0.9.6g/
RSA_BASE=../rsaref2/local/
./configure --prefix=/usr/local/apache-ssl/ --enable-module=so --enable-module=ssl
--enable-shared=ssl
make
make certificate
make install
# install libxml for php
../libxml2_2.4.23/
./configure
make
make install
# install php as dso
../php-4.1.2/
./configure --with-mysql --with-apxs=/usr/local/apache-ssl/bin/apxs --with-zlib --with-dom
--enable-sockets
make
make install
# edit the httpd.conf file with:
# AddType application/x-httpd-php .php
# test the syntax in httpd.conf
/usr/local/apache-ssl/bin/apachectl configtest
# should get 'Syntax OK'
# start the server
/usr/local/apache-ssl/bin/apachectl sslstart
:-)