2012-09-10 34 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

似乎是一个较新的版本固定他的问题