【发布时间】:2013-04-17 19:54:41
【问题描述】:
我是 Gentoo 的新手,我通过 emerge 安装了 nginx\php\fastcgi。之后,我运行 phpinfo() 发现没有 mbstring,然后我通过 set USE=unicode 编译它。然后我在php.ini中看到[mbstring],我通过kill进程重启了php-fpm并运行/etc/init.d/php-fpm -R,但是仍然没有mbstring模块。
然后我检查/etc/init.d/php-fpm -m,也没有。
我现在能做什么?顺便说一句,有什么方法可以重启 php-fpm,我不知道为什么没有/etc/init.d/php-fpm restart。
仅供参考,我做了find / -name mbstring,它的输出:
/usr/local/src/php-5.4.14/ext/mbstring
/usr/lib64/php5.4/include/php/ext/mbstring
运行# /etc/init.d/php-fpm -h,输出:
Usage: php-fpm [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p <prefix>] [-g <pid>] [-c <file>] [-d foo[=bar]] [-y <file>] [-D] [-F]
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-h This help
-i PHP information
-m Show compiled in modules
-v Version number
-p, --prefix <dir>
Specify alternative prefix path to FastCGI process manager (default: /usr/local).
-g, --pid <file>
Specify the PID file location.
-y, --fpm-config <file>
Specify alternative path to FastCGI process manager config file.
-t, --test Test FPM configuration and exit
-D, --daemonize force to run in background, and ignore daemonize option from config file
-F, --nodaemonize
force to stay in foreground, and ignore daemonize option from config file
-R, --allow-to-run-as-root
Allow pool to run as root (disabled by default)
【问题讨论】:
-
php -i | 你得到任何输出了吗? grep mbstring ,如果没有,你的 equery 输出是什么使用 dev-lang/php (需要 gentoolkit,emerge gentoolkit)。
-
你能添加
php -v的输出吗?您的磁盘上似乎有 PHP 5.4 的 mbstring 模块,但我非常怀疑这是最近emerge php安装的版本。