WordPress.org

Ready to get started?Download WordPress

Forums

Theme I want to install exceeds the upload_max_filesize directive in php.ini. (5 posts)

  1. nate99
    Member
    Posted 11 months ago #

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

  2. ClaytonJames
    Member
    Posted 11 months ago #

    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

  3. nate99
    Member
    Posted 11 months ago #

    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.

  4. nate99
    Member
    Posted 11 months ago #

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

  5. ClaytonJames
    Member
    Posted 11 months ago #

    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.

Reply

You must log in to post.

About this Topic