Home Help Center

Install problem: Ice works on php -m but not on phpinfo

W4NTEDW4NTED Member Aissani MehdiOrganization: W4NTED.NETProject: W4NTED PROJECT
Hello Ice dev Team:

I have tried to install the lastest Ice 3.4.1.
It compilled perfectly but there is one thing who don't works.
when i do a php -m , i can view ice on loaded module.
But when i make a php info , Ice is not loaded.

That is what i have done to LD_LIBRARY_PATH because i have installed on default location:
export LD_LIBRARY_PATH=/opt/Ice-3.4.1/lib

That is my ldd output:
ldd /usr/lib/php5/20060613+lfs/IcePHP.so                                    linux-gate.so.1 =>  (0xffffe000)
        libIce.so.34 => /opt/Ice-3.4.1/lib/libIce.so.34 (0xb7376000)
        libSlice.so.34 => /opt/Ice-3.4.1/lib/libSlice.so.34 (0xb71db000)
        libIceUtil.so.34 => /opt/Ice-3.4.1/lib/libIceUtil.so.34 (0xb7170000)
        libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7151000)
        librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7148000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb705a000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7034000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7027000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb6ecb000)
        libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb6ebb000)
        libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb6eb7000)
        libmcpp.so.0 => /usr/lib/libmcpp.so.0 (0xb6e33000)
        /lib/ld-linux.so.2 (0xb7838000)

php-m output:
[PHP Modules]
bcmath
bz2
calendar
ctype
date
dba
dom
exif
filter
ftp
gd
gettext
hash
ice 
iconv
imagick
imap
json
libxml
mbstring
mcrypt
mime_magic
mysql
mysqli
ncurses
openssl
pcntl
pcre
PDO
pdo_mysql
posix
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
uploadprogress
wddx
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]


Module: Ice 3.4.1
Os: debian lenny
PHP Version 5.2.6-1+lenny9
Clic here to view my php info

My installation code:
apt-get update
apt-get install php5-dev php5-cli libmcpp-dev libbz2-dev libexpat1-dev libssl-dev libdb4.6++-dev
cd /home
wget http://www.zeroc.com/download/Ice/3.4/Ice-3.4.1.tar.gz
gunzip Ice-3.4.1.tar.gz
tar -xf Ice-3.4.1.tar
cd Ice-3.4.1
make
cd php
make
cd ..
make install
cd php
make install

If you need more details, i am there.
Thanx for the future answers And thanx to ZEROC STAFF.

NB: Sorry for my bad English, I am french.

Comments

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,
    export LD_LIBRARY_PATH=/opt/Ice-3.4.1/lib
    
    That is what i have done to LD_LIBRARY_PATH because i have installed on default location:

    That change only affects your current user term environment, you need to change that for the user that runs apache, or for all users. AFAIK in debian that is done in /etc/ld.so.conf.d/, but i'm not Debian expert.

    If you still have problems, will help to see if there is any related message in your apache error log.
  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    To be clear, you need to add a file for Ice in /etc/ld.so.conf.d/

    The contents of /etc/ld.so.conf.d/ice.conf will be something like
    /opt/Ice-3.4.1/lib
    

    Save the file and run ldconfig.
  • W4NTEDW4NTED Member Aissani MehdiOrganization: W4NTED.NETProject: W4NTED PROJECT
    OMG you rocks !!!

    Ice is now on phpinfo.

    I have a last question:

    There is nothing on Directive Local Value Master Value
    It is Normal ?

    Tou can look it on my phpinfo.

    My phpinfo is there:

    PhpInfo

    Thanx A lot :).
  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    There is nothing on Directive Local Value Master Value
    It is Normal ?
    Ice module don't put any Directive there, that seems normal to me
  • W4NTEDW4NTED Member Aissani MehdiOrganization: W4NTED.NETProject: W4NTED PROJECT
    Thanx a lot for your help.
    AFAIK the zeroc staff is always helpfull.

    Have a nice, very very very nice day :).
Sign In or Register to comment.