×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Apache, php hpux11

How to install apache, php4 with oracle on hpux by jaybar
Posted: 9 Oct 01 (Edited 16 Jul 02)

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.  

Back to Linux (server) FAQ Index
Back to Linux (server) Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close