PHP.ini Settings

Discussion regarding Joomla! 3.x Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
User avatar
bluesardine
Joomla! Guru
Joomla! Guru
Posts: 502
Joined: Fri Nov 16, 2007 10:49 pm
Location: Oxford
Contact:

PHP.ini Settings

Post by bluesardine » Wed Nov 25, 2015 11:09 am

Hi Guys

What do you use for PHP.ini settings for Joomla?

I am using:

max_execution_time = 300
upload_max_filesize = 150M
post_max_size = 150M
memory_limit = 256M
display_errors = 0
register_globals = 0
output_buffering = 0
magic_quotes_gpc = '0'
max_input_vars = 3000

What do others use?
Joomla Web designer Oxford https://www.swankypixels.com
Architectural Photographer UK https://www.peterhaken.com

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: PHP.ini Settings

Post by itoctopus » Wed Nov 25, 2015 1:30 pm

If I'm not mistaken there are some extensions out there that use output buffering, but if your website is working without it, then that's OK.

As for the other settings:

- We typically have the max_execution_time to 20-30 seconds. 300 seconds is way too much and can worsen performance issues.
- The memory limit that you're using is considerably higher than the one we typically use for our clients, which is 128 MB. I'm not sure if 256 MB is really needed (although if you have 150 MB upload limit, then you might need it). However, I have to say that some extensions, such as jEvents, have very high memory usage and one might need 256 MB (sometimes more) for serving them.
- The rest are more or less what we use.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

RedEye
Joomla! Ace
Joomla! Ace
Posts: 1460
Joined: Sat Jan 21, 2006 8:42 pm

Re: PHP.ini Settings

Post by RedEye » Wed Nov 25, 2015 2:17 pm

bluesardine wrote:What do you use for PHP.ini settings for Joomla?
upload_max_filesize >= post_max_size doesn't make much sense
magic_quotes_gpc and register_globals are deprecated since 5.3.0 and removed since 5.4.0

For most clients I use:
max_execution_time = 30
upload_max_filesize = 22M
post_max_size = 24M
memory_limit = 128M
display_errors = 0
output_buffering = 4096
max_input_vars = 2500
itoctopus wrote:If I'm not mistaken there are some extensions out there that use output buffering, but if your website is working without it, then that's OK.
Probably most turn it off since the Joomla installation process does say: recommended value Off

User avatar
bluesardine
Joomla! Guru
Joomla! Guru
Posts: 502
Joined: Fri Nov 16, 2007 10:49 pm
Location: Oxford
Contact:

Re: PHP.ini Settings

Post by bluesardine » Fri Jun 02, 2017 8:28 am

Bump----

Would like to know what Joomla user are using for php.ini expecially as most should be using php 7 now.

Regards Pete
Joomla Web designer Oxford https://www.swankypixels.com
Architectural Photographer UK https://www.peterhaken.com


Locked

Return to “Performance - Joomla! 3.x”