Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle HTTP Server + PHP

413546May 23 2005 — edited Jun 15 2005
Does anyone know how to enable PHP support on Oracle HTTP Server (from Oracle DB Companion CD)? I tried to compile PHP on it, bet I get the following error:

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...

Sorry, I was not able to successfully run APXS. Possible reasons:

1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /u01/app/oracle/product/10.1.0/cp_1/Apache/Apache/bin/apxs follows
ld.so.1: /u01/app/oracle/product/10.1.0/cp_1/Apache/Apache/bin/httpd: fatal: libdms2.so: open failed: No such file
or directory
apxs:Error: Sorry, no DSO support for Apache available
apxs:Error: under your platform. Make sure the Apache
apxs:Error: module mod_so is compiled into your server
apxs:Error: binary `/u01/app/oracle/product/10.1.0/cp_1/Apache/Apache/bin/httpd'.
configure: error: Aborting

Oracle HTTP server does not have DSO support, is there some possibility to enable it? Or there exists another way to enable PHP support on Oracle HTTP server.

Comments

444950
Could you paste the full command line you used to run the configure script? My initial guess is that you didn't specify the full path to Apache's apxs (usually located somewhere around "$ORACLE_HOME/Apache/Apache/bin/apxs"). Among other things, try making sure you've specified "--with-apxs=$ORACLE_HOME/Apache/Apache/bin/apxs" on the command line.

If you don't know where apxs might be, you can also usually try finding apxs with "find / -name apxs > find.out". If you have "find" on your flavor of *n?x, this will output all files exactly matching the name "apxs" to a file named "find.out" in your current directory. You can usually view the file by running "cat find.out" on the command line. Look for lines in the file with "Apache" on them and/or your Oracle install directory (or $ORACLE_HOME).
325647
Follow these instructions and you will be in business.

http://www.oracle.com/technology/tech/opensource/php/apache/inst_php_apache_linux.html
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 13 2005
Added on May 23 2005
2 comments
1,283 views