DelphiFAQ Home Search:

How can I create my own php.ini config file?

 

comments74 comments. Current rating: 3 stars (73 votes). Leave comments and/ or rate it.

Question:

My system has no php.ini configuration file and thus works with the default settings. How can I create a php.ini file (and where do I need to place it)?

Answer:

The location for your config file was set when php was compiled (using directive --with-config-file-path=/directory. The default location on Unix machines is /usr/local/lib/php.ini and on Windows computers it is in the Windows directory e.g. c:\windows\php.ini.

To create a file in that location, take the file php.ini-dist and copy it to the above mentioned location, then rename it to php.ini. Under Windows you could also keep configuration settings in the registry but I recommend using the text file since it makes migrations easier.

Afterwards you can confirm that the php.ini file works by calling phpinfo():

<?php
  phpinfo();
 ?>

Comments:

You are on page 1 of 5, other pages: [1] 2 3 4 5
2008-10-10, 16:26:33
anonymous  
I need also this information!

Thank you.

http://www.coigach.net
2008-12-28, 20:19:39
anonymous from India  
rating
hi i want to add php.ini file but not able to get its path correctly


http://www.anww.org
2019-04-08, 15:33:58
anonymous from Russian Federation  
rating
2019-04-08, 16:21:07
anonymous from Russian Federation  
rating
2019-04-08, 16:22:54
anonymous from Russian Federation  
rating
2019-04-08, 16:34:20
anonymous from Russian Federation  
rating
[url= https://stromectolon..com/]cheap stromectol[/url] [url= https://zoloft75.com/]zoloft prescription[/url] [url= https://buyacyclovir..]acyclovir buy online[/url] [url= https://albuterol24...erol[/url] [url= https://metformin100..]metformin 500 mg without prescription[/url]
2019-04-08, 16:39:16
anonymous from Russian Federation  
rating
2019-04-08, 17:11:11
anonymous from Russian Federation  
rating
[url= https://metformin100..rmin[/url] [url= https://buyamoxicill..moxicillin 500 mg purchase without prescription[/url] [url= https://stromectolon..stromectol 3mg[/url] [url= https://buypropeciaf...com[/url] [url= https://femaleviagra..om/]female viagra[/url] [url= https://prednisonege..c.com/]buy prednisone[/url] [url= https://viagrasofton..com/]order viagra soft[/url] [url= https://prednisolone..1.com/]buy prednisolone 5mg[/url] [url= https://zithromax500.com/]buy zithromax online[/url] [url= https://lisinopril0...lisinopril 20mg tablets[/url]
2019-04-08, 17:11:24
anonymous from Russian Federation  
rating
[url= https://prednisolone..1.com/]buy prednisolone online[/url] [url= https://viagrasofton..om/]viagra soft tabs[/url] [url= https://amoxicillin9..moxicillin 250[/url] [url= https://buydoxycycli..n.com/]buy doxycycline without prescription[/url] [url= https://albuterol24...erol[/url] [url= https://prednisonege..m/]generic prednisone[/url] [url= https://cialis3.com/]canadian pharmacy cialis[/url] [url= https://buyamoxicill..moxicillin without prescription[/url] [url= https://lisinopril0...lisinopril without an rx[/url] [url= https://buylasixfuro..furosemide 12.5 mg[/url]
2019-04-08, 17:14:37
anonymous from Russian Federation  
rating
[url= https://camsites.fun/]bbw cam[/url] [url= https://nudelive.fun/]live nude[/url] [url= https://adultchatroo..s.tk/]free adult chat rooms[/url] [url= https://freechatroom...icu/]free chat rooms[/url] [url= https://adultchatroo..icu/]adult chat room[/url] [url= https://videochatroo..eam/]video chat room[/url] [url= https://freesexchat.cf/]adult video chat[/url] [url= https://slutcams.icu/]slut cams[/url] [url= https://videosexchat.fun/]sex on cam[/url] [url= https://girlcams.site/]girl chat[/url]
2019-04-08, 17:22:16
anonymous from Russian Federation  
rating
2019-04-08, 17:53:00
anonymous from Russian Federation  
rating
[url= https://girlchat.site/]chat with girls[/url] [url= https://hotwebcamgir..ream/]free adult webcam[/url] [url= https://freesexwebca..site/]free webcam girls[/url] [url= https://freeadultsex...fun/]free adult video chat[/url] [url= https://adultchatroo...gq/]adult chat[/url]
2019-04-08, 17:55:15
anonymous from Russian Federation  
rating
[url= https://doxycycline2../]purchase doxycycline[/url] [url= https://acyclovir1.com/]buy aciclovir[/url] [url= https://ventolinhfai..s.com/]buy cheap ventolin[/url] [url= https://cialis3.com/]cialis canadian[/url] [url= https://prednisolone..ednisolone buy[/url] [url= https://genericciali..mg.com/]no prescription cialis[/url] [url= https://buydoxycycli..m/]generic doxycycline[/url] [url= https://amoxicillin9..moxicillin 500mg capsules uk[/url] [url= https://viagrasofton..om/]viagra soft[/url] [url= https://albuterol24...m/]generic albuterol online[/url]
2019-04-08, 18:21:48
anonymous from Russian Federation  
rating
2019-04-08, 19:10:34
anonymous from Russian Federation  
rating
You are on page 1 of 5, other pages: [1] 2 3 4 5

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: