Last active
December 5, 2015 08:28
-
-
Save igara/30a8bf6437e431819bed to your computer and use it in GitHub Desktop.
[メモ]phpenvとphp-buildを用いたPHPバージョンアップ ref: http://qiita.com/igara/items/e2374f3ac2a46335a2a3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# php-fpmプロセスを調べる | |
ps -ef | |
php-fpm: master process (/root/. | |
nobody 23272 23271 0 16:09 ? 00:00:00 | |
↑これがphp-fpmのプロセスで23272がプロセスID | |
php-fpm: pool www | |
nobody 23273 23271 0 16:09 ? 00:00:00 php-fpm: pool www | |
root 23274 2 0 16:09 ? 00:00:00 [kworker/0:2] | |
root 23322 2 0 16:14 ? 00:00:00 [kworker/0:0] | |
kill 23271 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd .phpenv/plugins/php-build/ | |
git reset --hard | |
git pull | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
phpenv install 7.0.0 | |
phpenv global 7.0.0 | |
phpenv local 7.0.0 | |
phpenv rehash | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 設定ファイルの適応 | |
cd /root/.phpenv/versions/7.0.0/etc/ | |
cp php-fpm.conf.default php-fpm.conf | |
cd /root/.phpenv/versions/7.0.0/etc/php-fpm.d/ | |
cp www.conf.default www.conf | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/.phpenv/versions/7.0.0/sbin/php-fpm & | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment