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

yabasha's avatar
Level 19

Installing pusher-php-server

Hi,

When I'm trying to install composer require pusher/pusher-php-server following the instruction in: https://laravel.com/docs/5.4/broadcasting

When I enter the above command I receive the following:

vagrant@homestead:~/Code/chatapp$ composer require pusher/pusher-php-server Using version ^2.6 for pusher/pusher-php-server ./composer.json has been updated 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.3 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, 2.6.3, v2.6.0].

To enable extensions, verify that they are enabled in your .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-apcu.ini - /etc/php/7.0/cli/conf.d/20-apcu_bc.ini - /etc/php/7.0/cli/conf.d/20-bcmath.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-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-gettext.ini - /etc/php/7.0/cli/conf.d/20-iconv.ini - /etc/php/7.0/cli/conf.d/20-igbinary.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-msgpack.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 - /etc/php/7.0/cli/conf.d/25-memcached.ini - /etc/php/7.0/cli/conf.d/90-blackfire.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.

I tried to install the missing extension: sudo apt-get install php-curl the result: Reading package lists... Done Building dependency tree Reading state information... Done php-curl is already the newest version (1:7.1+49+deb.sury.org~xenial+4). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Please advice,

0 likes
2 replies
tapumandal's avatar

To solve this issue you need to install php-curl

For php5: sudo apt-get install php5-curl

For php7.0: sudo apt-get install php7.0-curl

For php7.1: sudo apt-get install php7.1-curl

3 likes

Please or to participate in this conversation.