Skip to content

Instantly share code, notes, and snippets.

@jasperf
Last active Apr 23, 2021
Embed
What would you like to do?
PHPMyAdmin on PHP 7.4 with Homebrew on macOS
~ brew install phpmyadmin
Updating Homebrew...
==> Downloading https://files.phpmyadmin.net/phpMyAdmin/5.1.0/phpMyAdmin-5.1.0-all-
######################################################################## 100.0%
==> Caveats
To enable phpMyAdmin in Apache, add the following to httpd.conf and
restart Apache:
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
The configuration file is /usr/local/etc/phpmyadmin.config.inc.php
==> Summary
🍺 /usr/local/Cellar/phpmyadmin/5.1.0: 3,148 files, 51.2MB, built in 17 seconds
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /Users/jasper/Library/Caches/Homebrew/adns--1.6.0.catalina.bottle.tar.gz... (282.6KB)
Removing: /Users/jasper/Library/Caches/Homebrew/automake--1.16.3.catalina.bottle.tar.gz... (967KB)
Removing: /Users/jasper/Library/Caches/Homebrew/bdw-gc--8.0.4.catalina.bottle.tar.gz... (511.7KB)
Removing: /Users/jasper/Library/Caches/Homebrew/c-ares--1.17.1.catalina.bottle.tar.gz... (162.9KB)
Removing: /Users/jasper/Library/Caches/Homebrew/css-crush--3.0.1.tar.gz... (95.0KB)
Removing: /Users/jasper/Library/Caches/Homebrew/curl--7.75.0.catalina.bottle.tar.gz... (1.2MB)
Removing: /Users/jasper/Library/Caches/Homebrew/fping--5.0.catalina.bottle.tar.gz... (30.6KB)
Removing: /Users/jasper/Library/Caches/Homebrew/freetds--1.2.18.catalina.bottle.tar.gz... (2.9MB)
Removing: /Users/jasper/Library/Caches/Homebrew/freetype--2.10.4.catalina.bottle.tar.gz... (901.3KB)
Removing: /Users/jasper/Library/Caches/Homebrew/glib--2.66.7.catalina.bottle.tar.gz... (6.2MB)
Removing: /Users/jasper/Library/Caches/Homebrew/gmp--6.2.1.catalina.bottle.tar.gz... (1MB)
Removing: /Users/jasper/Library/Caches/Homebrew/gnutls--3.6.15.catalina.bottle.tar.gz... (3.2MB)
Removing: /Users/jasper/Library/Caches/Homebrew/go-bindata--3.22.0.catalina.bottle.tar.gz... (1.9MB)
Removing: /Users/jasper/Library/Caches/Homebrew/iproute2mac--1.3.0.tar.gz... (7.7KB)
Removing: /Users/jasper/Library/Caches/Homebrew/jpegoptim--1.4.6.catalina.bottle.tar.gz... (23.9KB)
Removing: /Users/jasper/Library/Caches/Homebrew/json-c--0.15.catalina.bottle.tar.gz... (91KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libassuan--2.5.4.catalina.bottle.tar.gz... (157.2KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libiconv--1.16.catalina.bottle.tar.gz... (1.5MB)
Removing: /Users/jasper/Library/Caches/Homebrew/libidn2--2.3.0.catalina.bottle.tar.gz... (233.6KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libksba--1.5.0.catalina.bottle.tar.gz... (167.4KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libpthread-stubs--0.4.catalina.bottle.tar.gz... (3.3KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libtasn1--4.16.0.catalina.bottle.tar.gz... (122.2KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libunistring--0.9.10.catalina.bottle.tar.gz... (1.4MB)
Removing: /Users/jasper/Library/Caches/Homebrew/libusb--1.0.24.catalina.bottle.tar.gz... (159.8KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libx11--1.7.0.catalina.bottle.tar.gz... (2.2MB)
Removing: /Users/jasper/Library/Caches/Homebrew/libxau--1.0.9.catalina.bottle.tar.gz... (28.7KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libxcursor--1.2.0.catalina.bottle.tar.gz... (55.2KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libxdmcp--1.1.3.catalina.bottle.tar.gz... (30.6KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libxext--1.3.4.catalina.bottle.tar.gz... (104.1KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libxfixes--5.0.3.catalina.bottle.tar.gz... (27.3KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libxi--1.7.10.catalina.bottle.tar.gz... (154.7KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libxinerama--1.1.4.catalina.bottle.tar.gz... (19.9KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libxml2--2.9.10_2.catalina.bottle.tar.gz... (2.4MB)
Removing: /Users/jasper/Library/Caches/Homebrew/libxrandr--1.5.2.catalina.bottle.tar.gz... (54.6KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libxrender--0.9.10.catalina.bottle.tar.gz... (47.4KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libxv--1.0.11.catalina.bottle.tar.gz... (37.2KB)
Removing: /Users/jasper/Library/Caches/Homebrew/libyaml--0.2.5.catalina.bottle.tar.gz... (107.4KB)
Removing: /Users/jasper/Library/Caches/Homebrew/nmap--7.91.catalina.bottle.tar.gz... (7MB)
Removing: /Users/jasper/Library/Caches/Homebrew/node--15.12.0.catalina.bottle.tar.gz... (15.1MB)
Removing: /Users/jasper/Library/Caches/Homebrew/node@10--10.24.0_1.catalina.bottle.tar.gz... (14.3MB)
Removing: /Users/jasper/Library/Caches/Homebrew/npth--1.6.catalina.bottle.tar.gz... (23.7KB)
Removing: /Users/jasper/Library/Caches/Homebrew/nvm--0.37.2.tar.gz... (137.6KB)
Removing: /Users/jasper/Library/Caches/Homebrew/oniguruma--6.9.6.catalina.bottle.tar.gz... (437.9KB)
Removing: /Users/jasper/Library/Caches/Homebrew/openssl@1.1--1.1.1j.catalina.bottle.1.tar.gz... (5.4MB)
Removing: /Users/jasper/Library/Caches/Homebrew/p11-kit--0.23.22.catalina.bottle.tar.gz... (715.1KB)
Removing: /Users/jasper/Library/Caches/Homebrew/pcre2--10.36.catalina.bottle.tar.gz... (2.0MB)
Removing: /usr/local/Cellar/php/7.4.2... (515 files, 76.0MB)
Error: Directory not empty @ dir_s_rmdir - /usr/local/Cellar/php/7.4.2
@jasperf

This comment has been minimized.

Copy link
Owner Author

@jasperf jasperf commented Apr 23, 2021

Did work and did not remove PHP 7.4 I still needed which was good. Then I could do a

➜  ~ cd /usr/local/share/phpmyadmin
➜  phpmyadmin valet link
A [phpmyadmin] symbolic link has been created in [/Users/jasper/.config/valet/Sites/phpmyadmin]
@jasperf

This comment has been minimized.

Copy link
Owner Author

@jasperf jasperf commented Apr 23, 2021

Also set $cfg['Servers'][$i]['AllowNoPassword'] = true; at lrwxr-xr-x 1 jasper admin 44B Apr 23 14:42 config.inc.php -> ../../../../../etc/phpmyadmin.config.inc.php as I do not use a password for root on local server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment