Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: Nokia390 on July 07, 2010, 01:20:40 PM

Title: PHP5 problem
Post by: Nokia390 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

Title: Re: PHP5 problem
Post by: Nokia390 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
Title: Re: PHP5 problem
Post by: Stefano 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
Title: Re: PHP5 problem
Post by: Nokia390 on July 07, 2010, 03:08:59 PM
Ok
Thanks
Title: Re: PHP5 problem
Post by: janet on July 07, 2010, 04:50:17 PM
Nokia390

Also see this Howto
http://wiki.contribs.org/Template_Tutorial
Title: Re: PHP5 problem
Post by: Nokia390 on July 07, 2010, 05:13:47 PM
Thanks
Title: Re: PHP5 problem
Post by: CharlieBrady 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.