Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

beanstalkd driver configuration error in laravel app

Tags:

php

queue

laravel

I am trying to use beanstalkd as the queue driver for my laravel app. I am getting this error when I am trying to push something on the queue.

Pheanstalk_Exception_ConnectionException
Socket error 111: Connection refused (connecting to localhost:11300)

Please note that in 'queue.php' I have just changed the default driver to 'beanstalkd' but haven't changed any settings for the driver. The settings for the driver are as follows-

'beanstalkd' => array(
            'driver' => 'beanstalkd',
            'host'   => 'localhost',
            'queue'  => 'default',
        ),

Please help me with this.

like image 200
halkujabra Avatar asked Apr 22 '14 07:04

halkujabra


1 Answers

Figured it out. Did these two things -

$ sudo vim /etc/default/beanstalkd
> START yes     # uncomment

$ sudo service beanstalkd start
# Alternatively: /etc/init.d/beanstalkd start

Got it from this link - http://fideloper.com/ubuntu-beanstalkd-and-laravel4

like image 159
halkujabra Avatar answered Sep 21 '22 02:09

halkujabra