VICI:ApacheSSLThis will install Apache in /home/www
Make sure you change the 10.10.10.15 to your machine's IP address in the openssl req command
cd /usr/local wget http://www.openssl.org/source/openssl-0.9.8b.tar.gz gunzip openssl-0.9.8b.tar.gz tar xvf openssl-0.9.8b.tar cd openssl-0.9.8b ./config make make install cd /usr/local wget http://apache.secsup.org/dist/httpd/httpd-2.0.59.tar.gz gunzip httpd-2.0.59.tar.gz tar xvf httpd-2.0.59.tar wget http://us2.php.net/distributions/php-4.4.6.tar.gz gunzip php-4.4.6.tar.gz tar xvf php-4.4.6.tar cd httpd-2.0.59 ./configure --prefix=/home/www --enable-ssl --enable-setenvif --enable-so --with-apxs2 --enable-dav --enable-maintainer-mode make make install mkdir /home/www/conf/ssl.key mkdir /home/www/conf/ssl.crt mkdir /home/www/conf/ssl.crl openssl req -new -x509 -days 1200 -keyout /home/www/conf/ssl.key/server.key.cpy -out /home/www/conf/ssl.crt/server.crt -subj '/CN=10.10.10.15' openssl rsa -in /home/www/conf/ssl.key/server.key.cpy -out /home/www/conf/ssl.key/server.key cd ../php-4.4.6 ./configure --with-mysql=/usr/local/mysql --enable-inline-optimization --enable-memory-limit --enable-track-vars --enable-libgcc --with-xml --enable-versioning --enable-sysvsem --with-openssl --disable-debug --with-apxs2=/home/www/bin/apxs --with-zlib make make install cp php.ini-dist /usr/local/lib/php.ini vi /home/www/conf/httpd.conf add the following lines: "AddType? application/x-httpd-php .php .phtml" "LoadModule? php4_module libexec/libphp4.so" or "LoadModule? php4_module module/libphp4.so" modify the index.html line and add index.php to the list vi /usr/local/lib/php.ini modify the following line: "memory_limit = 8M" and change it to: "memory_limit = 48M" /home/www/bin/apachectl startssl
We also recommend installing the eaccelerator PHP optimizer