DelphiFAQ Home Search:

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

 

comments10 comments. Current rating: 2 stars (9 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();
 ?>

Content-type: text/html

Comments:

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
2018-10-16, 21:53:47
anonymous from France  
rating
sugarhouse casino online <a href=' https://casino-game.../'>lady luck casino free games</a> vegas world slots <a href=' https://casino-game.ooo/ '>play free lucky 777 slots</a> | [url= https://casino-game.ooo/]free online casino games[/url] [url= https://casino-game...oo/]casino games no download no registration[/url]
2018-10-16, 22:55:50
anonymous from France  
rating
casinos online <a href=' https://casinovegas.../'>most popular free casino slots</a> all free slots <a href=' https://casinovegas.icu/ '>royal river casino</a> | [url= https://casinovegas.icu/]real casino slots[/url] [url= https://casinovegas.icu/]play online casino games[/url]
2018-10-19, 01:32:37
anonymous from France  
rating
200 free slot casino games <a href=' https://casinogamesl..u/'>all games list free slots</a> free penny slots with bonus spins <a href=' https://casinogameslist.icu/ '>parx casino online</a> | [url= https://casinogamesl...icu/]free slots no download[/url] [url= https://casinogamesl...icu/]play lady luck online[/url]
2018-10-19, 02:37:13
anonymous from France  
rating
cbd side effects <a href=' https://onlinecbdoil..</a> cbd oil in canada <a href=' https://onlinecbdoil.icu/ '>cbd oil in canada</a> | [url= https://onlinecbdoil.icu/]full spectrum cbd oil[/url] [url= https://onlinecbdoil.icu/]cbd oil price[/url]
2018-10-29, 21:30:17
anonymous from France  
rating
penny slots free online <a href=' https://vegascasino...u/'>gsn casino games</a> | <a href=' https://vegascasino.icu/ '>zone online casino</a> | [url= https://vegascasino...cu/]casino games online[/url] [url= https://vegascasino...]tropicana online casino[/url]
2018-10-29, 22:36:47
anonymous from France  
rating
penny slots <a href=' https://usacasino.oo../'>real casino</a> | <a href=' https://usacasino.ooo/ '>free casino games slotomania</a> | [url= https://usacasino.ooo/]hyper casinos[/url] [url= https://usacasino.ooo/]casino bonus[/url]
2018-10-29, 22:38:46
anonymous from France  
rating
slots of vegas <a href=' https://realmoneyslo../'>best online casino</a> | <a href=' https://realmoneyslots.icu/ '>slots games</a> | [url= https://realmoneyslo...icu/]free casino games[/url] [url= https://realmoneyslo..cu/]online casino gambling[/url]
2018-10-29, 22:38:54
anonymous from France  
rating
vegas slots online <a href=' https://casinoslotsp..>casino real money</a> | <a href=' https://casinoslotsplay.icu/ '>bovada casino</a> | [url= https://casinoslotsp...icu/]free online casino[/url] [url= https://casinoslotsp..cu/]casino game[/url]

 

 

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: