Koozali.org: home of the SME Server

What's the correct way to modify PHP params?

Offline rdtaylor

  • *
  • 26
  • +0/-0
What's the correct way to modify PHP params?
« on: October 02, 2006, 12:14:44 AM »
Hi!

If I wish to change parameters affecting PHP, what is the right way to go about doing this?

Do you modify the PHP instance itself (using config setprop), or do you modify the per-ibay directives (using db accounts)?

If you modify both, which takes precedence?

cheers
Rob

Offline rdtaylor

  • *
  • 26
  • +0/-0
What's the correct way to modify PHP params?
« Reply #1 on: October 04, 2006, 11:29:39 PM »
Does anyone have an answer for this?

I am running sugarCRM in an ibay, and certain functions (particularly applying patches) is failing.

I suspect that some PHP params are not set high enough (such as

MaxExecutionTime
MaxInputTime
MemoryLimit
PostMaxSize
UploadMaxFilesize

)

Should I be setting these param globally for the PHP instance, or specifically for each ibay?

If I need to set them for each ibay, how do I go about doing it? ie. where do I find out what paramater names to use etc.?

cheers
Rob

Offline piran

  • ****
  • 502
  • +0/-0
What's the correct way to modify PHP params?
« Reply #2 on: October 05, 2006, 12:22:42 AM »
From my working notes:

[php configuration]----------------------------------

config setprop php MemoryLimit nnnn
config setprop php PostMaxSize mmmm
config setprop php UploadMaxFilesize pppp
expand-template /etc/php.ini
/etc/rc7.d/S86httpd-e-smith restart

where I have used:
nnnn = 100M
mmmm = 50M
pppp = 30M

Offline rdtaylor

  • *
  • 26
  • +0/-0
What's the correct way to modify PHP params?
« Reply #3 on: October 05, 2006, 06:52:24 AM »
Thanks for the reply, but that's not really what I was asking...

I know already how to modify params globally (ie. affecting php.ini), but I want to know how I set these on a per ibay basis (or even if that possible / correct)...

cheers
Rob