S
S
Space2015-06-09 12:35:37
Yii
Space, 2015-06-09 12:35:37

Why can't the worker find it?

Class not found when starting worker

php yii gearman/start 1
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/gearman.so' - /usr/lib/php5/20100525/gearman.so: cannot open shared object file: No such file or directory in Unknown on line 0
Success: Process is started, but not daemonized
PHP Fatal error:  Class 'GearmanWorker' not found in /var/www/admin/www/mysite.com/vendor/shakura/yii2-gearman/Worker.php on line 59
PHP Fatal Error 'yii\base\ErrorException' with message 'Class 'GearmanWorker' not found'

in /var/www/admin/www/mysite.com/vendor/shakura/yii2-gearman/Worker.php:59

What could be the problem? I put everything.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
He11ion, 2015-06-09
@He11ion

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/gearman.so' - /usr/lib/php5/20100525/gearman.so: cannot open shared object file: No such file or directory in Unknown on line 0
No, not everything seems to be.

D
Developer Yii, 2015-06-09
@developerYii

what exactly did you set - there the paths to the workers or the file permissions need to be edited (chmod + chown) or there are not enough files or the files are broken, or Linux is not Linux. still need to check - maybe you are in the chroot and then the library file needs to be copied to the chroot

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question