配置PHP 2M限制

配置PHP 2M限制

编译安装PHP后,把编译目录中的php.ini-development文件,复制到/usr/local/bin/php -i 中写的ini目录里并改名为php.ini,然后编辑文件:

upload_max_filesize = 500M ;上传文件上限 
post_max_size = 500M ;上传文件上限默认大小为8M
max_execution_time = 1800 ; Maximum execution time of each script, in seconds脚本最大执行时间
max_input_time = 1800 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)内存上限 

发表评论