PHP Gearman installation

断了今生、忘了曾经 提交于 2019-12-11 22:20:37

问题


i have trying to sort out gearman extension for php for nothing is going correct. I have tried to install gearman-1.1.2 as per the instructions given in the website. Install gearman

Thanks for the great article since the install went on smoothly. But after restarting apache2 and tried to enter php command gives me like this:

$ php
  PHP Warning:  PHP Startup: gearman: Unable to initialize module
  Module compiled with module API=20090626
  PHP    compiled with module API=20121212
  These options need to match
    in Unknown on line 0

And also tried phpinfo() but it seems gearman is not enabled yet. Atlast found gearman.so was not copied to /usr/lib/php5/20121212 but still after copying the state has not been changed yet.

Please help me out .

Thanks in Advance.


回答1:


Sorry for my vague question it was a silly mistake. I upgraded my gearman package by using

pecl upgrade gearman as root. And now it is working fine.



来源:https://stackoverflow.com/questions/19064269/php-gearman-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!