Support » Fixing WordPress » Edits to php.ini not fixing my Maximum File Upload Size

  • Hi All,

    I run Thesis on Dreamhost. I’ve been attempting to change my maximum upload size from 7MB to 100MB.

    Dreamhost reps edited by PHP accordingly, but the maximum upload size in WP hasn’t changed from the 7MB cap.

    They created a phpinfo page for my site and it shows that the max upload filesize for my domain is set to 100mb.

    Dreamhost has now shrugged me off, saying it’s an issue they can no longer attempt to resolve.

    Any thoughts on a solution?

    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You will also need to change the post_max_size in your php.ini

    If Dreamhost don’t want to do it for you (although I think they should)
    this link may help

    As you see it is about Drupal but the principle is the same.

    Hope this helps

    Thanks for the help. I added those items to my code. So far, my limit hasn’t changed.

    Does this look right?

    Here’s how my .htaccess file looks:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    php_value upload_max_filesize 100M
    php_value post_max_size 100M
    # END WordPress

    And this is a section of my php.ini:

    <body id="install">
    <div id="titleHeader" class="title"><?php echo $ptitle ?></div>
    <div id="contentContainer" class ="mainContent">
    <?php }
    upload_max_filesize = 100M
    post_max_size = 100M

    On your .htaccess file try putting the lines BEFORE the #BEGIN WordPress line.

    It’s not a wordpress thing

    Did you contact Dreamhost?



    It’s probably not enough to just change the php.ini file. After changing it, you may need to restart the server.

    What started this is that I got the Maximum File Upload error, and I modified the php.ini file in my root directory. In my case I increased it to 32MB by adding the text upload_max_filesize = 32M.

    Then I restarted the server by using the control panel. I use GoDaddy, and the relevant links are: on making the change to the file, and for restarting the server. There is a minor error in the instructions for Linux Shared Hosting, the instructions refer to the “Processes” icon, when in fact the name of the icon is “System Processes”. But that fixed my problem perfectly.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Edits to php.ini not fixing my Maximum File Upload Size’ is closed to new replies.