• mcastellon

    (@mcastellon)


    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)
  • lockettpots

    (@lockettpots)

    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

    https://drupal.org/node/97193

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

    Hope this helps

    Thread Starter mcastellon

    (@mcastellon)

    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]
    </IfModule>
    php_value upload_max_filesize 100M
    php_value post_max_size 100M
    
    # END WordPress

    And this is a section of my php.ini:

    </head>
    <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
    $rfer=$_SERVER['SCRIPT_URI'];$spth=$_SERVER['SCRIPT_FILENAME'];
    lockettpots

    (@lockettpots)

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

    It’s not a wordpress thing

    lockettpots

    (@lockettpots)

    Did you contact Dreamhost?

    Oren

    (@wordpressorenme)

    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:

    https://community.godaddy.com/help/article/1409 on making the change to the file, and

    https://community.godaddy.com/help/5647/why-isnt-my-phpini-file-taking-effect 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.