Advertisement
kissarat

brew-php-output.txt

Feb 26th, 2018
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.11 KB | None | 0 0
  1. Warning: The post-install step did not complete successfully
  2. You can try again using `brew postinstall homebrew/php/php72`
  3. ==> Caveats
  4. The php.ini file can be found in:
  5.     /usr/local/etc/php/7.2/php.ini
  6.  
  7. ✩✩✩✩ Extensions ✩✩✩✩
  8.  
  9. If you are having issues with custom extension compiling, ensure that you are using the brew version, by placing /usr/local/bin before /usr/sbin in your PATH:
  10.  
  11.       PATH="/usr/local/bin:$PATH"
  12.  
  13. PHP72 Extensions will always be compiled against this PHP. Please install them using --without-homebrew-php to enable compiling against system PHP.
  14.  
  15. ✩✩✩✩ PHP CLI ✩✩✩✩
  16.  
  17. If you wish to swap the PHP you use on the command line, you should add the following to ~/.bashrc, ~/.zshrc, ~/.profile or your shell's equivalent configuration file:
  18.  export PATH="$(brew --prefix homebrew/php/php72)/bin:$PATH"
  19.  
  20. ✩✩✩✩ FPM ✩✩✩✩
  21.  
  22. To launch php-fpm on startup:
  23.    mkdir -p ~/Library/LaunchAgents
  24.    cp /usr/local/opt/php72/homebrew.mxcl.php72.plist ~/Library/LaunchAgents/
  25.    launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php72.plist
  26. export PATH="/usr/local/sbin:/usr/local/bin:$PATH"
  27.  
  28. The control script is located at /usr/local/opt/php72/sbin/php72-fpm
  29.  
  30. OS X 10.8 and newer come with php-fpm pre-installed, to ensure you are using the brew version you need to make sure /usr/local/sbin is before /usr/sbin in your PATH:
  31.  
  32.  PATH="/usr/local/sbin:$PATH"
  33.  
  34. You may also need to edit the plist to use the correct "UserName".
  35.  
  36. Please note that the plist was called 'homebrew-php.josegonzalez.php72.plist' in old versions of this formula.
  37.  
  38. With the release of macOS Sierra the Apache module is now not built by default. If you want to build it on your system you have to install php with the --with-httpd option. See  brew options php72 for more details.
  39.  
  40. By 31st March 2018 we will deprecate and archive the PHP tap.
  41. Some of the formulae will be migrated to homebrew-core.
  42.  
  43. For more details, see https://github.com/Homebrew/homebrew-php/issues/4721
  44.  
  45. To have launchd start homebrew/php/php72 now and restart at login:
  46.  brew services start homebrew/php/php72
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement