First update the formulae and Homebrew itself:
brew update
You can now find out what is outdated with:
brew outdated
Upgrade everything with:
brew upgrade
----
brew upgrade --cask --greedy
https://stackoverflow.com/questions/31968664/upgrade-all-the-casks-installed-via-homebrew-cask
----
To remove unused dependencies: brew autoremove
To cleanup: brew cleanup --prune=all
----
brew services start mysql
brew services stop mysql
brew services list
NOTE: brew services is failing to launch httpd.
Try this instead:
sudo /usr/local/bin/httpd -k start
NOTE: The following is necessary to enable php. (copied from install)....
==> Caveats
==> php
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php_module /usr/local/opt/php/lib/httpd/modules/libphp.so
SetHandler application/x-httpd-php
Finally, check DirectoryIndex includes index.php
DirectoryIndex index.php index.html
The php.ini and php-fpm.ini file can be found in:
/usr/local/etc/php/8.3/
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:
/usr/local/opt/php/sbin/php-fpm --nodaemonize