
Laravel Valet을 위해 Mac에서 PHP.ini 구성을 변경하는 방법
Mac에서 로컬 개발을 위해 Laravel Valet를 사용하는 경우 필요에 맞게
최근에 PHP Monitor 및 다른 구성에 대한 시각적 정보를 제공하는 구성 방법Laravel Valet에 대해 썼습니다. 또한 로컬 PHP 구성 파일을 허용할 수 있습니다
기본적으로 모든 PHP 버전은
현재 활성 PHP 버전이
여기에서 기본 구성 파일인
기본
PHP를 다시 시작하고 변경 사항을 확인하십시오.
php.ini
구성을 변경해야 할 수 있습니다. memory_limit
, max_execution_time
등이 증가할 수 있습니다.If you want to configure/setup Laravel Valet on Mac M1 then you can follow my previous article .
최근에 PHP Monitor 및 다른 구성에 대한 시각적 정보를 제공하는 구성 방법Laravel Valet에 대해 썼습니다. 또한 로컬 PHP 구성 파일을 허용할 수 있습니다
php.ini
.기본적으로 모든 PHP 버전은
/usr/local/etc/php
에 있습니다.현재 활성 PHP 버전이
7.3
이고 max_execution_time
값을 변경하려고 한다고 가정해 보겠습니다. 다음 위치로 이동하십시오. /usr/local/etc/php/7.3
여기에서 기본 구성 파일인
php.ini
파일을 찾을 수 있습니다. 하지만 php-memory-limits.ini
폴더 안에 또 다른 파일conf.d
이 있습니다. 기본적으로 이 채우기의 구성은 다음과 같습니다.; 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
기본
php.ini
파일 구성을 재정의합니다.max_execution_time
의 경우 원하는 값으로 이 파일에 추가할 수 있으며 전체 파일은 다음과 같습니다.; 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
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 1800
PHP를 다시 시작하고 변경 사항을 확인하십시오.