DelphiFAQ Home Search:

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

 

comments427 comments. Current rating: 2 stars (426 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 27 of 29, other pages: 1 2 3 24 25 26 [27] 28 29
2019-06-30, 10:56:37
anonymous from Russian Federation  
rating
2019-06-30, 10:57:54
anonymous from Russian Federation  
rating
2019-06-30, 11:39:07
anonymous from Russian Federation  
rating
2019-06-30, 11:55:56
anonymous from Russian Federation  
rating
2019-06-30, 12:05:37
anonymous from Russian Federation  
rating
2019-06-30, 12:29:38
anonymous from Russian Federation  
rating
[url= https://hydrochlorot..rothiazide 25[/url] [url= https://tetracycline..com/]where can i buy tetracycline[/url] [url= https://cafergot100.com/]buy cafergot online[/url] [url= https://atenolol25.c../]atenolol 50 mg tab[/url] [url= https://sildenafil10..sildenafil citrate over the counter[/url] [url= https://femaleviagra..om/]viagra for woman[/url] [url= https://zoviraxacycl..m/]zovirax cost[/url] [url= https://doxycycline0..oxycycline without a prescription[/url] [url= https://wellbutrin300.com/]buy wellbutrin[/url] [url= https://atarax10.com/]atarax for anxiety[/url] [url= https://levitrasale.com/]buy levitra 20 mg[/url] [url= https://xenical120mg..m/]xenical buy online[/url] [url= https://allopurinolz..inol[/url] [url= https://buydiflucan.com/]buy generic diflucan[/url] [url= https://generictadal..]tadalafil 5mg[/url]
2019-06-30, 12:46:59
anonymous from Russian Federation  
rating
[url= https://hydrochlorot..rothiazide 25 mg tab[/url] [url= https://wellbutrin30..wellbutrin xl 300 mg generic[/url] [url= https://lisinoprilbu..pril[/url] [url= https://buydiflucan.com/]buy diflucan[/url] [url= https://sildenafil10...com/]over the counter sildenafil[/url] [url= https://sildalis120.com/]buy sildalis[/url] [url= https://allopurinolz..llopurinol over the counter[/url]
2019-06-30, 12:47:39
anonymous from Russian Federation  
rating
2019-06-30, 13:16:20
anonymous from Russian Federation  
rating
[url= https://femaleviagra..com/]where to buy female viagra[/url]
2019-06-30, 14:04:54
anonymous from Russian Federation  
rating
[url= https://vardenafilbuy.com/]buy vardenafil uk[/url]
2019-06-30, 14:26:08
anonymous from Russian Federation  
rating
2019-06-30, 14:51:55
anonymous from Russian Federation  
rating
2019-06-30, 14:55:22
anonymous from Russian Federation  
rating
2019-06-30, 15:09:09
anonymous from Russian Federation  
rating
[url= https://xenical120mg..m/]xenical 120mg no prescription[/url] [url= https://cafergot100.../]ordering cafegot[/url] [url= https://azithromycin..ithromycin buy online[/url] [url= https://buydiflucan.com/]buy diflucan over the counter[/url] [url= https://sildenafil10..sildenafil without prescription[/url]
2019-06-30, 15:18:15
anonymous from Russian Federation  
rating
You are on page 27 of 29, other pages: 1 2 3 24 25 26 [27] 28 29

 

 

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: