To Solve your problem in making Apache + PHP + DB2 + SSL to Work I made this HowTo !
-- First Step --
Install DB2 UDB + Application Tools + Instances
After Install
su - db2inst1
db2
If works U goot Db2 running well
else ( copy the ~db2inst1/sqllib/db2profile to .profile at the home of db2inst1)
It depends on the SystemOperetinal that U R Running.
If works go to the next step =)
-- End First Step --
-- Second Step --
-=> Install Apache + SSL <=-
Be sure that U get the latest version of apache at http://www.apache.org, modssl at www.modssl.org, openssl at http://www.openssl.org
-=> Unpack ALL at /usr/src
-=> Install OpenSSL
$ cd /usr/src/openssl-x.x.x
$ ./config
$ make
$ make test
$ make install
--> Install APACHE
PS: In Your Case use modify the paths utilizing your version =)
--- APACHE ---
cd ../mod_ssl-2.8.5-1.3.22/
./configure --enable-module=so --with-apache=../apache_1.3.22/ --with-ssl=../openssl-0.9.6c/
cd ../apache_1.3.22/
make
make certificate TYPE=custom
make install
--- END APACHE ---
Make your configuration of httpd.conf
Verify if you have the line calling php!
-- End Second Step --
-- 3rd Step --
Install PHP + MySql + Postgres + DB2
Make sure U have MySql and Postgress instaled! If not do not put the with-psql and with-mysql option!!!
-- PHP --
cd ../php-4.1.1/
./configure --with-apxs=/usr/local/apache/bin/apxs --with-pgsql --with-mysql --with-ibm-db2=/usr/IBMdb2/V7.1
make
make install
-- END PHP ---
-- End 3rd Step --
-- 4rd Step --
-=> Make the Libs of DB2 be at the system!
-- LIB --
vim /etc/ld.so.conf
add line: /usr/IBMdb2/V7.1/lib
execute: ldconfig
-- END LIB --
-- End 4rd Step --
-- 5th Step --
-=> EDIT Apache TO RUN DB2
vim /usr/local/apache/bin/apachectl
add line: . /usr/home/db2inst1/sqllib/db2profile
-- End 5th Step --
Now START APACHE !!!!
/usr/local/apache/bin/apachectl startssl
Congratutations!!!
NOW U have Apache + SSL + PHP + DB2 Running !!!!
[]´s
Helio Ferenhof
PS: Let me know if it Helped U!
PS2: Se tiver problemas com o ENGLISH me mande um email em PORTUGUES 🙂