开发者

How to upgrade PHP with PHP-FPM

开发者 https://www.devze.com 2023-01-21 06:51 出处:网络
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?

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 开发者_如何学Pythonbe deleted?


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


Did you restart your http server? It could still be using an in-memory instance of the old PHP 5.2.12 library.

0

精彩评论

暂无评论...
验证码 换一张
取 消