SMSM
SMSM

Reputation: 1529

rabbitmq error when connect

i got this error when i try to connect using php-amqp: Fatal error: Class 'AMQPConnection' not found in

$credentials =array('host' => 'localhost','port' => 5672);
$cnn = new AMQPConnection($credentials);
$cnn->connect();

Upvotes: 4

Views: 2630

Answers (1)

Charles
Charles

Reputation: 51421

It looks like you don't have the AMQP PECL extension installed. That PECL extension is not a default part of PHP, so you'll need to compile and install it using the pecl tool.

Upvotes: 6

Related Questions