Documentation for macOS
#Changing PHP settings
The values that most developers change are the memory limit and the max upload size. You can modify them in the settings and don't need to go deep into configuration files.
Herd gives you easy access to the PHP configuration files on your machine, the easiest way to get to the file is to select the php.ini directory from the context menu of the settings.
Each PHP version has its own php.ini
file at ~/Library/Application Support/Herd/config/php/<version>/php.ini
.
You can edit this file to change or add PHP settings for a specific PHP version.
All saved changes are immediately available in the CLI, but you need to restart all Herd services to apply the changes to HTTP requests via nginx.
You can restart all services by clicking "Stop all" and then "Start all" in the Herd dropdown menu in the menu bar – it just takes 1-2 seconds. If a service does not restart properly, or you believe that there is a stale process still running with old settings, you can press the Option
key when the menu is open and select Force stop all
.
Alternatively, you can use the herd restart
command in the terminal.
herd restart