[[apache]]
 

Compiling Apache 1.33 with PHP4 support to run Horde

Horde 3.0.2 with IMP 2.0.4 with support for IMAP/SSL.

cd /usr/local/src

cd mod_ssl-2.8.22-1.3.33
./configure --with-apache=/usr/local/src/apache_1.3.33 \
--with-ssl=/usr/local/openssl/ --prefix=/usr/local/apache  --enable-module=so
cd /usr/local/src/apache_1.3.33
make
make install
cd ../php-4.3.10
make clean
make distclean
CFLAGS=-DEAPI ./configure --with-mysql=/usr/local/mysql/ \
--with-apxs=/usr/local/apache/bin/apxs  --with-gettext --with-zlib \  
--with-ldap --enable-ftp --enable-gd --with-iconv --enable-mbstring \  
--with-openssl=/usr/local/openssl  --with-xml --with-dom --with-imap \ 
--with-kerberos --with-imap-ssl=/usr/local/openssl \
-with-mcrypt=/usr/local/mcrypt/
make
make install
cp php.ini-dist /usr/local/lib/php.ini

Alternatives

Compiling OpenSSL and Apache in a working fashion.

Goto the OpenSSL Directory

./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl -L/usr/local/lib
echo /usr/local/ssl/lib >> /etc/ld.so.conf
make 
make install
ldconfig

Goto the Apache Directory

./configure --prefix=/usr/local/apache --enable-mods-shared=most --enable-ssl=shared \
--enable-so --with-ssl=/usr/local/ --enable-module=ssl
make
make install

Create an SSL Cert.

wget http://www.openssl.org/contrib/ssl.ca-0.1.tar.gz
tar zxf ssl.ca-0.1.tar.gz
cd ssl.ca-0.1
./new-root-ca.sh
./new-server-cert.sh server
./sign-server-cert.sh server
./new-server-cert.sh server
./sign-server-cert.sh server
chmod 400 server.key
cd ..
mkdir ssl.key
mv ssl.ca-0.1/server.key ssl.key
mkdir ssl.crt
mv ssl.ca-0.1/server.crt ssl.crt
/usr/local/apache2/bin/apachectl startssl
 
apache.txt · Last modified: 2006/10/01 20:27 by gavin
 
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki