DelphiFAQ Home Search:

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

 

comments196 comments. Current rating: 2 stars (195 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:

You are on page 13 of 14, other pages: 1 2 3 10 11 12 [13] 14
2019-06-27, 16:36:04
anonymous from Russian Federation  
rating
[url= https://levitrasale...m/]levitra buy online[/url] [url= https://cafergot100.com/]cheap cafergot[/url] [url= https://tetracycline..com/]where to buy tetracycline[/url] [url= https://azithromycin..ithromycin 500 dosage online pharmacy[/url] [url= https://sildalis120.com/]buy sildalis[/url] [url= https://vardenafilbuy.com/]buy vardenafil canada[/url] [url= https://doxycycline0..line[/url] [url= https://lisinoprilbu..lisinopril 20 mg tablets[/url] [url= https://hydrochlorot..rothiazide 25[/url] [url= https://femaleviagra..om/]female viagra pills[/url]
2019-06-27, 16:45:14
anonymous from Russian Federation  
rating
2019-06-27, 16:54:13
anonymous from Russian Federation  
rating
[url= https://sildalis120.../]sildalis online[/url] [url= https://femaleviagra..om/]female viagra pills[/url] [url= https://vardenafilbu..vardenafil generic levitra[/url] [url= https://xenical120mg..m/]xenical 120 mg[/url] [url= https://generictadal..m/]generic tadalafil[/url]
2019-06-27, 16:57:46
anonymous from Russian Federation  
rating
[url= https://tetracycline..tracycline prescription[/url] [url= https://buydiflucan.com/]buy diflucan[/url] [url= https://cafergot100.com/]cheap cafergot[/url] [url= https://femaleviagra..4.com/]buy female viagra online[/url] [url= https://sildalis120.../]sildalis buy[/url]
2019-06-27, 17:05:48
anonymous from Russian Federation  
rating
[url= https://lisinoprilbuy.com/]buy lisinopril online[/url]
2019-06-27, 18:00:54
anonymous from Russian Federation  
rating
2019-06-27, 19:27:07
anonymous from Russian Federation  
rating
2019-06-27, 19:27:21
anonymous from Russian Federation  
rating
2019-06-27, 19:57:46
anonymous from Russian Federation  
rating
2019-06-27, 20:17:44
anonymous from Russian Federation  
rating
[url= https://azithromycin..ithromycin 500 dosage online pharmacy[/url]
2019-06-27, 20:46:32
anonymous from Russian Federation  
rating
2019-06-27, 20:53:36
anonymous from Russian Federation  
rating
2019-06-27, 21:27:30
anonymous from Russian Federation  
rating
2019-06-27, 21:30:13
anonymous from Russian Federation  
rating
[url= https://sildalis120.com/]buy sildalis[/url] [url= https://zoviraxacycl..r.com/]buy valacyclovir online[/url] [url= https://allopurinolz..im.com/]no prescription allopurinol[/url] [url= https://cafergot100.../]cafergot pills[/url] [url= https://vardenafilbuy.com/]buy vardenafil uk[/url]
2019-06-27, 21:36:21
anonymous from Russian Federation  
rating
[url= https://cafergot100.../]cafergot online[/url] [url= https://buydiflucan.com/]buy diflucan 150mg[/url] [url= https://tetracycline../]purchase tetracycline[/url] [url= https://femaleviagra..om/]female viagra[/url] [url= https://sildenafil10..0.com/]buy sildenafil citrate 100mg[/url] [url= https://wellbutrin30..wellbutrin bupropion[/url] [url= https://doxycycline0../]purchase doxycycline online[/url] [url= https://vardenafilbu..vardenafil buy[/url]
You are on page 13 of 14, other pages: 1 2 3 10 11 12 [13] 14

 

 

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: