![]() |
Enable PHP Support on Oracle HTTP Server
When you install an Oracle database, you automatically install an Apache 1.3 HTTP server on which the database relies for many of its products and features. It seems to be a waste of resources to install a second Web server for database-driven Web site development on a single machine. It would be more efficient to simply add modules to the Oracle Apache server to support additional products.
This column describes the necessary steps for installing PHP support on the Oracle 9i default Apache Web server. We'll use Windows paths and names, but UNIX and other operating systems should be similar. (Note that Oracle has announced that Oracle 10g will include PHP support.) The first step is to obtain the PHP module for your desired Web site from php.net. Download this module, unzip it into a directory, and build binaries (if needed) according to the installation scripts. From this point forward, I'll use c:\php as the installation root for the PHP directory containing the executables, and I'll use c:\oracle\ora92 as my Oracle Home. Second, copy the file php4ts.dll (the scripting engine) into the sapi subdirectory. This is needed by php4apache.dll, and it's easier to locate if it's in the same directory. Third, create a php.conf file to contain your PHP-specific settings for Oracle's Apache server: Code:
# Apache configuration to enable PHPCode:
include "C:/oracle/ora92/Apache/Apache/conf/php.conf"Code:
extension_dir = "c:/php/extensions/"Code:
extension=php_oracle.dllHTML Code:
<html>Code: PHP
|
Re: Enable PHP Support on Oracle HTTP Server
good info
|
Re: Enable PHP Support on Oracle HTTP Server
Good article but why one should go for oracle when MySQL is there
|
Re: Enable PHP Support on Oracle HTTP Server
Hello pardeep
Thanks for the post as till now i never think to use any other database with PHP but now i will try to use oracle with PHP |
| All times are GMT +5.5. The time now is 04:21. |