WordPress.org

Ready to get started?Download WordPress

Forums

Increasing max filesize (10 posts)

  1. chkorpsak
    Member
    Posted 5 years ago #

    I saw a link on how to increase the max file-size however I can't find my php.ini

    Then I read that there are premium accounts, but when I build sites, I just download wordpress 2.8 from the home page, is there a link to premium wordpress?

  2. figaro
    Member
    Posted 5 years ago #

    php.ini is not in wordpress, it's in your server software. If you are on a shared host, then you will need to contact them for directions on how to change the max upload size...some will allow you to use a local php.ini on your account.

  3. chkorpsak
    Member
    Posted 5 years ago #

    alrighty, so I asked my hosting company since it is a shared host, they're saying to create a local .htaccess file....

    So what should I have in there?

  4. figaro
    Member
    Posted 5 years ago #

    Try this...

    http://roshanbh.com.np/2008/01/uploading-larger-files-in-php.html

    If it doesn't work, then ask your host what to put in it.

  5. Shane G
    Member
    Posted 5 years ago #

    Hi,

    You can also do it for your domain from your end..YOu can either do it from wp-config.php or .htaccess file of your domain. Here is the code for that:

    For wp-config.php:
    define(’WP_MEMORY_LIMIT’, ‘64M’);

    For .htaccess:
    php_value memory_limit 64M

    Thanks,

    Shane G.

  6. figaro
    Member
    Posted 5 years ago #

    @Shane G: Are you sure you read the question??

  7. Shane G
    Member
    Posted 5 years ago #

    Hi,

    @figaro - yes increase memory limit as as well upload limit with this:

    php_value upload_max_filesize 10M

    but this code does not go through in my last post..hence, I have provided it here

    Thanks,

    Shane G.

  8. figaro
    Member
    Posted 5 years ago #

    So increasing the memory limit will increase the max file size upload? Hummm...I learn something new everyday ;-)

  9. WebTechGlobal
    Member
    Posted 5 years ago #

    Is this PHP INI code?

    php_value upload_max_filesize 10M

    I have not seen php_value before.

  10. contactparijat
    Member
    Posted 4 years ago #

    Shane G

    I tried your code both of them. But neither worked.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.