php.ini
/usr/local/etc/php/7.x/
memory_limit:
subl /usr/local/etc/php/7.4/conf.d/php-memory-limits.ini
add to file:
; Defaullt is 30
max_execution_time = 300
; Max memory per instance
memory_limit = 512M
;The maximum size of an uploaded file.
upload_max_filesize = 512M
; Sets max size of post data allowed.
; Changes to this will also need to be reflected in Nginx with client_max_body_size
; This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize
post_max_size = 512M
xdebug.ini
file locations:
/usr/local/etc/php/7.x/
/usr/local/Cellar/php@7.2/7.2.27/pecl/20170718/xdebug.so
set root password
ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';
database files:
cd /usr/local/var/mysql
my.cnf:
/usr/local/etc/my.cnf
#
# This group is read both by the client and the server
# use it for options that affect everything
#
[client-server]
[mysqld]
key_buffer_size = 32M
max_allowed_packet = 32M
[mysqldump]
max_allowed_packet = 32M
#
# include *.cnf from the config directory
#
!includedir /usr/local/etc/my.cnf.d
Valet Link
cd /usr/local/share/phpmyadmin
valet link phpmyadmin
Secret
/usr/local/etc/phpmyadmin.config.inc.php # line 18
$cfg['blowfish_secret']
Error log:
/Users/USERNAME/.config/valet/Log/nginx-error.log
Too many headers sent - Drupal 8
Nginx / Valet - 502 Bad Gateway - upstream sent too big header
Files:
subl ~/.config/valet/Nginx/all.conf /usr/local/etc/nginx/fastcgi_params
Create ~/.config/valet/Nginx/all.conf with this:
proxy_buffer_size 1024k;
proxy_buffers 4 1024k;
proxy_busy_buffers_size 1024k;
Append this to /usr/local/etc/nginx/fastcgi_params
fastcgi_buffer_size 1024k;
fastcgi_buffers 4 1024k;
fastcgi_busy_buffers_size 1024k;
cURL error 6
cURL error 6: Could not resolve: site.test (Domain name not found)
- System Preferences -> Network -> Advanced -> DNS
- Add 127.0.0.1 to DNS entries AT THE TOP.
MultiSite
Add driver
https://gist.github.com/frankyonnetti/d701dfec4ec86da400ccd9ad01147719
laravel/valet#375 (comment)
file locations:
/usr/local/etc/nginx/valet/valet.conf
~/.config/valet/Nginx/server.test
Add /public on the files paths inside your config file, and run valet restart:
location = /public/favicon.ico { access_log off; log_not_found off; }
location = /public/robots.txt { access_log off; log_not_found off; }