|
Using PHP with Oracle Application Server 10g
With the exponential growth in the use of
PHP, mod_php has become the most requested module for Apache.
The Statement of
direction for PHP support on OHS explains Oracle's detailed plan on
how PHP use with the Oracle Application Server 10g will be
supported. As the statement says, although mod_php does not ship with
the Oracle Applications Server 10g (9.0.4) release, Oracle will
provide detailed instructions on how to install and use PHP with OHS.
This document provides these instructions.
Topics
1.
Pre requisites
1.1 Operating System Requirements
1.2 Software Requirements
2. Configuring
mod_php on Unix - Solaris
2.1. Building PHP without Oracle
DB access
2.1.1 Pre install steps
2.1.2 Setting up the environment
2.1.3. Configure & install
2.1.4 Post Install step
2.2. Building PHP with
Oracle DB access - OCI
2.2.1 Pre install steps
2.2.2 Setting up the environment
2.2.3. Configure & install
2.2.4 Post Install step
3.
Configuring mod_php on Windows
3.1.
Installing PHP Manually
3.1.1
Pre install steps
3.1.2
php.ini file setup
3.1.2.1
Without Oracle DB access
3.1.2.2
With Oracle DB access
3.1.3.
Web Server configuration
3.1.4
Post Install step
3.2.
Installing PHP using Install
Shield
3.2.1
Pre install steps
3.2.2
Install and configuration
3.2.3
php.ini file setup
3.2.4
Web Server configuration
3.2.5
Post Install step
4.
Configuring mod_php on Linux
4.1.
Building PHP
without Oracle DB access
4.1.1
Pre install steps
4.1.2
Setting up the environment
4.1.3.
Configure & install
4.1.4
Post Install step
4.2.
Building PHP
with Oracle DB access - OCI
4.2.1
Pre install steps
4.2.2
Setting up the environment
4.2.3.
Configure & install
4.2.4
Post Install step
5.
Testing your configuration
5.1.
Tests for mod_php without DB
support
5.2.
Tests for mod_php with DB
support
1. Pre
requisites
1.1 Operating System Requirements
Unix - Solaris
Solaris versions 2.8 & 2.9 (tools are available
at
http://www.sunfreeware.com/)
cc version - Sun WorkShop 6 update 1 C 5.2
2000/09/11 or GNU gcc - (for compiling)
make
flex (for compiling)
bison (for compiling)
autoconf
automake
perl (please use perl from the Oracle
Application Server instance)
gzip
tar
OCI header files (for compiling with database
support -
download)
Windows
Windows 32 bit platforms
Windows NT4.0 / 2000 / XP / 2003
Microsoft VC++ 6.0 (for compiling)
Winzip
Linux
Red Hat Enterprise Linux 3.0
gcc
make
lex
tar
OCI header files (for compiling with database
support -
download)
1.2 Software Requirements
Oracle Database
8i (8.1.7) or
9i (9.2.0.1) or
10g (10.1.0.2.0)
Web Server
Oracle Application Server 10g (9.0.4)
PHP
version 4.x.x
2. Configuring mod_php on Unix - Solaris
2.1
Building PHP without Oracle DB access
2.1.1 Pre install steps
- Oracle Application Server 10g
should be installed on the same node.
~/OAS
|
+
- - Apache
|
+ - - Apache
|
+ - - bin
|
+ - - conf
|
+ - - lib
+
- - opmn
|
+ - - perl
|
- - . . . |
- Download php-4.x.x.tar.gz from
http://www.php.net/downloads.php.
Place it at any location. ( For the purpose of documentation we
assume its ~/ )
- Gunzip using the command -
gunzip php-4.x.x.tar.gz this will give
you
php-4.x.x.tar
-
Un-tar using this command - tar -xvf
php-4.x.x.tar
This will create a folder
php-4.x.x
The contents of this folder will be like:
~/php-4.x.x
|
| - - build
|
- - configure
|
- - php.ini-dist
|
- - libtool
|
|
+ - - sapi
|
- - . . . |
2.1.2 Setting up the
environment
- Set the following environment variables
ORACLE_HOME, PERL5LIB, LD_LIBRARY_PATH
Bash shell:
export ORACLE_HOME=/OAS
export
PERL5LIB=$ORACLE_HOME/perl/lib/5.6.1:$ORACLE_HOME/perl/lib/site_perl/5.6.1
export
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
C shell:
setenv ORACLE_HOME /OAS
setenv PERL5LIB
$ORACLE_HOME/perl/lib/5.6.1:$ORACLE_HOME/perl/lib/site_perl/5.6.1
setenv LD_LIBRARY_PATH
$ORACLE_HOME/lib:$LD_LIBRARY_PATH
Tip : Use the 'env' command to check if the
variables are set properly.
|
- Edit the apxs file to modify the CFG_INCLUDE
value.
Navigate to the $ORACLE_HOME/Apache/Apache/bin
$ORACLE_HOME/Apache/Apache/bin/apxs
. .
.
. . .
my
$CFG_INCLUDEDIR = q(/OAS/Apache/Apache/include);
# substituted via APACI install
. .
.
. .
.
Tip : Take a backup of the file before doing
any modifications.
|
2.1.3
Configure & install
With the pre install steps done we are now ready
to configure PHP.
- Navigate to
~/php-4.x.x folder. Run the configure command with
the following options:
|
bash-2.05$
bash-2.05$ ./configure
--with-apxs=$ORACLE_HOME/Apache/Apache/bin/apxs
--prefix=$ORACLE_HOME
--with-config-file-path=$ORACLE_HOME/Apache/Apache/conf
Tip : You can store the above command in a
file and execute the file with proper permissions.
|
- If 'configure' succeeded without any errors
issue the 'make' command at the command prompt! Once the make
command is executed properly
libphp4.so
is generated at the
~/php-4.x.x/libs/
location.
2.1.4 Post Install steps
- Now that the required files are generated we
will have to copy
libphp4.so
and
php.ini-dist
to the appropriate location.
|
bash-2.05$
bash-2.05$ cp ~/php-4.x.x/libs/libphp4.so
$ORACLE_HOME/Apache/Apache/libexec
bash-2.05$ cp ~/php-4.x.x/php.ini-dist
$ORACLE_HOME/Apache/Apache/conf/php.ini
|
- Now that all the files are in the appropriate
the locations we have to tell OHS to load PHP module and service the
requests for .php / .phtml / .phps type extensions!
Navigate to the $ORACLE_HOME/Apache/Apache/conf. Edit the
httpd.conf file as follows:
|
$ORACLE_HOME/Apache/Apache/conf/httpd.conf
# Dynamic Shared Object (DSO) Support. . .
LoadModule . . .
LoadModule php4_module libexec/libphp4.so
# Document types.
. . .
#
And for PHP 4.x, use:
. .
.
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps.
. .
.
Tip : Take a backup of the file before doing
any modifications.
|
- Finally OHS should be restarted for the
changes to come into effect!
|
$ORACLE_HOME/opmn/bin/
opmnctl startproc ias-component=HTTP_Server
|
- Proceed to
section 5 to test your
configuration.
2.2 Building PHP with Oracle DB access - OCI8
2.2.1
Pre install steps
Execute steps in section 2.1.1 Pre install steps - a,b,c,d
In
addition to the above steps please execute the following steps:
- In the Oracle Application Server 10g
instance create a folder
demo at $ORACLE_HOME/rdbms/
-
Download the OCI headers to $ORACLE_HOME/rdbms/demo.
-
Un-tar using this command - tar -xvf
ociheaders.tar.
The contents of this folder will be like:
~/OAS
|
+
- - Apache
|
+
- - rdbms
|
| - - demo
|
| - - oci.h
|
| - - ociap.h
.
| - - oratypes.h
.
| - - . . .
.
| - - . . . |
2.2.2 Setting up the environment
Execute steps in section
2.1.2 Setting up the environment
2.2.3 Configure & install
With the pre install steps done we are now ready
to configure PHP.
- Navigate to
~/php-4.x.x folder. Run the configure command with
the following options:
|
bash-2.05$
bash-2.05$ ./configure
--with-apxs=$ORACLE_HOME/Apache/Apache/bin/apxs
--prefix=$ORACLE_HOME
--with-config-file-path=$ORACLE_HOME/Apache/Apache/conf
--with-oci8=$ORACLE_HOME
Tip : You can store the above command in a file
and execute the file with proper permissions.
|
- If 'configure' succeeded without any errors
issue the 'make' command at the command prompt! Once the make
command is executed properly
libphp4.so
is generated at the
~/php-4.x.x/libs/
location.
2.2.4
Post Install steps
- Now that the required files are generated we
will have to copy
libphp4.so
and
php.ini-dist
to the appropriate location.
|
bash-2.05$
bash-2.05$ cp ~/php-4.x.x/libs/libphp4.so
$ORACLE_HOME/Apache/Apache/libexec
bash-2.05$ cp ~/php-4.x.x/php.ini-dist
$ORACLE_HOME/Apache/Apache/conf/php.ini
|
- Now that all the files are in the appropriate
the locations we have to tell OHS to load PHP module and service the
requests for .php / .phtml / .phps type extensions!
Navigate to the
$ORACLE_HOME/Apache/Apache/conf. Edit the httpd.conf file as
follows:
|
$ORACLE_HOME/Apache/Apache/conf/httpd.conf
# Dynamic Shared Object (DSO) Support. . .
LoadModule . . .
LoadModule php4_module libexec/libphp4.so
# Document types.
. . .
#
And for PHP 4.x, use:
. .
.
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps.
. .
.
Tip
: Take a backup of the file before doing any
modifications. |
- Enter the connect string for the database you
want to access.
Edit $ORACLE_HOME/network/admin/tnsnames.ora file to add the
connect string.
- Finally OHS should be restarted for the
changes to come into effect!
|
$ORACLE_HOME/opmn/bin/
opmnctl startproc ias-component=HTTP_Server
|
- Proceed to
section 5 to test your
configuration!
3. Configuring mod_php on Windows
3.1.
Installing PHP Manually
3.1.1 Pre
install steps
- Oracle Application Server 10g
should be installed on the same node.
c:\OAS
|
+
- - Apache
|
+ - - Apache
|
+ - - bin
|
+ - - conf
|
+ - - lib
+
- - opmn
|
+ - - perl
|
- - . . . |
- Download php-4.3.4-Win32.zip from
http://www.php.net/downloads.php.
Place it at any location. (for the purpose of documentation we
assume its c:\)
- Un-zip the downloaded zip file. It will
create a folder
php-4.3.4-Win32
-
Rename this folder to
php. The contents of this folder
will be like:
c:\php
+
- - cli
|
| - - php.exe
+
- - dlls
+
- - extensions
|
| - - php_oci8.dll
|
| - - php_oracle.dll
+
. . .
+
. . .
+ - - sapi
|
| - - php4apache.dll
|
| - - php4apache2.dll
|
| - - php.exe
|
- - php4ts.dll
|
- - php.ini-recommended
|
. . . |
Tip : Do not
place the php folder in c:\Program Files as some web servers crash
due to the space in the path.
3.1.2 php.ini
file setup
3.1.2.1 Without Oracle DB access
Setting up the
php.ini file. There are two .ini files in
the extracted location :
php.ini-dist &
php.ini-recomended. Since the
php.ini-recomended settings have been optimized for
performance & security, its advisable to use this file. Rename the
php.ini-recomended file to
php.ini.
The php.ini has to reside in the
%SYSTEMROOT% or %WINDIR% location of your system.
|
on
Windows NT / 2000 - %SYSTEMROOT% is typically C:\WINNT
on Windows NT / 2000 Servers - %SYSTEMROOT% is typically
C:\WINNT40
on Windows XP - %WINDIR% is typically C:\Windows
|
3.1.2.2 With Oracle DB access
This step is required only if you need to access the Oracle
Database. To have access to the database PHP needs the
php_oci8.dll which is located in the
c:\php\extensions folder. The location for the
extensions folder is derived by PHP
from the php.ini file.
After placing the php.ini file
in the %SYSTEMROOT%, edit the php.ini file.
Locate the Paths and Directories section and
add the location for the folder.
|
c:\winnt\php.ini
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
Directory in which the loadable extensions (modules)
reside.
extension_dir = "c:\php\extensions"
Tip :
Take a backup of the file before doing any
modifications.
|
Now enable the php_oci8.dll by un-commenting the
appropriate line
|
c:\winnt\php.ini
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
change the following line by removing the semi-colon ( ;
)
;extension=php_oci8.dll
; . . . to
extension=php_oci8.dll
Tip :
Take a backup of the file before doing any
modifications.
|
Enter the connect string for the database you
want to access.
Edit c:\OAS\network\admin\tnsnames.ora file
to add the connect string.
This would complete the basic steps to setup
PHP on Windows.
3.1.3.
Web Server configuration
Now we have to inform OHS about PHP to load it as
a module.
- Since the version of Apache in OHS is 1.3.29
we have to use
php4apache.dll from the
c:\php\sapi folder.
php4apache.dll rely on
php4ts.dll which gets loaded as
soon as Apache loads
php4apache.dll.
php4ts.dll is searched in the following order:
- in the directory where
apache.exe is loaded
-
in the directory where php.exe is called
-
in the directory where php4apache.dll is loaded.
- whole %PATH%.
c:\php
+
. . .
+ - - sapi
|
| - - php4apache.dll
|
| - - php4ts.dll
|
Tip :
It is recommended to copy the php4ts.dll from c:\php to
c:\php\sapi
|
- To load PHP as a module we have to load
php4apache.dll in the httpd.conf file. Edit the
httpd.conf file at the following location c:\OHS\Apache\Apache\conf
and follow the instructions in the following steps:
Locate LoadModule and
add
color=#000099>LoadModule php4_module
C:/PHP\sapi/php4apache.dll at the end of the list.
|
c:\OHS\Apache\Apache\conf\httpd.conf
# Dynamic Shared Object (DSO) Support
. . .
LoadModule . . .
LoadModule php4_module C:/PHP\sapi/php4apache.dll
ClearModuleList
. . .
Tip :
Take a backup of the file before doing any
modifications.
|
If the ClearModuleList exists in the httpd.conf
file you have to define the AddModule directive for mod_php4. Locate
the ClearModuleList and add AddModule mod_php4.c at the end of the
list.
|
c:\OHS\Apache\Apache\conf\httpd.conf
ClearModuleList
. . .
AddModule . . .
AddModule mod_php4.c
Tip :
Take a backup of the file before doing any
modifications.
|
Now we have to tweak the mime type entries.
Locate the AddType and add the following lines:
AddType application/x-httpd-php .php
AddType
application/x-httpd-php-source .phps
You can choose any extension to parse with
PHP. Above two are recommended!
|
c:\OHS\Apache\Apache\conf\httpd.conf
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Tip :
Take a backup of the file before doing any
modifications.
|
3.1.4 Post
Install step
-
Finally OHS should be restarted for the changes to come into
effect!
|
c:\OHS\opmn\bin
opmnctl startproc ias-component=HTTP_Server
|
- Proceed to
section 5 to test your
configuration!
3.2.
Installing PHP using Install Shield
Please note that this install type does not provide
all the required modules like
sapi, extensions which are required for
mod_php. You may have to get these modules from php-4.3.4-Win32.zip used
for manual installation.
3.2.1 Pre
install steps
- Please refer section
3.1.1.
Pre install steps - step a.
- Download php-4.3.4-installer.exe from
http://www.php.net/downloads.php.
Place it at any location. (for the purpose of documentation we
assume its c:\)
3.2.2 Install and configuration
- Invoke the installer which opens up a wizard.
There are two types of install types : Standard and Advance.
Standard - This option takes
default values during the install.
Advanced - This option would ask a series of questions in
the initial phase.
Advanced - This option would ask a series of questions in
the initial phase.
For both the installs you have to select the HTTP server
you want PHP to associate to. There is an option to select Apache
however it would not get associated during the install as this
module is of installation is not implemented.
The information gathered during the install is used to
setup the php.ini file.
-
Complete the installation from the Install Shield.
3.2.3 php.ini file setup
The php.ini file is configured with the values
obtained during installation.
For enabling the Oracle DB access, you require
the folder
extensions from php-4.3.4-Win32.zip used
for manual installation. Further refer to section
3.1.2.2 With Oracle DB access
3.2.4 Web Server configuration
Please refer
3.1.3. Web Server configuration
. The required folder
sapi required for web server configuration will
have to be copied from php-4.3.4-Win32.zip used for manual
installation.
3.2.5 Post Install step
Refer section
3.1.4 Post Install step.
Proceed to
section 5 to test your
configuration!
4.
Configuring mod_php on Linux
4.1 Building PHP without
Oracle DB access
4.1.1 Pre install steps
- Oracle Application Server 10g
should be installed on the same node.
~/OAS
|
+
- - Apache
|
+ - - Apache
|
+ - - bin
|
+ - - conf
|
+ - - lib
+
- - opmn
|
+ - - perl
|
- - . . . |
- Download php-4.x.x.tar.gz from
http://www.php.net/downloads.php.
Place it at any location. ( For the purpose of documentation we
assume its ~/ )
- Gunzip using the command -
gunzip php-4.x.x.tar.gz this will give
you
php-4.x.x.tar
-
Un-tar using this command - tar -xvf
php-4.x.x.tar
This will create a folder
php-4.x.x
The contents of this folder will be like:
~/php-4.x.x
|
| - - build
|
- - configure
|
- - php.ini-dist
|
- - libtool
|
|
+ - - sapi
|
- - . . . |
4.1.2 Setting up the
environment
- Set the following environment variables
ORACLE_HOME, PERL5LIB, LD_LIBRARY_PATH
Bash shell:
export ORACLE_HOME=/OAS
export
PERL5LIB=$ORACLE_HOME/perl/lib/5.6.1:$ORACLE_HOME/perl/lib/site_perl/5.6.1
export
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
C shell:
setenv ORACLE_HOME /OAS
setenv PERL5LIB
$ORACLE_HOME/perl/lib/5.6.1:$ORACLE_HOME/perl/lib/site_perl/5.6.1
setenv LD_LIBRARY_PATH
$ORACLE_HOME/lib:$LD_LIBRARY_PATH
Tip : Use the 'env' command to check if the
variables are set properly.
|
- Edit the apxs file to modify the CFG_INCLUDE
value.
Navigate to the $ORACLE_HOME/Apache/Apache/bin
$ORACLE_HOME/Apache/Apache/bin/apxs
. .
.
. . .
my
$CFG_INCLUDEDIR = q(/OAS/Apache/Apache/include);
# substituted via APACI install
. .
.
. .
.
Tip : Take a backup of the file before doing
any modifications.
|
4.1.3 Configure & install
With the pre install steps done we are now ready
to configure PHP.
- Navigate to
~/php-4.x.x folder. Run the configure command with
the following options:
|
bash-2.05$
bash-2.05$ ./configure
--with-apxs=$ORACLE_HOME/Apache/Apache/bin/apxs
--prefix=$ORACLE_HOME
--with-config-file-path=$ORACLE_HOME/Apache/Apache/conf
Tip : You can store the above command in a
file and execute the file with proper permissions.
|
- If 'configure' succeeded without any errors
issue the 'make' command at the command prompt! Once the make
command is executed properly
libphp4.so
is generated at the
~/php-4.x.x/libs/
location.
4.1.4 Post Install steps
- Now that the required files are generated we
will have to copy
libphp4.so
and
php.ini-dist
to the appropriate location.
|
bash-2.05$
bash-2.05$ cp ~/php-4.x.x/libs/libphp4.so
$ORACLE_HOME/Apache/Apache/libexec
bash-2.05$ cp ~/php-4.x.x/php.ini-dist
$ORACLE_HOME/Apache/Apache/conf/php.ini
|
- Now that all the files are in the appropriate
the locations we have to tell OHS to load PHP module and service the
requests for .php / .phtml / .phps type extensions!
Navigate to the $ORACLE_HOME/Apache/Apache/conf. Edit the
httpd.conf file as follows:
|
$ORACLE_HOME/Apache/Apache/conf/httpd.conf
# Dynamic Shared Object (DSO) Support. . .
LoadModule . . .
LoadModule php4_module libexec/libphp4.so
# Document types.
. . .
#
And for PHP 4.x, use:
. .
.
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps.
. .
.
Tip : Take a backup of the file before doing
any modifications.
|
- Finally OHS should be restarted for the
changes to come into effect!
|
$ORACLE_HOME/opmn/bin/
opmnctl startproc ias-component=HTTP_Server
|
- Proceed to
section 5 to test your
configuration!
4.2 Building PHP with
Oracle DB access - OCI8
4.2.1 Pre install steps
Execute steps in section 4.1.1 Pre install steps - a,b,c,d
In addition to the above steps please execute the
following steps:
- In the Oracle Application Server 10g
instance create a folder
demo at $ORACLE_HOME/rdbms/
-
Download the OCI headers to $ORACLE_HOME/rdbms/demo.
-
Un-tar using this command - tar -xvf
ociheaders.tar.
The contents of this folder will be like:
~/OAS
|
+ - - Apache
|
+ - - rdbms
| | - -
demo
|
| - - oci.h
|
| - - ociap.h
.
| - - oratypes.h
.
| - - . . .
.
| - - . . . |
4.2.2 Setting up the environment
Execute steps in section
4.1.2 Setting up the environment
4.2.3 Configure & install
With the pre install steps done we are now ready
to configure PHP.
- Navigate to
~/php-4.x.x folder. Run the configure command with
the following options:
|
bash-2.05$
bash-2.05$ ./configure
--with-apxs=$ORACLE_HOME/Apache/Apache/bin/apxs
--prefix=$ORACLE_HOME
--with-config-file-path=$ORACLE_HOME/Apache/Apache/conf
--with-oci8=$ORACLE_HOME --disable-rpath
Tip : --disable-rpath is used to avoid a run
time problem with OCI8 library.
Tip : You can store the above command in a file
and execute the file with proper permissions.
|
- If 'configure' succeeded without any errors
issue the ' color=#cc0000>make install-sapi' command at
the command prompt! Once the make command is executed properly
libphp4.so is generated at
the
~/php-4.x.x/libs/ location and copied to
$ORACLE_HOME/Apache/Apache/libexec/ location. Also it
activates php4 module for http server by adding entry "LoadModule
php4_module libexec/libphp4.so" in http server config file
$ORACLE_HOME/Apache/Apache/conf/httpd.conf
4.2.4 Post Install steps
- Now that the required files are generated we
will have to copy
php.ini-dist
to the appropriate location.
|
bash-2.05$
bash-2.05$ cp ~/php-4.x.x/php.ini-dist
$ORACLE_HOME/Apache/Apache/conf/php.ini
|
- Now that all the files are in the appropriate
the locations we have to tell OHS to service the requests for .php /
.phtml / .phps type extensions by adding AddType directives.
Navigate to the $ORACLE_HOME/Apache/Apache/conf.
Edit the httpd.conf file as follows:
|
$ORACLE_HOME/Apache/Apache/conf/httpd.conf
# Document types.
. . .
#
And for PHP 4.x, use:
. .
.
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps.
. .
.
Tip
: Take a backup of the file before doing any
modifications. |
- Enter the connect string for the database you
want to access.
Edit $ORACLE_HOME/network/admin/tnsnames.ora file to add the
connect string.
- Finally OHS should be restarted for the
changes to come into effect!
|
$ORACLE_HOME/opmn/bin/
opmnctl startproc ias-component=HTTP_Server
|
- Proceed to
section 5 to test your
configuration!
5. Testing your configuration
5.1 Tests for mod_php without DB support.
-
Download the demo.zip file.
-
Unzip the contents to $ORACLE_HOME/Apache/Apache/htdocs
~/OAS (or c:\OAS)
|
+
- - Apache
|
+ - - Apache
|
+ - - bin
|
+ - - htdocs
.
+ - - demo
.
| - - hello.php
.
| - - sanity01.php
.
| - - sanity02.php |
The URL to test this would be http://<ohs_host>:<ohs_port>/demo/hello.php
5.2 Tests for mod_php with DB support.
-
Download the dbdemo.zip file.
-
Unzip the contents to $ORACLE_HOME/Apache/Apache/htdocs
~/OAS (or c:\OAS)
|
+
- - Apache
|
+ - - Apache
|
+ - - bin
|
+ - - htdocs
|
+ - - dbdemo
|
| - - dbtest01.php
.
| - - dbtest02.php
.
| - - dbtest03.php
.
| - - dbtest04.php
.
| - - dbtest05.php |
- Before accessing the script edit each
of the script to enter the database connect string. Open the
dbtest file and search for the $dbstring variable and update
with your connect string.
The URL to test this would be
http://<ohs_host>:<ohs_port>/dbdemo/dbtest01.php
|