WordPress.org

Support

Support » Localhost Installs » Theme I want to install exceeds the upload_max_filesize directive in php.ini.

Theme I want to install exceeds the upload_max_filesize directive in php.ini.

  • I don’t have a php.ini file in my wordpress directory. How do I increase the upload limit?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Clayton James
    Participant

    @claytonjames

    It’s a directive found in the php configuration file “php.ini”.

    upload_max_filesize “how to” php.ini

    http://wordpress.org/search/upload_max_filesize+how+to

    [edit] you could also just install the theme manually. Using Themes

    I don’t have a php.ini. I did a search and found a blog post about this and it gave a php.ini file that was modified to accept 64mb and I copied and pasted it into the wp-admin folder and nothing happened.

    Ok, I manually installed the theme. This really is a stupid problem. WordPress should increase the file upload limit.

    Clayton James
    Participant

    @claytonjames

    This really is a stupid problem. WordPress should increase the file upload limit.

    A) It isn’t really a problem. It’s expected behavior.

    B) It isn’t controlled by WordPress. It’s a limitation imposed by the default PHP configuration on every web server.

    C) You can change the 2MB default limit to whatever you want on your own server – I’m assuming that’s the case because you posted this in Localhost Installs – by locating the php.ini configuration file, changing the upload_max_filesize and post_max_size directives to whatever is appropriate for your environment.

    The defaults usually look like this in the php.ini file:

    ; Maximum allowed size for uploaded files.
    ; http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
    upload_max_filesize = 2M
    ; Maximum size of POST data that PHP will accept.
    ; http://www.php.net/manual/en/ini.core.php#ini.post-max-size
    post_max_size = 8M

    Change those, save the changes, restart apache/nginx/whatever.

    [edit]

    I don’t have a php.ini

    Not in your htdocs folder, but there is one in your servers PHP main configuration files.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Theme I want to install exceeds the upload_max_filesize directive in php.ini.’ is closed to new replies.