简体   繁体   中英

PHP AMQP Internal Server Error

I'm using the compiled and installed AMQP on my Debian Squeeze server to connect to my RabbitMQ server. I'm using a following commands in a class, which I'm instantiating:

$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);

I get lighttpd error messages and a HTTP-500 response:

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 

Publishing messages and debugging the code is working. I'm wondering why the program runs till the end but still produces an internal server error.

Can anyone reproduce this or has an idea?

thanks

似乎是一个较新的版本,解决了他的问题

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM