Hello,

I have PHP 5.3.13 on a CentOS 5.8 machine. Another person recently installed PECL. When i access the phpinfo file on the web server, there is no mention of PECL, even after restarting Apache.

Now, though PHP seems to work fine, whenever a command is run, it results in this:

php -version
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/http.so' - /usr/lib64/php/modules/http.so: undefined symbol: php_set_error_handling in Unknown on line 0
PHP 5.3.13 (cli) (built: May 8 2012 15:39:23)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

I don't know if this error message is related to the PECL install or not. have checked and httpd.so is in the right directory and the entry extension=http.so is in php.ini as PECL requires.

In addition to php53, here is what I have installed:

php53u-pecl-apc.x86_64 3.1.9-4.ius.el5

php53u-pear.noarch 1:1.9.4-3.ius.el5

Can someone provide some info as to what I should be pursueing. I seem to have hit a dead end.

Thank you.

    php -version
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/http.so' - /usr/lib64/php/modules/http.so: undefined symbol: php_set_error_handling in Unknown on line 0
    PHP 5.3.13 (cli) (built: May 8 2012 15:39:23)
    Copyright (c) 1997-2012 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

    Did you ever try running any PHP from the command line before PECL was enabled? I've installed PHP and Apache and such before and have thought that everything is great -- and the web server PHP works fine without errors -- but then I try to run PHP from the command line and get this error.

    This error looks to me like the php.ini file for the command line specifies a library that you either don't have or your PHP folder contains an .so file that is incompatible with your version of PHP.

    What happens when you list the contents of /usr/lib64/php/modules/ ?

      Write a Reply...