幾個php 7跑WordPress要安裝的模組

這幾天重裝一台ubuntu server,裝了nginx、php7.0之後,要跑Wordpress或phpMyAdmin,有幾個php 7.0的模組要安裝,紀錄一下,免得忘記:
sudo apt-get install php7.0-fpm
sudo apt-get install php7.0-gd
sudo apt-get install php7.0-xml
sudo apt-get install php7.0-mbstring
sudo apt-get install php7.0-mysql

PHP、nginx設定中跟上傳檔案大小有關的地方

如果你的 WordPress 上傳檔案處出現“最大上傳檔案大小:2 MB”,是被php限制上傳檔案大小。又或如果nginx server出現HTTP 413 (Request Entity Too Large)錯誤,或 error.log 中出現client intended to send too large body,就是被nginx server上傳檔案大小限制住了。
Continue reading