如何使用 PHP-FPM 升级 PHP
我尝试将 PHP 从 5.2.12 升级到 5.2.14 (FreeBSD 7) (通过 make install),但安装后命令行中的“php -v”显示“5.2.14”,而 phpinfo() 显示“5.2.12” 。怎么可能呢?
现在我尝试安装用 PHP-FPM 修补的 PHP,但之前收到一条错误消息,提示“make deinstall”。
现在如何正确安装 PHP?如果我执行“make deinstall”会发生什么?配置文件、扩展名和一些设置会被删除吗?
I tried to upgrade PHP from 5.2.12 to 5.2.14 (FreeBSD 7) (by make install), but after installation 'php -v' in command line shows '5.2.14' and phpinfo() shows '5.2.12'. How can it be?
Now I'm trying to install PHP patched with PHP-FPM, but get an error that says 'make deinstall' before.
How can I properly install PHP now? And what happens if I execute 'make deinstall'? Will config file, extensions and some settings be deleted?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为了升级任何端口,您必须运行
make deinstall
:)整个过程应该如下所示:
make clean &&进行构建&&进行卸载&&重新安装
或简单地使用portupgrade:portupgrade -fR -o lang/php52
In order to upgrade any port you must run
make deinstall
:)Whole procedure should look something like this:
make clean && make build && make deinstall && make reinstall
or simply use portupgrade:portupgrade -fR -o lang/php52
你重启你的http服务器了吗?它可能仍然使用旧 PHP 5.2.12 库的内存实例。
Did you restart your http server? It could still be using an in-memory instance of the old PHP 5.2.12 library.