Created
March 20, 2017 01:44
-
-
Save powerwlsl/2c2f3af818a1c1cd05ba994e4d4d1002 to your computer and use it in GitHub Desktop.
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
$ brew install homebrew/php/phpmyadmin | |
fatal: Cannot update paths and switch to branch 'stable' at the same time. | |
Did you intend to checkout 'refs/tags/1.1.11' which can not be resolved as commit? | |
fatal: Needed a single revision | |
invalid upstream refs/tags/1.1.11 | |
==> Tapping homebrew/php | |
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-php'... | |
remote: Counting objects: 685, done. | |
remote: Compressing objects: 100% (461/461), done. | |
remote: Total 685 (delta 448), reused 284 (delta 219), pack-reused 0 | |
Receiving objects: 100% (685/685), 282.64 KiB | 431.00 KiB/s, done. | |
Resolving deltas: 100% (448/448), done. | |
Checking connectivity... done. | |
Tapped 656 formulae (699 files, 1.3M) | |
==> Installing phpmyadmin from homebrew/php | |
==> Installing dependencies for homebrew/php/phpmyadmin: libpng, icu4c, libxml2, unixodbc, php70 | |
==> Installing homebrew/php/phpmyadmin dependency: libpng | |
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.29.sierra.bottle.tar.gz | |
######################################################################## 100.0% | |
==> Pouring libpng-1.6.29.sierra.bottle.tar.gz | |
🍺 /usr/local/Cellar/libpng/1.6.29: 26 files, 1.2M | |
==> Installing homebrew/php/phpmyadmin dependency: icu4c | |
==> Downloading https://homebrew.bintray.com/bottles/icu4c-58.2.sierra.bottle.tar.gz | |
######################################################################## 100.0% | |
==> Pouring icu4c-58.2.sierra.bottle.tar.gz | |
==> Caveats | |
This formula is keg-only, which means it was not symlinked into /usr/local. | |
macOS provides libicucore.dylib (but nothing else). | |
Generally there are no consequences of this for you. If you build your | |
own software and it requires this formula, you'll need to add to your | |
build variables: | |
LDFLAGS: -L/usr/local/opt/icu4c/lib | |
CPPFLAGS: -I/usr/local/opt/icu4c/include | |
PKG_CONFIG_PATH: /usr/local/opt/icu4c/lib/pkgconfig | |
==> Summary | |
🍺 /usr/local/Cellar/icu4c/58.2: 242 files, 65M | |
==> Installing homebrew/php/phpmyadmin dependency: libxml2 | |
==> Downloading https://homebrew.bintray.com/bottles/libxml2-2.9.4_2.sierra.bottle.1.tar. | |
######################################################################## 100.0% | |
==> Pouring libxml2-2.9.4_2.sierra.bottle.1.tar.gz | |
==> Caveats | |
This formula is keg-only, which means it was not symlinked into /usr/local. | |
macOS already provides this software and installing another version in | |
parallel can cause all kinds of trouble. | |
Generally there are no consequences of this for you. If you build your | |
own software and it requires this formula, you'll need to add to your | |
build variables: | |
LDFLAGS: -L/usr/local/opt/libxml2/lib | |
CPPFLAGS: -I/usr/local/opt/libxml2/include | |
PKG_CONFIG_PATH: /usr/local/opt/libxml2/lib/pkgconfig | |
==> Summary | |
🍺 /usr/local/Cellar/libxml2/2.9.4_2: 277 files, 9.8M | |
==> Installing homebrew/php/phpmyadmin dependency: unixodbc | |
==> Downloading https://homebrew.bintray.com/bottles/unixodbc-2.3.4.sierra.bottle.1.tar.g | |
######################################################################## 100.0% | |
==> Pouring unixodbc-2.3.4.sierra.bottle.1.tar.gz | |
🍺 /usr/local/Cellar/unixodbc/2.3.4: 43 files, 2.0M | |
==> Installing homebrew/php/phpmyadmin dependency: php70 | |
==> Downloading https://homebrew.bintray.com/bottles-php/php70-7.0.15_8.sierra.bottle.tar | |
######################################################################## 100.0% | |
==> Pouring php70-7.0.15_8.sierra.bottle.tar.gz | |
==> Caveats | |
The php.ini file can be found in: | |
/usr/local/etc/php/7.0/php.ini | |
✩✩✩✩ Extensions ✩✩✩✩ | |
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: | |
PATH="/usr/local/bin:$PATH" | |
PHP70 Extensions will always be compiled against this PHP. Please install them | |
using --without-homebrew-php to enable compiling against system PHP. | |
✩✩✩✩ PHP CLI ✩✩✩✩ | |
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: | |
export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH" | |
✩✩✩✩ FPM ✩✩✩✩ | |
To launch php-fpm on startup: | |
mkdir -p ~/Library/LaunchAgents | |
cp /usr/local/opt/php70/homebrew.mxcl.php70.plist ~/Library/LaunchAgents/ | |
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php70.plist | |
The control script is located at /usr/local/opt/php70/sbin/php70-fpm | |
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: | |
PATH="/usr/local/sbin:$PATH" | |
You may also need to edit the plist to use the correct "UserName". | |
Please note that the plist was called 'homebrew-php.josegonzalez.php70.plist' in old versions | |
of this formula. | |
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-httpd24 option. See brew options php70 for more details. | |
To have launchd start homebrew/php/php70 now and restart at login: | |
brew services start homebrew/php/php70 | |
==> Summary | |
🍺 /usr/local/Cellar/php70/7.0.15_8: 332 files, 38.8M | |
==> Installing homebrew/php/phpmyadmin | |
==> Downloading https://homebrew.bintray.com/bottles-php/phpmyadmin-4.6.6.sierra.bottle.1 | |
######################################################################## 100.0% | |
==> Pouring phpmyadmin-4.6.6.sierra.bottle.1.tar.gz | |
==> Caveats | |
Note that this formula will NOT install mysql. It is not | |
required since you might want to get connected to a remote | |
database server. | |
Webserver configuration example (add this at the end of | |
your /etc/apache2/httpd.conf for instance) : | |
Alias /phpmyadmin /usr/local/share/phpmyadmin | |
<Directory /usr/local/share/phpmyadmin/> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
<IfModule mod_authz_core.c> | |
Require all granted | |
</IfModule> | |
<IfModule !mod_authz_core.c> | |
Order allow,deny | |
Allow from all | |
</IfModule> | |
</Directory> | |
Then, open http://localhost/phpmyadmin | |
More documentation : file:///usr/local/Cellar/phpmyadmin/4.6.6/share/phpmyadmin/doc/ | |
Configuration has been copied to /usr/local/etc/phpmyadmin.config.inc.php | |
Don't forget to: | |
- change your secret blowfish | |
- uncomment the configuration lines (pma, pmapass ...) | |
==> Summary | |
🍺 /usr/local/Cellar/phpmyadmin/4.6.6: 2,255 files, 63.6M |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment