PHP Gearman安装 [英] PHP Gearman installation
问题描述
我一直在尝试整理适用于php的gearman扩展程序,但没有任何问题是正确的.我已尝试按照网站上的说明安装gearman-1.1.2. 安装减速器
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
感谢这篇很棒的文章,因为安装过程很顺利.但是在重新启动apache2并尝试输入php命令后,我得到的是这样的:
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
还尝试了phpinfo(),但Gearman似乎尚未启用. Atlast发现gearman.so尚未复制到/usr/lib/php5/20121212,但是复制后状态仍然没有更改.
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.
请帮帮我.
预先感谢.
推荐答案
很抱歉,我这个模糊的问题是一个愚蠢的错误.我使用
Sorry for my vague question it was a silly mistake. I upgraded my gearman package by using
pecl upgrade gearman
作为根.现在工作正常.
pecl upgrade gearman
as root. And now it is working fine.
这篇关于PHP Gearman安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!