Jump to content

Recommended changes to php.ini


NotionCommotion

Recommended Posts

Per line 79 of the latest php.ini file (http://git.php.net/?p=php-src.git;a=blob;f=php.ini-production;hb=HEAD), the production php.ini file is recommended for both production and development.  Agree?

 

I would like to know the “typical” recommended changes to this file for both production and development.  My requirements should be assumed typical with the following qualifications:

  • Installed using yum on Centos
  • Apache/2.2.15
  • MySQL (PDO)
  • Either a physical machine or VPS (not a shared host)
  • Primary US market

Hopefully, this provides enough description, and if you still feel it totally depends on each individual’s unique needs, please let that remain unsaid.

 

Below is my initial assessment:

  • Line 445: Change error_reporting to E_ALL for development only.
  • Line 462: Change display_error to On for development only.
  • Line 473: Change display_startup_error to On for development only.
  • Line 568: Leave error_log blank so they go to the SAPI Error Logger (what does this mean?)
  • Line 656: Change post_max_size if specifically needed for the application.  Ideally, this would be changes in a particular script, however, I don’t think this is possible.
  • Line 676: Should default_charset remain at “UTF-8”?
  • Line 799: Change upload_max_filesize if specifically needed for the application.  Ideally, this would be changes in a particular script, however, I don’t think this is possible.

Any other recommended changes?

 

Thank you

Link to comment
Share on other sites

Yea, it is BIG!  I just went over the whole thing (however glossed over areas which I didn't think were as pertinent).  Forgot if was the php.ini or the httpd.conf file that said "read and memorize every single line!"  Well, maybe it wasn't that strong.

 

Thanks for the ini scanner link.  I will check it out.

 

I agree that discussing the entire file is not realistic.  I was looking for a starting point of areas I would want to better analyze and consider changing.  The seven items appear to be ones I would consider doing.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.