WordPress.org

Forums

Edits to php.ini not fixing my Maximum File Upload Size (6 posts)

  1. mcastellon
    Member
    Posted 4 years ago #

    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.

  2. lockettpots
    Member
    Posted 4 years ago #

    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

    http://drupal.org/node/97193

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

    Hope this helps

  3. mcastellon
    Member
    Posted 4 years ago #

    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'];
  4. lockettpots
    Member
    Posted 4 years ago #

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

    It's not a wordpress thing

  5. lockettpots
    Member
    Posted 4 years ago #

    Did you contact Dreamhost?

  6. Oren
    Member
    Posted 4 years ago #

    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:

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

    http://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.

Topic Closed

This topic has been closed to new replies.

About this Topic