Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

freel's avatar
Level 8

ubuntu error message extension missing

Hello, I am installing package pusher/pusher-php-server and getting error. Please see below. Can someone explain what is the problem. I don't have any idea what kind of problem is it. What extention i need to enable?

composer require pusher/pusher-php-server
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_curl.dll' - /usr/lib/php/20151012/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/curl.so' - /usr/lib/php/20151012/curl.so: undefined symbol: zend_unset_property in Unknown on line 0
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^2.6 for pusher/pusher-php-server
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - pusher/pusher-php-server v2.6.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - pusher/pusher-php-server 2.6.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - pusher/pusher-php-server 2.6.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - Installation request for pusher/pusher-php-server ^2.6 -> satisfiable by pusher/pusher-php-server[2.6.1, 2.6.2, v2.6.0].

  To enable extensions, verify that they are enabled in those .ini files:
    - /etc/php/7.0/cli/php.ini
    - /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
    - /etc/php/7.0/cli/conf.d/10-opcache.ini
    - /etc/php/7.0/cli/conf.d/10-pdo.ini
    - /etc/php/7.0/cli/conf.d/15-xml.ini
    - /etc/php/7.0/cli/conf.d/20-bz2.ini
    - /etc/php/7.0/cli/conf.d/20-calendar.ini
    - /etc/php/7.0/cli/conf.d/20-ctype.ini
    - /etc/php/7.0/cli/conf.d/20-curl.ini
    - /etc/php/7.0/cli/conf.d/20-dom.ini
    - /etc/php/7.0/cli/conf.d/20-exif.ini
    - /etc/php/7.0/cli/conf.d/20-fileinfo.ini
    - /etc/php/7.0/cli/conf.d/20-ftp.ini
    - /etc/php/7.0/cli/conf.d/20-gd.ini
    - /etc/php/7.0/cli/conf.d/20-gettext.ini
    - /etc/php/7.0/cli/conf.d/20-iconv.ini
    - /etc/php/7.0/cli/conf.d/20-intl.ini
    - /etc/php/7.0/cli/conf.d/20-json.ini
    - /etc/php/7.0/cli/conf.d/20-mbstring.ini
    - /etc/php/7.0/cli/conf.d/20-mcrypt.ini
    - /etc/php/7.0/cli/conf.d/20-mysqli.ini
    - /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
    - /etc/php/7.0/cli/conf.d/20-phar.ini
    - /etc/php/7.0/cli/conf.d/20-posix.ini
    - /etc/php/7.0/cli/conf.d/20-readline.ini
    - /etc/php/7.0/cli/conf.d/20-shmop.ini
    - /etc/php/7.0/cli/conf.d/20-simplexml.ini
    - /etc/php/7.0/cli/conf.d/20-sockets.ini
    - /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
    - /etc/php/7.0/cli/conf.d/20-sysvsem.ini
    - /etc/php/7.0/cli/conf.d/20-sysvshm.ini
    - /etc/php/7.0/cli/conf.d/20-tokenizer.ini
    - /etc/php/7.0/cli/conf.d/20-wddx.ini
    - /etc/php/7.0/cli/conf.d/20-xmlreader.ini
    - /etc/php/7.0/cli/conf.d/20-xmlwriter.ini
    - /etc/php/7.0/cli/conf.d/20-xsl.ini
    - /etc/php/7.0/cli/conf.d/20-zip.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, deleting ./composer.json.

Thank you for help.

0 likes
14 replies
freel's avatar
Level 8

As I understand it need curl extention. I uncommeted it in php.ini

but still getting same error ...

aabdyli's avatar

Try first installing as an extention :

sudo apt-get install php-curl

then try to install your package.

3 likes
MalaniDerrick's avatar
  1. sudo apt-get install php5-curl

  2. sudo service apache2 restart

  3. sudo service php5-fpm restart

Please System restart.

freel's avatar
Level 8

Done. still getting same error.

freel's avatar
Level 8

So maybe it is somewhere disabled? or I need to uncomment any other library?

ssomenzi's avatar

Not sure but, looking at the first warning looks like your php.ini is trying to load a .dll extension file. If your server is a Linux one please check if you have

extension=php_curl.dll

in your php.ini and if yes replace it with

extension=curl.so

Please also check your extension_dir directive in php.ini to be sure it's looking in the right place.

After that restart your web server.

freel's avatar
Level 8

Bit diffrient error:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/curl.so' - /usr/lib/php/20151012/curl.so: undefined symbol: zend_unset_property in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/curl.so' - /usr/lib/php/20151012/curl.so: undefined symbol: zend_unset_property in Unknown on line 0

How I should know what is the extention_dir ?

zachleigh's avatar

What exact commands did you run to install it? What version of php are you using?

freel's avatar
Level 8
sudo apt-get install php-curl

PHP 7.0

1 like
jimmck's avatar

@freel Do you have 2 versions of PHP? Where did the install go?

try ----->

which php

from the command line and go to the php.ini off that.

apt-get should have done all the setup.

freel's avatar
Level 8

I was using 5.6 later upgraded to 7.0.

freel's avatar
freel
OP
Best Answer
Level 8
apt-get dist-upgrade

Solved my problem.

TKay's avatar

In may case i faced ...

In Pusher.php line 221: There is missing dependant extensions - please ensure both      cURL and JSON modules are installed

I have figured out I changed system php interpreter version, So...

Solved by running:

> sudo apt-get install php-curl php-json
1 like

Please or to participate in this conversation.