在apache環(huán)境中上傳較大軟件的時候,有時候會出現(xiàn)413錯誤,出現(xiàn)這個錯誤的原因,是因為apache的配置不當造成的,找到apache的配置文件目錄也就是conf目錄,和這個目錄平行的一個目錄叫conf.d打開這個conf.d,里面有一個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.so ## Cause the PHP interpreter handle files with a .php extension.# SetOutputFilter PHPSetInputFilter PHPLimitRequestBody 6550000 ## Add index.php to the list of files that will be served as directory# indexes.#DirectoryIndex index.php
錯誤就發(fā)生在這個LimitRequestBody配置上,將這個的值改大到超過你的軟件大小就可以了
如果沒有這個配置文件請將
SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 6550000
寫到apache的配置文件里面即可。
推薦教程:《PHPCMS教程》
更多關于云服務器,域名注冊,虛擬主機的問題,請訪問西部數(shù)碼官網:m.ps-sw.cn