我试图在我的服务器上上传30MB文件,它无法正常工作.
当我上传30MB文件时,页面加载" 找不到页面 "
当我上传一个3MB的文件时,我收到了" 413请求实体太大 "的nginx/0.6.32
我试图找到nginx所以我可以增加" client_max_body_size ",但我无法找到我的服务器上安装的nginx.我甚至试过跑:
vi /etc/nginx/nginx.conf
Run Code Online (Sandbox Code Playgroud)
要么
vi /usr/local/nginx/conf/nginx.conf
Run Code Online (Sandbox Code Playgroud)
检查配置文件是否存在,但我无法在我的服务器上找到它.
无论如何要解决这个问题?或者我必须在我的服务器上安装nginx.
编辑:
我在php.ini文件中做了所有必要的更改,
post_max_size 128M
upload_max_filesize 100M
memory_limit 256M
Run Code Online (Sandbox Code Playgroud)
谢谢,Raju