Results 1 to 4 of 4

Thread: Problems with loading IcePHP module

  1. #1
    wengole is offline Registered User
    Name: Ben Cole
    Organization: Network EQ
    Project: Murmur PHP admin interface
    Join Date
    Feb 2009
    Posts
    2

    Problems with loading IcePHP module

    Hi,

    I'm getting this when I run a php -m from the command line in linux.

    PHP Warning: PHP Startup: ice: Unable to initialize module
    Module compiled with module API=20050922, debug=0, thread-safety=0
    PHP compiled with module API=20060613, debug=0, thread-safety=0

    Running CentOS 5.1 x86_64 with cPanel.
    PHP version 5.2.8
    ICE version 3.3.0

    Any help is gladly appreciated, as I've no idea where to go from here. Do I need to build from source ICE? Or PHP? Hopefully not the latter as cPanel won't like that.

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    Hi Ben,

    Welcome to the forum.

    I'm guessing you installed the Ice for PHP RPM (which was built against PHP 5.1.x) and are trying to use it with PHP 5.2.8.

    You'll need to build a new version of the PHP extension using PHP 5.2.8. Follow these steps:
    • Download the Ice 3.3.0 source distribution and extract it.
    • Install the mcpp RPM.
    • $ cd Ice-3.3.0/cpp/src
    • $ make
    • $ cd ../../php
    • Review config/Make.rules (e.g., you may want to change PHP_HOME)
    • $ make
    • Copy lib/IcePHP.so to the desired destination
    If you like, you can stop the build in Ice-3.3.0/cpp/src after it has finished building libIce.so. Also, there's no need to install the version of Ice for C++ that you just compiled; you can simply copy IcePHP.so and use it with the RPM installation of the Ice libraries.

    Regards,
    Mark

  3. #3
    wengole is offline Registered User
    Name: Ben Cole
    Organization: Network EQ
    Project: Murmur PHP admin interface
    Join Date
    Feb 2009
    Posts
    2
    Thank you very much. This worked perfectly

  4. #4
    jandresaedo is offline Registered User
    Name: Juan Ramirez
    Organization: Personal
    Project: basic Symfony
    Join Date
    Jul 2010
    Posts
    1

    Unhappy

    Quote Originally Posted by mes View Post
    Hi Ben,

    Welcome to the forum.

    I'm guessing you installed the Ice for PHP RPM (which was built against PHP 5.1.x) and are trying to use it with PHP 5.2.8.

    You'll need to build a new version of the PHP extension using PHP 5.2.8. Follow these steps:
    • Download the Ice 3.3.0 source distribution and extract it.
    • Install the mcpp RPM.
    • $ cd Ice-3.3.0/cpp/src
    • $ make
    • $ cd ../../php
    • Review config/Make.rules (e.g., you may want to change PHP_HOME)
    • $ make
    • Copy lib/IcePHP.so to the desired destination
    If you like, you can stop the build in Ice-3.3.0/cpp/src after it has finished building libIce.so. Also, there's no need to install the version of Ice for C++ that you just compiled; you can simply copy IcePHP.so and use it with the RPM installation of the Ice libraries.

    Regards,
    Mark
    Hello....I have Centos 5.3, and my first make is ok, but in my 2 make I dont know how to change PHP_HOME. I was run the next command:

    locate php |less :

    /usr/bin/php
    /usr/bin/php-cgi
    /usr/lib64/php
    /usr/lib64/httpd/modules/libphp5.so
    /usr/lib64/php/modules
    /usr/lib64/php/modules-zts
    /usr/lib64/php/pear
    /usr/lib64/php/modules/IcePHP.so
    /usr/lib64/php/modules/curl.so
    /usr/lib64/php/modules/fileinfo.so
    /usr/lib64/php/modules/json.so
    /usr/lib64/php/modules/mysql.so
    /usr/lib64/php/modules/mysqli.so
    /usr/lib64/php/modules/pdo.so
    /usr/lib64/php/modules/pdo_mysql.so
    /usr/lib64/php/modules/pdo_sqlite.so
    /usr/lib64/php/modules/phar.so

    So, my PHP_HOME ?=/opt/var changed for ?=/usr/lib64/php <----this is correct???

    Thanks.
    I'm leave in Chile, the last corner in the world

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problems installing IcePHP
    By vizcusss in forum Help Center
    Replies: 2
    Last Post: 03-19-2009, 04:12 PM
  2. Replies: 1
    Last Post: 08-13-2007, 01:16 AM
  3. Problems with installation of IcePHP
    By cesartovic in forum Help Center
    Replies: 17
    Last Post: 04-18-2007, 09:45 AM
  4. Loading properties file in MFC sample
    By Kruppy in forum Help Center
    Replies: 6
    Last Post: 11-08-2005, 03:01 PM
  5. Replies: 2
    Last Post: 04-27-2004, 03:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •