Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: kryptos on January 26, 2010, 07:15:29 AM

Title: Modify php.ini?
Post by: kryptos 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 (http://wiki.contribs.org/DB_Variables_Configuration#Php) but there no output_buffer variable on the list. 
 
Regards,
Rocel
Title: Re: Modify php.ini?
Post by: Normando 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.
Title: Re: Modify php.ini?
Post by: Normando 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
Title: Re: Modify php.ini?
Post by: Normando 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
Title: Re: Modify php.ini?
Post by: kryptos 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!