KimberH

Active Member
Dec 29, 2013
34
6
58
cPanel Access Level
Website Owner
Hi, Where can I find an honest article that will give me the best or highest PHP INI settings? I've read so many articles telling me different things and need a good source for this information. Thank you
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,494
1,009
313
cPanel Access Level
Root Administrator
Hey there! There isn't going to be a "best" as each server is different. It depends on how much traffic you're receiving, your hardware, and the settings you want to make available to your users. Some users might be just fine with peanut butter and jelly, but some users may want to get into artisanal bread options - there's definitely not a one-size fits all for that configuration on the system.

I will recommend that you try and make as many changes as possible through the WHM interface to avoid typos and making sure things get saved properly on the system. We have a guide on that work here: How To Edit Your php.ini File The Right Way
 

shahidi

Active Member
Mar 2, 2006
28
0
151
Sure thing! I'm sorry I can't be more specific but it's best to adjust them as you find the need for additional resources, or to allow other functions for users.
Hi
did you find any php.ini configuration for shared server ?
Thanks
 

KimberH

Active Member
Dec 29, 2013
34
6
58
cPanel Access Level
Website Owner
@shahidi - was there a specific issue you were experiencing with your machine? Everyone's situation is different so there is not a one-size-fits-all solution for PHP settings on a shared machine.
I set up a lot of WordPress sites and was coming up with a default setting I could use with each setup. When I tried to find an answer, no two help articles agree on the best settings.
 
  • Like
Reactions: shahidi

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,494
1,009
313
cPanel Access Level
Root Administrator
That sounds correct to me, as there is no "best" - it's really just based on performance and how much resources each of your sites needs to function, so the best for your machine may not work well on another system.

For example, we place the default PHP memory_limit at 32M, but for some scripts that may not be enough to let them run properly.