본문 바로가기
반응형

Linux3

PHP 업로드 용량 수정 용량 설정 확인 phpinfo.php페이지에서 업로드 용량 설정을 확인합니다. 설정된 용량때문에 업로드가 안되는게 맞다면 php.ini를 수정해야합니다. find / -name php.ini -print php.ini를 찾을 수 없다면 위 명령어를 입력해 php.ini의 위치를 찾습니다 (권한 문제가 있으면 앞에 sudo를 작성 후 입력해줍니다) 업로드 용량 재설정 vi /etc/php.ini 저는 /etc/php.ini 디렉터리에 있어서 vi 에디터로 php.ini파일을 엽니다 upload_max_filesize = 100M # 파일 최대 업로드 용량 post_max_size = 200M # POST요청을 통한 업로드 용량 - upload_max_filesize 보다 크게? memory_limit = .. 2023. 1. 25.
[Nginx 업로드 오류] Failed to load resource: the server responded with a status of 413 (Request Entity Too Large) 오류 발생 Failed to load resource: the server responded with a status of 413 (Request Entity Too Large) nginx의 기본 업로드 크기가 요청보낸 업로드 용량보다 적은 경우입니다 vi /etc/nginx/nginx.conf nginx.conf인 설정파일을 에디터로 열고 (권한 오류가 있으면 명령어 앞에 sudo를 입력해줍니다) 해결 http { client_max_body_size 10M; access_log /var/log/nginx/access.log main; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 4096; in.. 2023. 1. 25.
Nginx php 연동(그누보드 php 다운로드 오류) Welcome to nginx가 index.html로 제대로 작동했지만 index.php등 php파일 경로로 이동하면 다운로드 되는 등 오류가 발생했습니다 vi /etc/nginx/nginx.conf nginx의 기본 설정 파일 nginx.conf 파일을 열어 수정합니다 # For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation: http://nginx.org/ru/docs/ user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /.. 2022. 12. 21.
반응형