• Resolved vee

    (@okvee)


    I have this .user.ini to override php.ini.

    
    ; user custom php.ini
    ; input post and upload max size.
    upload_max_filesize = 5M
    post_max_size = 10M
    
    ; increase max time out.
    ;max_execution_time = 3000
    
    ; Date/time zone
    date.timezone = "Asia/Bangkok"
    

    If I open info.php that contain phpinfo(); then everything show up correctly.
    But then I open WordPress admin > media > add new. The max upload size is always show up 2M never changed.
    What’s wrong with WordPress?
    (No plugins, default theme that come with WordPress 4.6.1).

Viewing 2 replies - 1 through 2 (of 2 total)
  • What’s wrong with WordPress?

    There is nothing wrong with WordPress. It has no capacity to limit upload size on its own. It simply obeys server side php directives. Contact your hosts support group or consult their user FAQ or knowledge base for their preferred method of increasing the limits. You may need to simply rename the file you’re using, or possibly add an additional suPHP directive. They may be able to tell you why phpinfo() says one thing, and WordPress says something different.

    Hi,

    There is nothing wrong with WordPress. You can change those values from your cpanel or hosting account manager.

    In cpanel, there is an option like change php variable/ edit php variable. From there you can edit those variables (you need to add new variable that overrides old one). Or you can add php.ini file in your tooy folder that can override default php.ini variable value.

    Thanks

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

The topic ‘WordPress did not use “.user.ini” value’ is closed to new replies.