0
pecl install amqp
のphp amqp拡張をインストールし、extension=amqp.so
をphp.iniに追加しました。しかし、code from rabbitmq's tutorialを実行すると、まだエラーが発生します。どうしましたか?PHP致命的なエラー:クラス 'PhpAmqpLib Connection AMQPStreamConnection'が見つかりません
[[email protected]_67_229_centos rabbit_mq_test]# php phpinfo.php | grep amqp
PHP Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /data/roxma/rabbit_mq_test/phpinfo.php on line 2
amqp
amqp.auto_ack => 0 => 0
amqp.channel_max => 256 => 256
amqp.connect_timeout => 0 => 0
amqp.frame_max => 131072 => 131072
amqp.heartbeat => 0 => 0
amqp.host => localhost => localhost
amqp.login => guest => guest
amqp.password => guest => guest
amqp.port => 5672 => 5672
amqp.prefetch_count => 3 => 3
amqp.read_timeout => 0 => 0
amqp.timeout => no value => no value
amqp.vhost =>/=>/
amqp.write_timeout => 0 => 0
[[email protected]_67_229_centos rabbit_mq_test]# php send.php
PHP Fatal error: Class 'PhpAmqpLib\Connection\AMQPStreamConnection' not found in /data/roxma/rabbit_mq_test/send.php on line 6