Koozali.org: home of the SME Server

Modify php.ini?

Offline kryptos

  • *****
  • 245
  • +0/-0
Modify php.ini?
« on: January 26, 2010, 07:15:29 AM »
hi,

How do I modify php.ini? I want to enable output_buffer. I tried checking this link http://wiki.contribs.org/DB_Variables_Configuration#Php but there no output_buffer variable on the list. 
 
Regards,
Rocel

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: Modify php.ini?
« Reply #1 on: January 26, 2010, 08:19:16 AM »
Yes, output_buffer is not mapped as variable. You can search what fragment file has output_buffer setting in /etc/e-smith/templates/etc/php and then copy the file to (make the folders if no exist) /etc/e-smith/templates-custom/etc/php. Then make you changes in that file (the file you have copied to templates-custom). Save, expand templates and restart httpd-e-smith service:

Code: [Select]
expand-template /etc/php.ini
service httpd-e-smith restart

Remember: custom templates are priority over system templates.

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: Modify php.ini?
« Reply #2 on: January 26, 2010, 08:24:11 AM »
I have no experience with output_buffer, but this post say you can modify this value within your code:

http://forums.devshed.com/php-development-5/what-does-output-buffer-really-do-351211.html

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: Modify php.ini?
« Reply #3 on: January 26, 2010, 08:30:24 AM »
Please, read the excellent wiki page made by Ray Mitchell about templates:

http://wiki.contribs.org/Template_Tutorial

Offline kryptos

  • *****
  • 245
  • +0/-0
Re: Modify php.ini?
« Reply #4 on: January 26, 2010, 08:43:45 AM »
Yes, output_buffer is not mapped as variable. You can search what fragment file has output_buffer setting in /etc/e-smith/templates/etc/php and then copy the file to (make the folders if no exist) /etc/e-smith/templates-custom/etc/php. Then make you changes in that file (the file you have copied to templates-custom). Save, expand templates and restart httpd-e-smith service:

Code: [Select]
expand-template /etc/php.ini
service httpd-e-smith restart


Remember: custom templates are priority over system templates.


Thanks for the heads up. Ill try search which fragment file it is.


I have no experience with output_buffer, but this post say you can modify this value within your code:

http://forums.devshed.com/php-development-5/what-does-output-buffer-really-do-351211.html

Hmmm.. We will try this one seems the solution to our problem. Thanks Normando!