==> php To enable PHP in Apache add the following to httpd.conf and restart Apache: LoadModule php_module /opt/homebrew/opt/php/lib/httpd/modules/libphp.so
Finally, check DirectoryIndex includes index.php DirectoryIndex index.php index.html
The php.ini and php-fpm.ini file can be found in: /opt/homebrew/etc/php/8.2/
To start php now and restart at login: brew services start php Or, if you don't want/need a background service you can just run: /opt/homebrew/opt/php/sbin/php-fpm --nodaemonize (base) abel@abeldeMacBook-Pro ~> /opt/homebrew/opt/php/sbin/php-fpm --nodaemonize [21-Oct-2023 12:44:28] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root [21-Oct-2023 12:44:28] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root [21-Oct-2023 12:44:28] NOTICE: fpm is running, pid 9918 [21-Oct-2023 12:44:28] NOTICE: ready to handle connections ^C[21-Oct-2023 12:53:09] NOTICE: Terminating ... [21-Oct-2023 12:53:09] NOTICE: exiting, bye-bye! (base) abel@abeldeMacBook-Pro ~> brew install nginx
==> Caveats Docroot is: /opt/homebrew/var/www
The default port has been set in /opt/homebrew/etc/nginx/nginx.conf to 8080 so that nginx can run without sudo.
nginx will load all files in /opt/homebrew/etc/nginx/servers/.
To start nginx now and restart at login: brew services start nginx Or, if you don't want/need a background service you can just run: /opt/homebrew/opt/nginx/bin/nginx -g daemon\ off\; ==> Summary 🍺 /opt/homebrew/Cellar/nginx/1.25.2: 26 files, 2.4MB ==> Running `brew cleanup nginx`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).