近日将论坛从VBB2升级到VBB3,将上传附件大小设置为2M,可每次上传超过500K的附件都会出错,而之前使用VBB2时却正常。
仔细检查php.ini,其中的upload_max_filesize=8m,没有任何问题,然后将其中的:
max_execution_time = 30 max_input_time = 60memory_limit = 8M
数值分别调大到120、180、32M,还是没有任何作用,令人非常头痛!
然后开始怀疑是http.conf配置文件出现的问题,但从头到尾检查了一遍也没发现任何异相,此问题智能搁置。
有一天需要给服务器加入一个子域名,去更改/etc/httpd/conf.d/文件夹下的access.conf文件,发现此文件夹下还有一个php.conf,赶忙打开,里面是如下内容:
## PHP is an HTML-embedded scripting language which attempts to make it# easy for developers to write dynamically generated webpages.#LoadModule php4_module modules/libphp4.soAddType application/x-httpd-php php .php3## Cause the PHP interpreter handle files with a .php extension.# SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 524288## Add index.php to the list of files that will be served as directory# indexes.#DirectoryIndex index.php
关注微信公众号获取更多VSCode编程信息,定时发布干货文章
全部评论