This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| php:macos-installation [2021-10-28] – dcai | php:macos-installation [2021-10-31] (current) – dcai | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== PHP 7.4 macOS installation ===== | ===== PHP 7.4 macOS installation ===== | ||
| + | |||
| + | ==== install packages ==== | ||
| < | < | ||
| - | brew install php@7.4 nginx | + | brew install php@7.4 nginx postgresql@12 |
| # pecl install zip libsodium | # pecl install zip libsodium | ||
| # remove duplicated extension added in / | # remove duplicated extension added in / | ||
| + | brew link php@7.4 | ||
| + | brew link postgresql@12 | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== setup postgres ==== | ||
| + | < | ||
| + | # init db | ||
| + | initdb -D / | ||
| + | # start db | ||
| + | postgres -D ~/ | ||
| + | echo "ALTER USER postgres WITH PASSWORD ' | ||
| </ | </ | ||