Nginx + PHP-FPM + mariadb (다중 조합)

installation

brew install nginx php@7.4 php@7.3 mariadb mcrypt

brew services start php@7.4

brew services start php@7.3

pecl install xdebug

pecl install redis

pecl install mcrypt

reset mariadb root password

sudo mariadb-secure-installation

Change PHP-FPM configration

  1. vim /usr/local/etc/php/7.4/php-fpm.d/www.conf

    1. change Listen
    2. listen = 127.0.0.1:9000 ⇒ 127.0.0.1:9001
      1. 9000 포트는 xdebug 디폴트 포트
  2. vim /usr/local/etc/php/7.3/php-fpm.d/www.conf

    1. change Listen
    2. listen = 127.0.0.1:9000 ⇒ 127.0.0.1:9002
      1. 9000 포트는 xdebug 디폴트 포트