• I’ve setup wordpress locally on xammp by creating a folder wp with wordpress in xampp/htdocs so xampp/htdocs/wp and successfully got it running.
    I’m trying to upload a theme but I get the error The uploaded file exceeds the upload_max_filesize directive in php.ini.

    The file php.ini was not in wp-admin I’ve created one with

    upload_max_filesize = 64M
    post_max_size = 64M
    max_execution_time = 300

    I’ve tried also using the plugin https://wordpress.org/plugins/increase-upload-max-filesize/

    and on tools > Upload Max Filesize

    Has the details below, it was creating php.in in xampp/htdocs but still would not recognize the changes have taken effect.

    Increase Upload Max Filesize
    Your Settings Before Running The Plugin:

    Your upload_max_filesize was 2M.
    Your post_max_size was 8M.

    Current Status:

    Your upload_max_filesize is 2M.
    Your post_max_size is 8M.

    Please allow some time for your server to recognize any changes. You can refresh this page in a few minutes to see if any changes have been made. Please note that changes may have already been made, but you may have to clear your cache to see them here.

    You may deactivate the plugin once your upload_max_filesize is at least 32M.

Viewing 1 replies (of 1 total)
  • The location of your php.ini file on Windows should be xampp/php/php.ini, the file doesn’t belong in your wp-admin folder as it’s not part of your WordPress installation, it’s a server configuration file.

    php.ini location using XAMPP

    Hope this helps.

Viewing 1 replies (of 1 total)

The topic ‘Setting Upload Limit’ is closed to new replies.