Koozali.org: home of the SME Server

change php.ini

Offline groyk

  • ****
  • 140
  • +0/-0
change php.ini
« on: February 01, 2009, 04:56:48 PM »
Hi I have searched through the forum for finding a solution to change the php.ini file with no success

The only change I need at the moment is to change "memory_limit" from 32MB to 96MB

How do I do that?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: change php.ini
« Reply #1 on: February 01, 2009, 07:21:08 PM »
Hi I have searched through the forum for finding a solution to change the php.ini file with no success

The only change I need at the moment is to change "memory_limit" from 32MB to 96MB

How do I do that?
Code: [Select]
db configuration setprop php MemoryLimit 96M
expand-template /etc/php.ini
sv t httpd-e-smith
« Last Edit: February 01, 2009, 07:24:54 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: change php.ini
« Reply #2 on: February 02, 2009, 02:10:18 AM »
This is also documented in the wiki at http://wiki.contribs.org/DB_Variables_Configuration#Php

Offline groyk

  • ****
  • 140
  • +0/-0
Re: change php.ini
« Reply #3 on: February 02, 2009, 03:34:42 PM »
This is also documented in the wiki at http://wiki.contribs.org/DB_Variables_Configuration#Php

Thank you.

What if I change it in /etc/e-smith/templates/php.ini/?

Will this be over ridden when I update?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: change php.ini
« Reply #4 on: February 02, 2009, 05:05:24 PM »
Thank you.

What if I change it in /etc/e-smith/templates/php.ini/?

Will this be over ridden when I update?
You should never do that, changes should only be made to copies in the custom tree to keep the originals and not loose your changes over reboots. Please read up on the templating system SME Server uses for configuration files in the SME Server Developers Guide linked in the wiki.

When there is a database parameter, like for this parameter, there is absolutely no need to modify templates what so ever as the value entered in the database is used.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline groyk

  • ****
  • 140
  • +0/-0
Re: change php.ini
« Reply #5 on: February 02, 2009, 06:08:53 PM »
Thank you for your fast reply.

Simon