【问题标题】:PHP AMQP Internal Server ErrorPHP AMQP 内部服务器错误
【发布时间】:2012-09-10 15:59:46
【问题描述】:

我在我的 Debian Squeeze 服务器上使用已编译和安装的 AMQP 来连接到我的 RabbitMQ 服务器。 我正在实例化的类中使用以下命令:

$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 

正在发布消息和调试代码。我想知道为什么程序运行到最后但仍然产生内部服务器错误。

任何人都可以复制这个或有一个想法吗?

谢谢

【问题讨论】:

  • 你缺少一个 ;在你的最后一行......这可能是问题吗?
  • 感谢您的信息,但这只是复制和粘贴错误

标签: php rabbitmq amqp


【解决方案1】:

似乎更新的版本解决了他的问题

【讨论】:

    猜你喜欢
    • 2013-07-02
    • 2013-07-31
    • 1970-01-01
    • 2014-06-08
    • 2018-01-15
    • 2010-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多