# ionCube Loader (php.ini configuration reset on start)

**URL:** <https://community.localwp.com/t/ioncube-loader-php-ini-configuration-reset-on-start/27479>\
**Category:** Support\
**Tags:** php-ioncube, lightning-service\
**Created:** [September 1, 2021, 9:28am UTC](https://community.localwp.com/t/ioncube-loader-php-ini-configuration-reset-on-start/27479 "2021-09-01T09:28:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad\_Arab](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/mohammad_arab/32/14065_2.png) [@Mohammad\_Arab](https://community.localwp.com/u/Mohammad_Arab)\
**Post date:** [September 1, 2021, 9:28am UTC](https://community.localwp.com/t/ioncube-loader-php-ini-configuration-reset-on-start/27479/1 "2021-09-01T09:28:06Z")

</div>

ionCube loader couldn’t install correctly because of the php.ini reset on start.

The question is how to forces Localwp to keep changes to the php.ini file.  
We should put the necessary zend\_extension line in the configuration.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [September 1, 2021, 3:18pm UTC](https://community.localwp.com/t/ioncube-loader-php-ini-configuration-reset-on-start/27479/2 "2021-09-01T15:18:50Z")

</div>

Hey @Mohammad_Arab , Welcome to the Local Community Forums!

Because Local has to work on both \*nix systems as well as Windows, it uses a template file that’s re-compiled everytime a site is restarted.

This topic seems similar to what you’re asking: [Local is filling up the hard disk in my MAC - #2 by ben.turner](http://community.localwp.com/t/local-is-filling-up-the-hard-disk-in-my-mac/27469/2)

But basically, double-check that you are editing the `.hbs` file and not the compiled configuration file. By default, PHP’s configuration for a site is located at:

```auto
~/Local Sites/sitename/conf/php/php.ini.hbs

```

Can you try editing that `.hbs` file, restarting the site, and see if that gets things working for you?

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [November 30, 2021, 3:19pm UTC](https://community.localwp.com/t/ioncube-loader-php-ini-configuration-reset-on-start/27479/3 "2021-11-30T15:19:33Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
