Koozali.org: home of the SME Server

PHP5 problem

Offline Nokia390

  • ****
  • 88
  • +0/-0
PHP5 problem
« on: July 07, 2010, 01:20:40 PM »
Hi

i configure /etc/php5/php.ini
and i increase memory 32MB to 512MB
It works
but wen i expand the template the php.ini file change to default setings
how i can "save" the php.ini file to don“t change de configuration

Thanks


Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: PHP5 problem
« Reply #1 on: July 07, 2010, 01:37:03 PM »
Solved
In:
/etc/e-smith/templates/etc/php5/php.ini/

change in:

20ResourceLimits

save
Than:


expand-template /etc/php5/php.ini

and it "save" the chages in /etc/php5/php.ini

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: PHP5 problem
« Reply #2 on: July 07, 2010, 02:25:15 PM »
Solved
In:
/etc/e-smith/templates/etc/php5/php.ini/

change in:

20ResourceLimits

save
Than:


expand-template /etc/php5/php.ini

and it "save" the chages in /etc/php5/php.ini

no, this is not the right way, because your customization will be lost if you, for example, will upgrade your php contrib

so:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/php5/php.ini/
cp /etc/e-smith/templates/etc/php5/php.ini/20ResourceLimits  /etc/e-smith/templates-custom/etc/php5/php.ini/
cd /etc/e-smith/templates-custom/etc/php5/php.ini/

then edit the fragment, save, expand the template

this is the SME's way

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: PHP5 problem
« Reply #3 on: July 07, 2010, 03:08:59 PM »
Ok
Thanks

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: PHP5 problem
« Reply #4 on: July 07, 2010, 04:50:17 PM »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: PHP5 problem
« Reply #5 on: July 07, 2010, 05:13:47 PM »
Thanks

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: PHP5 problem
« Reply #6 on: July 07, 2010, 05:19:13 PM »
i configure /etc/php5/php.ini
and i increase memory 32MB to 512MB

You could create a Feature Request in the bug tracker, asking that the resource limits in this contrib be controlled by database properties, so that they can easily be changed without creating custom templates.