• Resolved backpages

    (@backpages)


    Using PHP 5.4.45. I know there are lots of posts relating to similar questions and I’ve looked through a lot of them, but they don’t address my specific issue. I have placed a php5.ini file in the root of the site with this info:

    ‘upload_max_filesize=100M
    post_max_size=100M’

    When I view a php info file on the site it does indeed reflect that the size of these two things is 100MB. However, when I try to upload a file via WordPress it says my limit is 8MB. Not sure what I am doing wrong. I even placed a copy of the php5.ini file in the “Uploads” folder. Still no go.

    Any help or advice would be greatly appreciated! Thanks very much.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Not sure you’re not needing to have Apache restarted, perhaps.

    Thread Starter backpages

    (@backpages)

    Thank you, Sabinooo for the reply. I created a phpinfo() page and put it up and it reflects the updates I made for the larger file sizes. So wouldn’t that indicate that the changes have been made on the server?

    1) set WP_DEBUG = true in wp-config.php and see if you get an error message.

    2) If you are using shared hosting, send this message to ISP support.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    By any chance do you have a different INI file in the wp-admin folder?

    I think I know something that could help you.
    If you have access to your .htaccess file I would try and put this code at the top of the file, replacing your php.ini location or name of file after it has been edited:

    #PHPINI initializer
    
    <IfModule mod_suphp.c>
    suPHP_ConfigPath /home/USERNAME/public_html/php.ini
    </IfModule>

    This code should force a specific php.ini to be read, because I heard some hosts keep another php.ini file located in usr/local/lib that gets used in place of the one you may be editing.
    There is also a fix that worked from a few years back where you take your php.ini and move it to your wp-admin folder.

    Thread Starter backpages

    (@backpages)

    Mitchell, I set WP_DEBUG to true. Not getting any error messages anywhere. Where would I see them if there are any?

    Error message would be visible near the “top” of every page.
    Don’t forget to disable setting after checking.

    – Your phpinfo reflects the actual data, indeed
    – About suPHP: if that’s his PHP execution mode, not for everyone and in all cases
    – maybe the web host forces a limitation that even custom php tweaks cannot enforce, this is worth asking your web hosting company

    (total hurry, sorry!)

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Focus on the wp-admin folder.

    Do you have an .htaccess in that folder? A php5.ini file in there? Anything at all that might be changing things in a way you’re not seeing?

    Stick the php info file into the /wp-admin/ directory and run it from there. Then, check to see what the Loaded Configuration File is and the values for upload_max_filesize and so on.

    Thread Starter backpages

    (@backpages)

    Thanks for all the advice everyone!

    Finally figured out the problem. I had read somewhere I should name the file php5.ini if I was running PHP5. I put that file in the admin folder – nothing. Changed it to simply php.ini and voila!

    All good now. Thanks again.

    Thread Starter backpages

    (@backpages)

    Resolved.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘php5.ini File appears to be working, but doesn't change WordPress’ is closed to new replies.