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
-
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
-
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
-
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:
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
-
Ok
Thanks
-
Nokia390
Also see this Howto
http://wiki.contribs.org/Template_Tutorial
-
Thanks
-
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.