---
title: "php wordpress upload_max_size"
author: "marc0658"
date: "2012-08-23T13:33:38Z"
tags: []
categories: ["非技术"]
slug: "php-wordpress-upload-max-size"
draft: false
lastmod: "2012-08-23T13:33:38Z"
id: 1659666
url: "https://marc0658.iteye.com/blog/1659666"
---

### [http://www.dwuser.com/easyrotator/wordpress/upload-limit/](http://www.dwuser.com/easyrotator/wordpress/upload-limit/)

### Recommended Approach: Modify Existing or Create New php.ini File

PHP installations use a special file called `php.ini` to specify configuration values.  If there is already a `php.ini` file in your site's root folder, edit that one.  Otherwise, you'll need to create a new one in the root folder.  (Note that some hosting providers require you to use their control panel to modify the `php.ini` file.)

Once you're editing the `php.ini` file, add the following values at the end of the file:

`upload_max_size = 64M post_max_size = 64M memory_limit = 64M`

Save the file and try loading a page on your site.  If you receive an error about a server misconfiguration, try changing the `64M` value on each line down to `32M` and repeat the test.  If everything goes well, you'll now have a much larger upload limit.  Return to the EasyRotator program and try again to deploy your rotator.