WordPress.org

Support

Support » How-To and Troubleshooting » Change maximum upload size and find php.ini

Change maximum upload size and find php.ini

  • Hi everyone,

    For 2 days I have been trying to change maximum upload size because I was not able to upload big new plugins and also pictures to NextGEN Gallery with over 2MB sizes. I had my limit up to 2MB, but now I changed to 1000MB.

    So how I did it?

    First of all, we should know where our php.ini is located. I was building my wordpress web-site on my localhost for testing, so basically I was not changing anything through hosting web-sites. In case if your wordpress is hosted by any company, please refer to other topics.

    So I will start briefly, but in case if you have questions, I am ready to answer.

    1. Create new text file in our wp-admin directory root and name it info.php.
    2. Open info.php and add these lines:
    <?php

    phpinfo();

    ?>

    3. Save it.
    4. Go to yourwebsitename(probably localhost)/wp-admin/info.php in any web-browser.
    5. In the 8th line you will see: Configuration File (php.ini) Path, in my case it is C:\Windows, meaning it is located on my C drive.
    6. In the 9th line you will see: Loaded Configuration File, and next to it is written C:\Program Files (x86)\IIS Express\PHP\v5.3\php.ini

    So I found my php.ini page that is associated with my wordpress web-site.

    7. Go to that path, and find php.ini.
    8. Open it, and edit:
    Search for post_max_size=8M, and change it to post_max_size=1000M
    Search for upload_max_filesize=2M, and change it to upload_max_filesize=1000M

    9. Go back to your admin page>Media>Add New
    10. On the bottom you will see that 2MB has changed to 1000M.

    P.S: I had problems with overwriting php.ini page, it was telling me access is denied. If you have such problems, google it, and change some permissions so you can edit that file.

    Good luck!

Viewing 15 replies - 1 through 15 (of 30 total)
  • Thanks a million for your post. I’ve been searching for days without creating a new php.ini file within wp-admin directories. By the way, after your instruction, my Apache needed a restart in order for the changes to take effects. Thanks for sharing.

    Thanks a million for your post. I’ve been searching for days without creating a new php.ini file within wp-admin directories. By the way, after your instruction, my Apache needed a restart in order for the changes to take effects. Thanks for sharing.

    You are welcome! I am happy that my post helped someone 🙂

    thanks for this topic.. now my max size upload is 1000mb

    …ty much

    Hi – I need to change these settings, but can’t find my php.ini. can anyone point me in the right direction? took a screenshot of the settings I need to change, but can’t find a way to upload it here. thanks 🙂

    Hi – I need to change these settings, but can’t find my php.ini. can anyone point me in the right direction? took a screenshot of the settings I need to change, but can’t find a way to upload it here. thanks 🙂

    Check the post above, I wrote how to find it. Could you find it now?

    I read that, but it doesn’t work, that’s why I posted my request 🙂

    I get stuck on the first step! when I type in yourwebsitename/wp-admin/info.php (replacing with my website name, obviously!) it comes up with

    Error 404 – Not Found

    Sorry, but you are looking for something that isn’t here.

    from within my website page.
    thanks for any help you can offer 🙂

    I read that, but it doesn’t work, that’s why I posted my request 🙂

    I get stuck on the first step! when I type in yourwebsitename/wp-admin/info.php (replacing with my website name, obviously!) it comes up with

    Error 404 – Not Found

    Sorry, but you are looking for something that isn’t here.

    from within my website page.
    thanks for any help you can offer 🙂

    Aaaa ok, I know why, just a second, let me write you why 😀

    thanks 🙂

    I read that, but it doesn’t work, that’s why I posted my request 🙂

    I get stuck on the first step! when I type in yourwebsitename/wp-admin/info.php (replacing with my website name, obviously!) it comes up with

    Error 404 – Not Found

    Sorry, but you are looking for something that isn’t here.

    from within my website page.
    thanks for any help you can offer 🙂

    So create a new text file in your wp-admin folder with the name info.php and edit the file with these:

    <?php

    phpinfo();

    ?>

    Save the file, and now check again yourwebsitename/wp-admin/info.php

    Good luck 😉

    thank you. i’m VERY new to this. when you say create a new text file in the wp-admin folder…..*blushes*

    thank you. i’m VERY new to this. when you say create a new text file in the wp-admin folder…..*blushes*

    It is fine, I have learned like you as well 😉 reading forums everyday 😀 And still learning 😀

    Just let me know if you could figure it out…

    sorry….don’t know where to create file…

    sorry….don’t know where to create file…

    OK, go to your folder where you have installed your wordpress. It is in your computer, or in your FTP folder, or type in your search box in start “wp-admin” and you will see a folder. Go to the folder, right click on your mouse, create a text file. Then rename it to info.php, and go to text file, type what I have posted above:

    <?php

    phpinfo();

    ?>

    then save it, and then go to your websitename/wp-admin/info.php

    Let me know if you could figure it out or not yet…

    ahhh….right..I don’t have wordpress installed on my computer 🙂 🙂 🙂 I upload pages to the website and edit it, but it was already set up when I took it over.

    didn’t even realise you COULD download it onto the computer itself…feel so silly now!

Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘Change maximum upload size and find php.ini’ is closed to new replies.
Skip to toolbar