# How to Change upload\_max\_filesize in Windows

**URL:** <https://community.kinsta.com/t/how-to-change-upload-max-filesize-in-windows/1064>\
**Category:** Application Support\
**Created:** [October 25, 2021, 4:19am UTC](https://community.kinsta.com/t/how-to-change-upload-max-filesize-in-windows/1064 "2021-10-25T04:19:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![GECinAZ](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gecinaz/32/748_2.png) [@GECinAZ](https://community.kinsta.com/u/GECinAZ)\
**Post date:** [October 25, 2021, 4:19am UTC](https://community.kinsta.com/t/how-to-change-upload-max-filesize-in-windows/1064/1 "2021-10-25T04:19:26Z")

</div>

I use DevKinsta on Windows 11.  
I’ve been trying to change the upload\_max\_filesize in php.ini  
I’ve followed exactly these instructions:

"1. Open Terminal on your Mac and type in `docker exec -it devkinsta_fpm bash `  
2. Type in `apt-get update && apt-get upgrade && apt-get install nano`. You will be prompted to type Y. This step will install `nano` so you can edit the file.  
3. Then type in `nano /etc/php/7.3/fpm/php.ini`. You may need to change the 7.3 to another version. Match this with the version the site is on on DevKinsta.  
4. There’s quite a bit here but what you’re looking for is `post_max_size`. To do a search, press control+w on your keyboard - type post\_max\_size - then enter.  
5. Change this to your desired value. `post_max_size = 64M` should do it. Exit with control+x and press Y to save.  
6. Type `exit` then `docker restart devkinsta_fpm`

Should be all good from there! Let me know if you have any questions about any steps here."

When I look at the php.ini file in nano, the changes I’ve made are shown exactly as I want them.  
But when I go to my DevKinsta site, the upload\_max\_filesize is still at 128M

What do I have to do to get the changes I edited into php.ini to show up in my DevKinsta website??

---

<div class="post-metadata">

**Author:** ![GECinAZ](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gecinaz/32/748_2.png) [@GECinAZ](https://community.kinsta.com/u/GECinAZ)\
**Post date:** [October 24, 2021, 7:14pm UTC](https://community.kinsta.com/t/how-to-change-upload-max-filesize-in-windows/1064/2 "2021-10-24T19:14:46Z")

</div>

I use DevKinsta on Windows 11.  
I’ve been trying to change the upload\_max\_filesize in php.ini  
I’ve followed exactly these instructions:

"1. Open Terminal on your Mac and type in `docker exec -it devkinsta_fpm bash `  
2. Type in `apt-get update && apt-get upgrade && apt-get install nano`. You will be prompted to type Y. This step will install `nano` so you can edit the file.  
3. Then type in `nano /etc/php/7.3/fpm/php.ini`. You may need to change the 7.3 to another version. Match this with the version the site is on on DevKinsta.  
4. There’s quite a bit here but what you’re looking for is `post_max_size`. To do a search, press control+w on your keyboard - type post\_max\_size - then enter.  
5. Change this to your desired value. `post_max_size = 64M` should do it. Exit with control+x and press Y to save.  
6. Type `exit` then `docker restart devkinsta_fpm`

Should be all good from there! Let me know if you have any questions about any steps here."

When I look at the php.ini file in nano, the changes I’ve made are shown exactly as I want them.  
But when I go to my DevKinsta site, the upload\_max\_filesize is still at 128M

Is there any other way to change upload\_max\_filesize that is easier for a Windows user like me who isn’t all that familiar with the nano editor?

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [October 26, 2021, 3:07pm UTC](https://community.kinsta.com/t/how-to-change-upload-max-filesize-in-windows/1064/3 "2021-10-26T15:07:23Z")

</div>

Welcome to DevKinsta @GECinAZ ! I’m happy to help. I noticed the thread got posted twice, so I’ve merged them to avoid confusion.

The above steps are indeed correct. Ensure that if PHP version that is being used is the php.ini file that’s updated. As in if the site is using PHP 7.4, ensure that you’re editing the one found in /etc/php/7.4/fpm/php.ini. Next is to ensure that PHP is being restarted. Try restarting the container within Docker for devkisnta\_fpm.

---

<div class="post-metadata">

**Author:** ![GECinAZ](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gecinaz/32/748_2.png) [@GECinAZ](https://community.kinsta.com/u/GECinAZ)\
**Post date:** [October 26, 2021, 4:41pm UTC](https://community.kinsta.com/t/how-to-change-upload-max-filesize-in-windows/1064/4 "2021-10-26T16:41:15Z")

</div>

Michael,

I have done all the steps you provided at least twice. I am positive I edited /etc/php/7.4/fpm/php.ini. And I restated the Docker container as instructed, but still the max\_upload\_filesize on my DevKinsta website remains at 128M.

I’m at a loss as to what to do next.

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [October 26, 2021, 9:20pm UTC](https://community.kinsta.com/t/how-to-change-upload-max-filesize-in-windows/1064/5 "2021-10-26T21:20:36Z")

</div>

@GECinAZ Hm. Try creating a `info.php` and inserting the following lines into the file:

```auto
<?php

phpinfo( );

?>

```

We have a guide on this here too: [How to Easily Create and Use a phpinfo Page (In 3 Steps)](https://kinsta.com/knowledgebase/phpinfo/)

What’s the `upload_max_filesize` value you see in there?

---

<div class="post-metadata">

**Author:** ![GECinAZ](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gecinaz/32/748_2.png) [@GECinAZ](https://community.kinsta.com/u/GECinAZ)\
**Post date:** [October 26, 2021, 10:24pm UTC](https://community.kinsta.com/t/how-to-change-upload-max-filesize-in-windows/1064/6 "2021-10-26T22:24:22Z")

</div>

Michael,  
I created the phpinfo.php file and the value for upload\_max\_filesize is still 128M

 ![4V2u839SZUSbQpjS.png](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/506bd21218fe2a65596204e175368f098f52562d.png)

Thanks

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [October 27, 2021, 2:47pm UTC](https://community.kinsta.com/t/how-to-change-upload-max-filesize-in-windows/1064/7 "2021-10-27T14:47:22Z")

</div>

It does appear that it’s not being applied. I’m not sure what else it could be unfortunately. Could you try editing the php.ini file for all the other PHP versions as well to see if that helps?

---

<div class="post-metadata">

**Author:** ![GECinAZ](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gecinaz/32/748_2.png) [@GECinAZ](https://community.kinsta.com/u/GECinAZ)\
**Post date:** [October 27, 2021, 5:45pm UTC](https://community.kinsta.com/t/how-to-change-upload-max-filesize-in-windows/1064/8 "2021-10-27T17:45:51Z")

</div>

Michael,

I tried editing the php.ini file for the other PHP versions, but that did not work.  
So I decided to try creating a new site but DevKinsta hung during the “Creating New Site” portion.  
So then I killed all the DevKinsta processes and tried DevKinsta again, but it hung.  
Then I completely uninstalled DevKinsta, restarted my machine, and tried creating another site. But DevKinsta again hung up in “Creating New Site”. I waited 15 minutes while it remained in “Creating New Site”.

So I’m done with DevKinsta…I’ve wasted far more time with it than I should have. While it may be a great app and all that, it certainly doesn’t work for me at all.

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [October 27, 2021, 9:53pm UTC](https://community.kinsta.com/t/how-to-change-upload-max-filesize-in-windows/1064/9 "2021-10-27T21:53:11Z")

</div>

@GECinAZ I’m sorry for the trouble there. We are working on making it easier to edit the PHP configuration. We’ll update you when that feature becomes available.
