• miloice

    (@miloice)


    I’m trying to upload an mp3 file (file size 5.8mb), but I keep on getting this error message: The uploaded file exceeds the upload_max_filesize directive in php.ini.

    I’ve created a php.ini with the following codes: –

    upload_max_filesize = 64M
    post_max_size = 64M
    max_execution_time = 300

    placed it in both the root folder and wp-admin folder also no use.
    I’ve installed a plugin called “Upload Max File Size” also no use.

    I even tried to delete and deactive the plugin and STILL getting the same error message!

    I googled about having to restart my service? But I’ve no idea how. I’ve been trying to search “Restart service” in my cPanel but don’t have.

    I seriously need help. please ??
    Any feedback will be appreciated, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • MarkRH

    (@markrh)

    First thing I would do is create an info.php in your blog’s directory with the following:

    phpinfo();

    Then when you run that, look for: Loaded Configuration File to see where PHP is loading the INI file from. It will also show you the value for upload_max_filesize

    You may have to get with you webhost to modify the server’s value for this, or configure PHP to allow you to use custom php.ini files.

    Thread Starter miloice

    (@miloice)

    Thanks for the prompt reply. I’ve checked my php info and only realized that it is not reading my custom php.ini file!

    Have contacted my webhost regarding this issue. Thanks for the advice.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error: The uploaded file exceeds the upload_max_filesize directive in php.ini.’ is closed to new replies.