安装完 WordPress 默认上传的附件限制为2M 大小, 如果要上传更大的文件需要自己进去系统修改.
ssh 登录 Ubuntu, 然后切换到/etc/php5/apache2目录.
$/etc/php5/apache2$ sudo nano php.ini
找到下面的行修改如下最大允许50M, 文件数量为100, 基本平常也够用了.
; Maximum allowed size for uploaded files. ; http://php.net/upload-max-filesize upload_max_filesize = 50M ; Maximum number of files that can be uploaded via a single request max_file_uploads = 100
然后重启 Apache 服务.
$/etc/php5/apache2$ sudo service apache2 restart