# Configure zend.assertions = -1 in php.ini for production environments for faster and more stable execution

**URL:** https://forum.mautic.org/t/configure-zend-assertions-1-in-php-ini-for-production-environments-for-faster-and-more-stable-execution/25353
**Category:** International - By Language
**Tags:** discussion
**Created:** [September 11, 2022, 7:38am UTC](https://forum.mautic.org/t/configure-zend-assertions-1-in-php-ini-for-production-environments-for-faster-and-more-stable-execution/25353 "2022-09-11T07:38:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![led.dhany](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/led.dhany/32/486_2.png) [@led.dhany](https://forum.mautic.org/u/led.dhany)
#### Post date: [September 11, 2022, 7:38am UTC](https://forum.mautic.org/t/configure-zend-assertions-1-in-php-ini-for-production-environments-for-faster-and-more-stable-execution/25353/1 "2022-09-11T07:38:02Z")

</div>

My Mautic version is: 4.4.2  
My PHP version is: PHP Version 8.0.23  
My Database type and version is: 10.4.20-MariaDB-log

Hi, I have recomendation notification.  
It says:

Configure `zend.assertions = -1` in php.ini for production environments for faster and more stable execution.

 ![Screen Shot 2022-09-11 at 4.28.53 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/55a344c041bbb72a5fcd2083be2f8c0eafd262e6.png)

But,i check there is no php.ini on my Mautic Folder or can not fine php.ini on this folder /usr/php80/etc/php.ini. This folder /usr/php80/etc doesn’t exist.

Should i create php.ini and add 1 line for `zend.assertions = -1`?

 ![mautic](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/515f942704954d7f91607869215fe363b2c926c9.jpeg)

![GIF Recording 2022-09-11 at 3.02.46 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7183f19bd8b8b78cefb425546278ede569763ead.gif)

Here what i’ve found on my mautic installation folder. Only 2 php.ini but not on this path /usr/php80/etc/php.ini

 ![Screen Shot 2022-09-11 at 4.24.07 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/d/decbbdc49eb0d4ce2b242217d69cde23444a1e6c.png)

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [September 12, 2022, 8:48am UTC](https://forum.mautic.org/t/configure-zend-assertions-1-in-php-ini-for-production-environments-for-faster-and-more-stable-execution/25353/2 "2022-09-12T08:48:39Z")

</div>

This is php setting and it has nothing to do with mautic.

You should find the config option in PHP ini file usually inside /etc/php folder and adjust it. When you have adjusted it, restart the php service / web server for config to take an effect.

And also backup the current php ini file so you can revert back if something goes bad.

---

<div class="post-metadata">

### Author: ![led.dhany](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/led.dhany/32/486_2.png) [@led.dhany](https://forum.mautic.org/u/led.dhany)
#### Post date: [September 12, 2022, 9:35pm UTC](https://forum.mautic.org/t/configure-zend-assertions-1-in-php-ini-for-production-environments-for-faster-and-more-stable-execution/25353/3 "2022-09-12T21:35:53Z")

</div>

Hi @mzagmajster

That is the problem, i can not find this path /etc/php  
my mautic folder doesn’t have this folder. There’s no hidden file or hidden folder.  
I am using Stackcp panel.

**Here is the only php.ini in my mautic**

 ![mautic1](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/46cc6afabd0b52e767e9d2c6158a5a8140cacc46.jpeg)

**And here are the php folder, not found any /etc/php folder**

 ![mautic2](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/84a35cb0c5740a6373c5712cf82357d540fa4d07.jpeg)

 ![mauti3](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/e64c644a03e3fba213a999cb4224d7dc948e9b5c.jpeg)  
 ![mautic4](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0ae514ffeddb68080bffa02ef1eee8394d9f5ef4.jpeg)  
 ![mautic5](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1d8df4a3ba28c602ed40306deaea03c54b27179f.jpeg)

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [September 12, 2022, 9:59pm UTC](https://forum.mautic.org/t/configure-zend-assertions-1-in-php-ini-for-production-environments-for-faster-and-more-stable-execution/25353/4 "2022-09-12T21:59:13Z")

</div>

I believe you will find out how to change php setting following this link: \< [Changing your PHP configuration through our control panel. | 20i](https://www.20i.com/support/stackcp/change-websites-php-configuration) \>

---

<div class="post-metadata">

### Author: ![led.dhany](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/led.dhany/32/486_2.png) [@led.dhany](https://forum.mautic.org/u/led.dhany)
#### Post date: [September 13, 2022, 11:33am UTC](https://forum.mautic.org/t/configure-zend-assertions-1-in-php-ini-for-production-environments-for-faster-and-more-stable-execution/25353/5 "2022-09-13T11:33:06Z")

</div>

> [@led.dhany](#):
>
> /usr/php80/etc

I’ll discuses with my hosting company. I will update if any information.
