# How to Edit post\_max\_size in PHP Configuration

**URL:** https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266
**Category:** Application Support
**Created:** [January 27, 2021, 3:31pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266 "2021-01-27T15:31:50Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![AlexM](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@AlexM](https://community.kinsta.com/u/AlexM)
#### Post date: [January 27, 2021, 3:31pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/1 "2021-01-27T15:31:50Z")

</div>

Hello  
I am trying to use DevKinsta to import a WP that is not on Kinsta yet.  
When I try to import the DataBase in Adminer, I have a message saying I should increase the Post\_max\_size in the configuration Php.  
(it’s quite surprise given the database is only 30Mo…).

Nevertheless, I have NO IDEA where to look, and which line of code to change.  
Could you please help? ( I’am not a developper, so don’t hesitate to detail each step).  
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: [January 27, 2021, 4:37pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/2 "2021-01-27T16:37:27Z")

</div>

Hi @AlexM . Welcome to DevKinsta!

We’re looking at increasing that value by default. In the meantime, it’ll need to be increased in the PHP configuration. I’m happy to help guide you on that! Just so I know the steps to provide, are you on Mac or Windows?

---

<div class="post-metadata">

### Author: ![AlexM](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@AlexM](https://community.kinsta.com/u/AlexM)
#### Post date: [January 27, 2021, 5:27pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/3 "2021-01-27T17:27:50Z")

</div>

Hello @michael ,  
thanks for your answer.  
I am on Mac.

---

<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: [January 27, 2021, 8:20pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/4 "2021-01-27T20:20:29Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![AlexM](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@AlexM](https://community.kinsta.com/u/AlexM)
#### Post date: [January 28, 2021, 2:35pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/5 "2021-01-28T14:35:26Z")

</div>

Hi @michael  
Thanks for your reply.  
It work.  
Actually , I realized I was trying to upload my data base in .sql , and not compressed in sql.gz.  
Once compressed it worked.  
Thanks again!

---

<div class="post-metadata">

### Author: ![cre8ivivision](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@cre8ivivision](https://community.kinsta.com/u/cre8ivivision)
#### Post date: [March 1, 2021, 8:03pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/6 "2021-03-01T20:03:08Z")

</div>

Hello,

Can you please instruct us on how to do this on a windows machine?

Thank you

---

<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: [March 1, 2021, 10:27pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/7 "2021-03-01T22:27:38Z")

</div>

Hi @cre8ivivision! The steps are the same except you’ll be using [Windows Terminal](https://docs.microsoft.com/en-us/windows/terminal/).

---

<div class="post-metadata">

### Author: ![cre8ivivision](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@cre8ivivision](https://community.kinsta.com/u/cre8ivivision)
#### Post date: [March 1, 2021, 11:44pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/8 "2021-03-01T23:44:10Z")

</div>

> [@michael](#):
>
> nano /etc/php/7.3/fpm/php.ini

Thank you. I have done exactly all the steps successfully for editing the php.ini file. I also rechecked the values in a php.ini file for confirmation which is reflecting the updated values. However, the values in WordPress are still reflecting the old ones. What should I need to do further to properly configured the php.ini so it could reflect the new values.

 ![kinsta_server_issue](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/751c6f8d706945f4d3cae02f2643f84adcb52114.png)

---

<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: [March 2, 2021, 4:34pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/9 "2021-03-02T16:34:26Z")

</div>

> [@cre8ivivision](#):
>
> What should I need to do further to properly configured the php.ini so it could reflect the new values.

Be sure to also restart via `docker restart devkinsta_fpm` if you haven’t already. It should be reflected after that.

---

<div class="post-metadata">

### Author: ![cre8ivivision](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@cre8ivivision](https://community.kinsta.com/u/cre8ivivision)
#### Post date: [March 2, 2021, 7:49pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/10 "2021-03-02T19:49:05Z")

</div>

Yeah, I did it several times but some values are still the same whereas the other value such as **PHP max input variables** is reflecting properly. I have attached a screenshot and a container log file for your reference. Please have a look and indicate my errors.

 ![kinsta_server_issue_2](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/18d534f5c3e06f17b631b2c133e3733dad21496d.jpeg)

[Log.txt](https://community.kinsta.com/uploads/short-url/1p7FQrLv1n5Iiibdsx63nWbWUmE.txt) (13.4 KB)

---

<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: [March 2, 2021, 11:33pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/11 "2021-03-02T23:33:10Z")

</div>

@cre8ivivision - Is the site itself running with PHP 7.4? Additionally, do you happen to have memory limit value assigned on wp-config?

---

<div class="post-metadata">

### Author: ![launesatans](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/launesatans/32/168_2.png) [@launesatans](https://community.kinsta.com/u/launesatans)
#### Post date: [January 23, 2021, 8:22pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/12 "2021-01-23T20:22:20Z")

</div>

Hello everyone,  
Is there a way to do some more php configuration?  
for example having access onto the php.ini file?

Would appreciate 🙂

---

<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: [January 25, 2021, 4:09pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/13 "2021-01-25T16:09:30Z")

</div>

Hi there @launesatans . Thanks for stopping by. We’ll have documentation on this shortly. Are you familiar with using shell? Try entering `docker exec -it devkinsta_fpm bash` then navigating to `/etc/php/fpm/`. You’ll find different versions there for the PHP version you need to configure.

---

<div class="post-metadata">

### Author: ![launesatans](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/launesatans/32/168_2.png) [@launesatans](https://community.kinsta.com/u/launesatans)
#### Post date: [January 26, 2021, 10:21am UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/14 "2021-01-26T10:21:24Z")

</div>

Hi Michael, yes it works like charm, thank you a lot!

---

<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: [March 4, 2021, 11:35pm UTC](https://community.kinsta.com/t/how-to-edit-post-max-size-in-php-configuration/266/15 "2021-03-04T23:35:27Z")

</div>


