Warning: parse_ini_file(/volume1/web/.env): Failed to open stream: No such file or directory in /volume1/web/innstory.com/function_include/config.php on line 33 Warning: Trying to access array offset on value of type bool in /volume1/web/innstory.com/function_include/config.php on line 40 Warning: Trying to access array offset on value of type bool in /volume1/web/innstory.com/function_include/config.php on line 41 Warning: Trying to access array offset on value of type bool in /volume1/web/innstory.com/function_include/config.php on line 42 Warning: Trying to access array offset on value of type bool in /volume1/web/innstory.com/function_include/config.php on line 43 Warning: Trying to access array offset on value of type bool in /volume1/web/innstory.com/function_include/config.php on line 44 Warning: Trying to access array offset on value of type bool in /volume1/web/innstory.com/function_include/config.php on line 45 Warning: Trying to access array offset on value of type bool in /volume1/web/innstory.com/function_include/config.php on line 46 Deprecated: openssl_decrypt(): Passing null to parameter #3 ($passphrase) of type string is deprecated in /volume1/web/innstory.com/private/ukey.php on line 71 修改phpini更改允許上傳檔案的大小|學習與自我成長|innstory
資料載入中

胡言亂語

  • 0
  • 0°C
  • 5 年又 345 天

修改php.ini更改允許上傳檔案的大小

使用vi或vim開啟php.ini
#vim /etc/php/apache2/php.ini

找到以下位置並修改
可以使用?指令做查詢
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 16M ; Maximum amount of memory a script may consume (16MB)
;Maximum size of POST data that PHP will accept.
post_max_size = 8M
;Maximum allowed size for uploaded files.
upload_max_filesize = 2M <--可上傳更大的檔案預設值是2M

使用插入做修改
i

離開vim編輯
:wq <--儲存並且離開

重新啟動 apache
#sudo /etc/init.d/apache2 restart


以上紀錄

 

  • 使用vi編輯php.ini檔案
  • 修改php.ini設定檔的步驟
  • 使用vim編輯器查詢指令
  • 重新啟動Apache伺服器
  • 離開vim編輯器的方法
https://innstory.com/story-修改phpini更改允許上傳檔案的大小-2277

上一篇
 parse_url解析URL

下一篇
如何增加WordPress網站的PHP時間限制? 

發表留言

作者簡介

離不開電腦的宅男


推薦閱讀

作者其他相關類別故事

Deprecated: openssl_decrypt(): Passing null to parameter #3 ($passphrase) of type string is deprecated in /volume1/web/innstory.com/private/ukey.php on line 71
Linux底下查看Mysql版本

Linux底下查看Mysql…

0 5 年又 113 天 1.3K

在OS底下 在Mysql底下 以上紀錄~

Deprecated: openssl_decrypt(): Passing null to parameter #3 ($passphrase) of type string is deprecated in /volume1/web/innstory.com/private/ukey.php on line 71
PHP查詢陣列中是否存在特定字串in_array 函數

PHP查詢陣列中是否存在特定…

0 4 年又 86 天 1.7K

使用函數inarray() ,適用版本(PHP 4, PHP 5, PHP 7, PHP 8) 使...

Deprecated: openssl_decrypt(): Passing null to parameter #3 ($passphrase) of type string is deprecated in /volume1/web/innstory.com/private/ukey.php on line 71
使用PHP取得指定月份最後一天的日期

使用PHP取得指定月份最後一…

0 3 年又 135 天 1.1K

使用PHP要如何抓某個月份的最後一天 例如抓本月份的話可以使用下列範例: 若要抓某個特定月份的最後...