Oracle HTTP Server is the web server component in Oracle Fusion Middleware. Based on the Apache infrastructure, Oracle HTTP Server allows developers to program their site in a variety of languages and technologies.
PHP (recursive acronym for “PHP: Hypertext Preprocessor”) is a general-purpose scripting language often used for generating web sites. The object model of PHP 5 facilitates project development using standard object-oriented methodologies.
To Configure PHP with Oracle OHS Follow the below steps :-
Step #1:-
export ORACLE_HOME=/Siebel/ohs/Middleware/Oracle_WT1/
export ORACLE_INSTANCE=/Siebel/ohs/Middleware/Oracle_WT1/instances/instance1/
export CONFIG_FILE_PATH=/Siebel/ohs/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1/
Step #2:
Download PHP From here.
Upload the file to the server ( should be on the same OHS Server).
gunzip php-5.4.27.tar.gz
tar -xvf php-5.4.27.tar
cd /Siebel/php-5.4.27
I Used this version because older version contains bugs
conflicting types for ‘zendparse’
Step #3:-
$./configure –with-apxs2=$ORACLE_HOME/ohs/bin/apxs –prefix=$ORACLE_HOME –with-config-file-path=$CONFIG_FILE_PATH
make
make install
libphp5.so is generated inside php/libs
cp php.ini-production $CONFIG_FILE_PATH/php.ini
AddType application/x-httpd-php .php .phtml
./opmnctl stopall
./opmnctl startall
Install Demo Files HereExtract demo file to $CONFIG_FILE_PATH/htdocs
Only use AddHandler instead of AddType, For example: AddHandler application/x-httpd-php .php .phtml
LikeLike
Additionally export LD_LIBRARY_PATH, otherwise you will get error during configuratio:apxs:Error: Sorry, no DSO support for Apache availableExample:export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ohs/lib:$LD_LIBRARY_PATH
LikeLike
Hello Osama thanks for information I have question about can I install php in oracle http server in windows 10
LikeLike