Operating System - HP-UX
1752366 Members
5816 Online
108787 Solutions
New Discussion юеВ

Apache + PHP - unable to load extension (Oracle)

 
SOLVED
Go to solution
Ladislav Kostal
Advisor

Apache + PHP - unable to load extension (Oracle)

Hello all,

After installation of latest HPWS I get this error, when trying to start Apache + PHP with Oracle support:

/usr/lib/dld.sl: Call to mmap() failed - TEXT /opt/hpws/apache/php/lib/php/extensions/oci8.sl
/usr/lib/dld.sl: Not enough space
PHP Warning: Unknown(): Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/oci8.sl' - (null) in Unknown on line 0

I tried various steps, but nothing helped.

ORACLE variables are set correctly, SHLIB_PATH also, Oracle is 64-bit, increasing shmmax made no difference, swap utilization is low:

#swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 376 648 37% 0 - 1 /dev/vg00/lvol2
dev 8000 375 7625 5% 0 - 1 /dev/vg00/lvswap
dev 12276 0 12276 0% 0 - 2 /dev/vg00/lvswap2
reserve - 5999 -5999
memory 1515 366 1149 24%
total 22815 7116 15699 31% - 0 -

Do you have some ideas?

Thanks

Ladislav Kostal
13 REPLIES 13
bhavin asokan
Honored Contributor

Re: Apache + PHP - unable to load extension (Oracle)

hi,

try by increasing maxdsiz,maxdsiz_64bit,maxssiz,maxssiz_64bit
parameters in kernel.

regds,
Ladislav Kostal
Advisor

Re: Apache + PHP - unable to load extension (Oracle)

I would rather try some solution that doesn't require reboot. It is last possibility for me :) Thanks anyway.
Ladislav Kostal
Advisor

Re: Apache + PHP - unable to load extension (Oracle)

Current values:

shmmax 0x400000000
maxdsiz 0x40000000
maxdsiz_64bit 0x100000000
maxssiz 0x800000
maxssiz_64bit 0x800000
bhavin asokan
Honored Contributor

Re: Apache + PHP - unable to load extension (Oracle)

hi,

on my test server it is (through sam)

maxdsiz 67108864
maxdsiz_64bit 1073741824
maxssiz 8388608
maxssiz_64bit 8388608

this is the calculated value.just compare with your systems values.

regds,




Ermin Borovac
Honored Contributor

Re: Apache + PHP - unable to load extension (Oracle)

Does your SHLIB_PATH contain $ORACLE_HOME/lib? If so, read on.

Apache is 32-bit and your Oracle installation is 64-bit. oci8.sl is linked with libclntsh.sl and dld may be trying to load 64-bit version of libclntsh.sl which won't work.

Please make sure your SHLIB_PATH contains $ORACLE_HOME/lib32 instead of $ORACLE_HOME/lib.
Ladislav Kostal
Advisor

Re: Apache + PHP - unable to load extension (Oracle)

Thanks for tip, but it didn't help. Still same :(
Olivier Decorse
Respected Contributor

Re: Apache + PHP - unable to load extension (Oracle)

Hi,
just a question : dld.sl says "Not enough space". Is there any filesystem without space left (verify with bdf) ?

Olivier.
They say "install windows 2k, xp or better", so i install unix !
Ladislav Kostal
Advisor

Re: Apache + PHP - unable to load extension (Oracle)

No, each fs is under 100%. After tracing with tucs I've got exact number of error in mmap call:

[ENOMEM]
MAP_FIXED was specified, and the range [addr, addr+len] exceeds that allowed for the address space of a process; or if MAP_FIXED was not specified and there is insufficient room in the address space to effect the mapping.
Olivier Decorse
Respected Contributor

Re: Apache + PHP - unable to load extension (Oracle)

Can you take a look at this thread ?
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6ee4a848deccd61190050090279cd0f9,00.html

Olivier.
They say "install windows 2k, xp or better", so i install unix !