1. follow tutorial
https://rtcamp.com/tutorials/mac/osx-brew-php-mysql-nginx/
2. install xdebug
brew install php55-xdebug (for php5.5)
3. restart php-fpm
launchctl unload -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php55.plist
launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php55.plist
4. pre-installed php-fpm rename
sudo mv /usr/sbin/php-fpm /usr/sbin/php54-fpm (coz it's php5.4)
sudo ln -s /usr/local/Cellar/php55/5.5.8/sbin/php-fpm /usr/sbin/php-fpm
5. add path to ~/.bash_profile
export PATH=$PATH:/usr/local/sbin
댓글 없음:
댓글 쓰기