|
How do I have to configure my Apache on a Debian system in order to be supported by the 42goISP system?
(Important: This applies to Apache version 1.3.x only and only to systems that have a separate Apache for HTTP and HTTPS! Detailed information about the configuration of a Debian system can be found here: http://www.falkotimme.com/howtos/perfect_setup/index.php)
On many Debian systems there are two Apaches, one on port 80 (for "normal" webs) and one on port 443 (for SSL webs). This configuration does not work with the 42goISP system which expects only one Apache for both kinds of webs.
There are two possibilities to configure one Apache that is also SSL-capable:
1) Run the following commands:
apt-get remove apache
apt-get install libapache-mod-ssl libapache-mod-ssl-doc
Edit /etc/apache/httpd.conf:
Insert in the "LoadModule" section:
LoadModule ssl_module /usr/lib/apache/1.3/mod_ssl.so
In the "Listen" section insert:
Listen 80
Listen 443
In the "Addtype application" section insert:
<IfModule mod_ssl.c>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfModule>
Before "Section 3 : Virtual Hosts":
<IfModule mod_ssl.c>
SSLPassPhraseDialog builtin
SSLSessionCache dbm:/var/run/ssl_scache
SSLSessionCacheTimeout 300
SSLMutex file:/var/run/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Afterwards run the following command:
/etc/init.d/apache restart
2) Remove both standard Apaches from the system:
apt-get remove apache
and
apt-get remove apache-ssl
and compile your own, SSL-capable Apache.
Instruction: (installation example)
You need the following (download it into a directory like /tmp/install):
apache_1.3.27.tar.gz
php-4.3.2.tar.gz
openssl-0.9.7b.tar.gz
mod_ssl-2.8.14-1.3.27.tar.gz
cd /tmp/install
tar xvfz apache_1.3.27.tar.gz
tar xvfz php-4.3.2.tar.gz
tar xvfz openssl-0.9.7b.tar.gz
tar xvfz mod_ssl-2.8.14-1.3.27.tar.gz
cd openssl-0.9.7b
./config
make
cd ../mod_ssl-2.8.14-1.3.27
./configure --with-apache=../apache_1.3.27 --with-ssl=../openssl-0.9.7b --prefix=/usr/local/apache --enable-module=most --enable-shared=max --logfiledir=/var/log/httpd --htdocsdir=/usr/local/httpd/htdocs --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc/apache
cd ../apache_1.3.27
make
make certificate TYPE=custom
make install
cd ../php-4.3.2
./configure --with-apxs=/usr/sbin/apxs --enable-track-vars --enable-sockets --with-config-file-path=/etc --enable-ftp --with-zlib
make
make install
cp /tmp/install/php-4.3.2/php.ini-dist /etc/php.ini
Afterwards create an Apache start/stop script in /etc/init.d named "apache" (with privileges 755):
#!/bin/sh
case "$1" in
start)
apachectl startssl
;;
stop)
apachectl stop
;;
restart)
$0 stop && sleep 3
$0 start
# Remember status and be quiet
;;
reload)
$0 stop
$0 start
# Remember status and be quiet
;;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
esac
Then run the following command:
update-rc.d apache defaults
<< Back
|