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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to install apache, php4 with oracle on hpux

Apache, php hpux11

How to install apache, php4 with oracle on hpux

by  jaybar  Posted    (Edited  )
Make sure the oracle client is installed if you want to use the oracle OCI libriaries (better performance). Once it is installed then you will have to create a unix account which will run the apache child processes (the parent process runs as root if you will be using port 80 for http). This same account will have to have all of the Oracle paths in its profile in order for php to connect to an oracle db.

Apache 1.3.19 and PHP 4.01 HPUX11 source code compile and installation instructions:
Download Files:
- Apache1.3.19 complete source code
- php4.0.4pl1 complete source code

$ gunzip apache_1.3.19.tar.zg
$ tar xvf apache_1.3.19.tar
$ gunzip php-4.XXX.tar.gz
$ tar xvf php-4.XXX.tar

$ cd apache_1.3.19
$ .configure --prefix=/path to apache/apache_1.3.19/

$ cd ../php-4.XXX
$ ./configure --with-apache=/path to apache/apache_1.3.19/ --with-oci8 --with-oracle
$ make
$ make install

$ cd ../apache_1.3.19
$ ./configure --prefix=/path to apache/apache_1.3.19 \
--activate-module=src/modules/php4/libphp4.a

$ make
$ make install

Now edit the conf/httpd.conf file by uncommenting the following line:
AddType application/x-httpd-php .php

Unix installation link:
http://www.php.net/manual/it/install.unix.php

Other notes...
Tip:::
If you want Apache to start automatically when the server boots up make sure that the Oracle startup runs before the apache one since php will try to connect to oracle. It took us a while to figure out that if apache starts before oracle php will not be able to connect to oracle and you will have to restart apache in order to connect.

I will work on posting my newer installs with the latest apache with ssl, gmp, and java.

If you have any questions post a reply to this thread and I will respond.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top