Apache 2 Command

This command didn't work because there is a bug with apache 2 and it's modules running openssl
 ./configure \
--prefix=/usr/local/apache \
--with-ssl=/usr/local/openssl \
--enable-ssl \
--enable-so \
--enable-rewrite \
--enable-modules=ssl \
--enable-dav \
--enable-dav-fs \
--enable-mods-shared=all

Apache that works (non shared)
This worked
./configure \
--prefix=/usr/local/apache \
--with-ssl=/usr/local/openssl \
--enable-ssl \
--enable-so \
--enable-rewrite \
--enable-dav \
--enable-dav-fs

PHP this worked...

./configure --with-mysql=/usr/local/mysql \
 --with-apxs2=/usr/local/apache/bin/apxs \
--with-xml \
 --enable-magic-quotes