Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP not loading http.so

I updated my Mac to OS X Mavericks (10.9) and have had to setup PHP again, along with PECL OAuth.

When I verify my install with the command php -v, I am getting an error:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20100525/http.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20100525/http.so, 9): Symbol not found: _php_persistent_handle_abandon Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20100525/http.so Expected in: flat namespace in /usr/lib/php/extensions/no-debug-non-zts-20100525/http.so in Unknown on line 0 PHP 5.4.17 (cli) (built: Aug 25 2013 02:03:38)

Has anyone else come across this? Any idea what the issue could be?

like image 387
rosst400 Avatar asked Jan 04 '14 11:01

rosst400


People also ask

Why is my PHP page not loading?

The most common reason for a blank page is that the script is missing a character. If you left out a ' or } or ; somewhere, your PHP won't work. You don't get an error; you just get a blank screen.

Why PHP is not working in HTML?

The answer is in fact so simple you would want to bang your head: Simply change the file extension from ". html" to ". php"!!! Remember that you can build a webpage entirely out of PHP and all JavaScript and stuff built off JavaScript like, JQuery, bootstrap, etc will work.


2 Answers

I worked it out....had to install pecl_http-1.7.6.

# 1. Uninstall the current version with this command:
pecl uninstall pecl_http

# 2. Install an older version, at least until latest is figured out on Mac OSX 10.8+
pecl install pecl_http-1.7.6
like image 138
rosst400 Avatar answered Oct 14 '22 04:10

rosst400


I have fixed this issue by editing php.ini.

My pecl install pecl_http mixed it up and put few extension= lines on top of my php.ini in wrong order. The http.so has to be below propro.so and raphf.so according to dependencies.

like image 28
Ondrej Henek Avatar answered Oct 14 '22 05:10

Ondrej Henek