Make sure PHP-FPM is listening on port 9000: Ln -sfv /usr/local/opt/php56/ ~ /Library/LaunchAgents/Īnd start PHP-FPM: launchctl load -w ~ /Library/LaunchAgents/ ~/.zshrcĬreate a folder for our LaunchAgents and symlink the start/stop service: mkdir -p ~ /Library/LaunchAgents # If you use ZSH echo 'export PATH="$(brew -prefix homebrew/php/php56)/sbin:$PATH"' > ~/.zshrcĮcho 'export PATH="/usr/local/sbin:$PATH"' > ~/.zshrc &. If you want to use the PHP command line binary, you need to update the $PATH environment variable of your shell profile: # If you use Bash echo 'export PATH="$(brew -prefix homebrew/php/php56)/sbin:$PATH"' > ~/.bash_profileĮcho 'export PATH="/usr/local/sbin:$PATH"' > ~/.bash_profile &. Give it some time, it can take several minutes. Homebrew is downloading now the PHP-FPM source code and compiling it for you. Now install it with the following arguments: brew install -without-apache - with-fpm - with-mysql php56 Update and upgrade Homebrew formulas: brew update & brew upgradeīecause Homebrew doesn’t have a default formula for PHP-FPM, we need need to add this first: brew tap homebrew/dupes It will also make sure that you will get the latest updates of the installed packages as well, so you don’t need to worry about outdated versions or vulnerable security flaws and exploits either.įirst, we need to download and install Homebrew using the following command: ruby -e "$(curl -fsSL )"Ĭheck for any conflicts or problems (If you have confilcts, sort them out before you continue with this guide): brew doctor brew works the same, just on Mac operating systems. You probably already heard about apt-get or aptitude on Linux distributions to install packages or depencies for a specific application. Now we need to install Homebrew, which is a package manager for OS X. Make sure you use at least Xcode 6.1! Homebrew Set the Command Line Tools to the latest version available, Xcode 6.1 (61A1052c) in my example: Open a new Terminal window and install the Xcode Command Line Tools: xcode-select -installĬonfirm the installation dialog with Install.īack in Xcode, hit ⌘ +, to access the Preferences and navigate to the Locations tab. Xcodeįirst of all, get the latest Xcode version (6.1) via the Mac App Store:Īs soon as you’ve finished the download, open Xcode in your /Applications folder and agree to the licence. The steps are basically the same as for Mavericks. Updated for Yosemite users: Updated the guide for 10.10 since Yosemite is officially released. Below you can read how to setup Nginx, PHP-FPM, MySQL and phpMyAdmin on OS X 10.9 / Mavericks. Perfect time to get rid of the web server/LAMP ( Linux Apache MySQL PHP) stack and replace it with Nginx and PHP-FPM as FastCGI implementation. ApInstall Nginx, PHP-FPM, MySQL and phpMyAdmin on OS X Mavericks or Yosemite Recently I’ve got a new MacBook Pro and decided to set it up from scratch, because I use the same Time Machine backup to migrate from since about four years.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |