Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot compile mod_ssl & php 1

Status
Not open for further replies.

neltan

Programmer
Nov 4, 2002
82
AU
Hi Apache Experts,
I have problem in installing mod_ssl and php on apache.

mod_ssl and php will modify the apache source folder. I can't make apache to use mod_ssl and php together?!

Is one of them overwrite the configuration?
But how to do that?

===============================================
Openssl
===============================================

cd /usr/src/openssl-0.9.6g
./config --prefix=/usr/local/openssl
make
make test
make install

===============================================
mod_ssl
===============================================

cd /usr/local/src/mod_ssl-2.8.12-1.3.27
./configure --with-apache=/usr/src/apache_1.3.27 --with-ssl=/usr/src/openssl-0.9.6g --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-module=ssl

===============================================
php-4.2.3
===============================================

cd /usr/src/php-4.2.3
./configure --with-apache=/usr/src/apache_1.3.27 --with-pgsql=/usr/local/pgsql --with-pdflib=/usr/local/pdflib --enable-trans-sid --enable-track-vars --enable-sysvshm=yes --enable-sysvsem=yes --enable-versioning
make
make install

===============================================
apache_1.3.27
===============================================

cd /usr/local/src/apache_1.3.27
./configure \
--activate-module=src/modules/php4/libphp4.a
make
(fail already --> ) make certificate TYPE=custom
make install
 
It becomes a bit of a chicken egg thing. The best way I've gotten this to work is by first pre-configuring apache, but not completing the make or install, then making php et al before finally finishing the install. The very detailed go-by in the following link is very helpful. It may be a bit too simplistic - but you'll get the point.
 
crescen7. Thank you for your comment.
I can now combine all these things together!

===============================================
Download these file first
===============================================
postgresql-7.2.3.tar.gz
pdflib-4.0.3.tar.gz
apache_1.3.27.tar.gz
php-4.2.3.tar.gz
mod_ssl-2.8.12-1.3.27.tar.gz
openssl-0.9.6g.tar.gz



===============================================
PostgreSQL
===============================================
tar -xvzf postgresql_xxx.tar.gz
cd postgresql_xxx
./configure --prefix=/usr/local/pgsql --enable-multibyte
make
make install

===============================================
PDFLIB
===============================================
cd /usr/src/pdflib-4.0.3
./configure --with-shared-pdflib
--with-enable-cxx
make
make test
make install
find -name 'pdftest.pdf'
kwrite /etc/ld.so.conf ( comment: add /usr/local/lib )
/sbin/ldconfig

===============================================
apache_1.3.27
===============================================
cd /usr/src/apache_1.3.27
./configure --prefix=/usr/local/apache

===============================================
php-4.2.3
===============================================

cd /usr/src/php-4.2.3
./configure --with-apache=/usr/src/apache_1.3.27 --with-pgsql=/usr/local/pgsql --with-pdflib=/usr/local/pdflib --enable-trans-sid --enable-track-vars --enable-sysvshm=yes --enable-sysvsem=yes --enable-versioning
make
make install
cp php.ini-dist /usr/local/lib/php.ini

[option]
kwirte /usr/local/lib/php.ini ( for include files )
add : include_path = "current_value:/usr/local/apache/php"

===============================================
Openssl
===============================================
cd /usr/src/openssl-0.9.6g
./config --prefix=/usr/local/openssl
make
make test
make install

===============================================
mod_ssl
===============================================

cd /usr/local/src/mod_ssl-2.8.12-1.3.27
./configure --with-apache=/usr/src/apache_1.3.27 --with-ssl=/usr/src/openssl-0.9.6g --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-module=ssl


===============================================
apache_1.3.27
===============================================

cd /usr/src/apache_1.3.27
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a --enable-module=ssl
make
make certificate TYPE=custom (generate CA Cert & Server Cert)
make install
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top