2012-09-10 35 views
0

我在我的Debian Squeeze服務器上使用編譯和安裝的AMQP連接到我的RabbitMQ服務器。 我使用一個類中的下面的命令,其中我實例:PHP AMQP內部服務器錯誤

$this->_amqpConnection = new AMQPConnection($arrRmqConfig); 
$this->_amqpConnection->connect(); 

// creating the amqp channel is sufficient to throw the errors 
$this->_amqpChannel = new AMQPChannel($this->_amqpConnection); 

$this->_amqpExchange = new AMQPExchange($this->_amqpChannel); 
$this->_amqpExchange->setName($strExchange); 

$this->_amqpExchange->publish($strMessage, 'dco.marker', AMQP_MANDATORY); 

我得到的lighttpd錯誤消息和一個HTTP-500響應:

2012-09-10 17:43:01: (mod_fastcgi.c.2568) unexpected end-of-file (perhaps the fastcgi process died): pid: 11358 socket: unix:/var/tmp/sockets/php-fastcgi.socket11050-99 
2012-09-10 17:43:01: (mod_fastcgi.c.3356) response not received, request sent: 1002 on socket: unix:/var/tmp/sockets/php-fastcgi.socket11050-99 for /index.php?, closing connection 

出版消息和調試代碼工作中。我想知道爲什麼程序運行到最後,但仍然產生內部服務器錯誤。

任何人都可以重現此或有一個想法?

感謝

+0

你缺少一個;在你的最後一行......這可能是問題嗎? – kzhen

+0

感謝您的信息,但那只是一個複製和粘貼錯誤 – thesonix

回答

0

似乎是一個較新的版本固定他的問題