mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
Move PHP-FPM config to separate valet-specific file
This allows the valet configuration to stand separately from the default PHP config. This benefits troubleshooting, makes customization of FPM workers and other settings easer and allows for easier uninstallation. Also renames any previously-existing `www.conf` pool config so it doesn't conflict with Valet nor run unnecessary additional processes.
This commit is contained in:
26
cli/stubs/etc-phpfpm-valet.conf
Normal file
26
cli/stubs/etc-phpfpm-valet.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
; FPM pool configuration for Valet
|
||||
|
||||
[valet]
|
||||
user = VALET_USER
|
||||
group = staff
|
||||
listen = VALET_HOME_PATH/valet.sock
|
||||
listen.owner = VALET_USER
|
||||
listen.group = staff
|
||||
listen.mode = 0777
|
||||
|
||||
|
||||
php_admin_value[memory_limit] = 128M
|
||||
php_admin_value[upload_max_filesize] = 128M
|
||||
php_admin_value[post_max_size] = 128M
|
||||
|
||||
;php_admin_value[error_log] = VALET_HOME_PATH/Log/fpm-php.www.log
|
||||
;php_admin_flag[log_errors] = on
|
||||
|
||||
|
||||
|
||||
pm = dynamic
|
||||
pm.max_children = 5
|
||||
pm.start_servers = 2
|
||||
pm.min_spare_servers = 1
|
||||
pm.max_spare_servers = 3
|
||||
|
||||
Reference in New Issue
Block a user