• Resolved soeezauto

    (@soeezauto)


    WP is telling me the upload size is limited to 8MB, but I checked the server configuration and it is set to 10MB.

    I am in a shared server, so I cannot change that in any case, but I want to be able to use the full 10MB allotted by the server.

    I see a bunch of possible solutions involving php.ini and .htaccess, but they are not applicable as far as I can see.

    I cannot change php.ini as I am in a shared server and as stated the server IS CONFIGURED to 10MB.

    Changes to .htaccess are not possible either, as per this: this . I tried and did get the 500 error.

    So, my question is where and how WP is limiting this to 8MB, and how can I change it to 10MB?

    Thanks

Viewing 15 replies - 1 through 15 (of 16 total)
  • I am in a shared server….

    Nothing you can do but ask the host. You may be limited to 8 megs by them no matter what.

    Thread Starter soeezauto

    (@soeezauto)

    @songdogtech, please read the question: the host limit is 10MB. I am getting the 8MB limit from WP, when I try to upload the video through the video plugin. So, again, this is not a server issue, but WP’s.

    @marc, yes I have seen that before posting this question.
    So:
    – php.ini – it set at 10MB. It is WP who is restraining me at 8MB. If I try to upload the same file via FTP it works fine. But soon as I try to place it into WP, the restriction comes up.

    – .htaccess – not a viable solution. Explanation is already above.

    – WP’s functions.php. I did place the code as advised. Got no changes whatsoever on the restriction.

    So, back to my question: Where is WP getting the 8MB limit from? It is certainly not from the server. I confirmed that the server has the 10MB limit.

    If the server side php.ini configuration correctly allows a 10M upload limit, then it isn’t WordPress itself that’s stopping you.

    I checked the server configuration and it is set to 10MB.

    How did you go about gathering that information, and what is the exact php directive you’re seeing that has the 10M limit attached to it?

    Thread Starter soeezauto

    (@soeezauto)

    @claytonjames, the information is coming from CPanel, PHP configuration. the directive “upload_max_filesize” is set to 10MB.

    And I did confirm that with my host.

    What version of php are you using on your site?

    Thread Starter soeezauto

    (@soeezauto)

    php version is 5.3

    I don’t think it matters. All of their php versions appear to report an upload_max_filesize value of 100M

    http://example.com.customers.tigertech.net/phpinfo-5.3/

    You should probably contact your support group and ask them for assistance in configuring your site php.ini file (if available to your user acocunt) to take advantage of the max size.

    [edit] if it applies to your account: http://support.tigertech.net/php#changing-phpini-jmp

    Thread Starter soeezauto

    (@soeezauto)

    I hear you, but I know what kind of response to expect, which is the same I seem to be getting here: this is not our problem.

    They will tell me, as they already did, that the server is correctly configured to 10MB.

    This is confirmed. I tried to upload a 9MB file through FTP and it worked fine.

    The same file got blocked in WP, saying the limit is 8MB.

    I would have to agree with the host. The problem seems to be WP.

    Everything is pointing in that direction, if only one wants to see.

    A) FTP has no (reasonable) file size restrictions. It is not something that can be compared to the upload function of WordPress.

    B) Nothing, in a default installation of WordPress places a restriction on your upload limit. It is defined by PHP.

    So, you’re indicating that you have done the following:?

    – Logged into your cPanel

    – Navigate to and click “PHP Settings”

    – Added the PHP settings you wish to override in the box in the “Custom php.ini Settings” section

    – Clicked “Save Settings”

    … and it changed nothing?

    What about naming the file “php5.ini”?

    https://www.youtube.com/watch?v=JeIvfNkIyiU

    Thread Starter soeezauto

    (@soeezauto)

    If I place a php5.ini within wp-admin it does nothing. It is not recognized at all.

    Now if I place php.ini within wp-admin it will CHANGE THE LIMIT TO 2MB,
    regardless of which number I place as file size limit.

    This is the sample code within php.ini which I tested with, just changing the file size.

    @ini_set( ‘upload_max_size’ , ’64M’ );
    @ini_set( ‘post_max_size’, ’64M’);

    Thread Starter soeezauto

    (@soeezauto)

    @marc, I had not seen the video you linked to before my last post.

    When trying with the code from that video within php.ini,
    file_uploads = On
    post_max_size = 10M
    upload_max_filesize = 10M

    the following happened:

    – it changes the message with file limit to 10MB ( great, isn’t it?)
    – when I initiate upload of a file with 9.3MB it will accept and start to upload.
    – when the file is fully uploaded it will give the error message below and reject the upload:

    The size of the uploaded file exceeds the directive upload_max_filesize, at php.ini.

    If I try with a file bigger than 10MB, it will not accept it from the start.

    If I change the upload_max_filesize to anything higher than 10MB, when uploading the 9.3MB file, it will have the same behavior.

    Thread Starter soeezauto

    (@soeezauto)

    Ok, I found out what the issue was:

    I asked the host to send me the php info file and noticed that the directive post_max_size was set to 8MB.

    Checking with php at php.net, I confirmed that that directive also controls upload.

    I asked the host to change post_max_size to 10MB and now it is working as it should.

    I appreciate your help and patience.

    Thread Starter soeezauto

    (@soeezauto)

    just to mark as resolved

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘max upload file size 8MB while server configured to 10MB’ is closed to new replies.