Hi,
I have some problems installing php 4.3.3 with Oracle 9.2 on my
machine.
When I run configure as:
./configure --prefix=/usr/share --datadir=/usr/share/php \
--bindir=/usr/bin --libdir=/usr/share --with-config-file-path=/etc \
--with-exec-dir=/usr/lib/php/bin --with-apxs=/usr/sbin/apxs \
--with-oci8=/home/oracle/OraHome1/ \
--with-oracle=/home/oracle/OraHome1/ \
--enable-sigchild
it seems to work fine, but I have the following warning:
| WARNING |
| |
| Please check that your Apache (httpd) is linked with libpthread. |
| If not, you have to recompile Apache with pthread. For more |
| details, see this page: http://www.php.net/manual/ref.oci8.php |
I checked the link to the lib and it seems OK.
Then I did make and I had the following:
/TXT/TMP/INSTALL/php-4.3.3/ext/standard/var_unserializer.c: In function php_var_unserialize':
/TXT/TMP/INSTALL/php-4.3.3/ext/standard/var_unserializer.c:308: warning:
comparison is always false due to limited range of data type
ext/mysql/libmysql/my_tempnam.lo: In functionmy_tempnam':
/TXT/TMP/INSTALL/php-4.3.3/ext/mysql/libmysql/my_tempnam.c:115: the use o
f tempnam' is dangerous, better usemkstemp'
Even if there were warnings I did make install and it seemed to work fine.
At this point I tried to run apache with the following test file:
<?php
echo phpinfo();
?>
php was not recognised, consequently I couldn't open it with my browser
(Mozilla).
I checked the httpd.conf and I have seen that the following lines are related
to php:
<IfDefine DUMMYSSL>
LoadModule ssl_module /usr/lib/apache/libssl.so
LoadModule mod_php4.c /usr/lib/apache/libphp4.so
</IfDefine>
.....
<IfDefine DUMMYSSL>
AddModule mod_ssl.c
AddModule mod_php4.c
</IfDefine>
......
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>
I've also tried to run my test file (php via shell) to check the configuration
and it seems fine to me...
as well the oracle variables and settings:
oci8
OCI8 Support => enabled
Revision => $Revision: 1.183.2.5 $
Oracle Version => 9.2
Compile-time ORACLE_HOME => /home/oracle/OraHome1/
Libraries Used =>
oracle
Oracle Support => enabled
Oracle Version => 9.0
Compile-time ORACLE_HOME => /home/oracle/OraHome1/
Libraries Used =>
but if I run a simple ocilogon I have the following error:
Warning: ocilogon(): OCISessionBegin: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
Could anyone help me?
I've no idea where the errors are! 🙁(
Your help will be very appreciated!
Thank you!
Chiara