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 28 of 29, other pages: 1 2 3 25 26 27 [28] 29
2019-06-30, 15:20:30
anonymous from Russian Federation  
rating
[url= https://zoviraxacycl..r.com/]buy acyclovir without prescription[/url] [url= https://sildenafil10..0.com/]buy sildenafil[/url] [url= https://lisinoprilbu..lisinopril 10mg[/url] [url= https://azithromycin..ithromycin tablets 250 mg[/url] [url= https://atarax10.com/]atarax generic[/url] [url= https://doxycycline02.com/]buy doxycycline without prescription[/url] [url= https://sildalis120.com/]buy sildalis[/url] [url= https://generictadal..g.com/]buy cheap tadalafil[/url] [url= https://levitrasale...itra[/url] [url= https://atenolol25.c../]atenolol 50 mg tab[/url]
2019-06-30, 15:30:14
anonymous from Russian Federation  
rating
2019-06-30, 16:51:11
anonymous from Russian Federation  
rating
[url= https://doxycycline0..oxycycline 100 mg[/url] [url= https://femaleviagra..4.com/]buy female viagra[/url]
2019-06-30, 17:14:22
anonymous from Russian Federation  
rating
[url= https://generictadal..m/]generic tadalafil[/url]
2019-06-30, 17:23:40
anonymous from Russian Federation  
rating
[url= https://azithromycin..ithromycin 500mg[/url] [url= https://allopurinolz..inol[/url] [url= https://xenical120mg..ical[/url] [url= https://femaleviagra..om/]female viagra cheap[/url] [url= https://cafergot100.com/]where can i where to buy cafergot for migraines[/url] [url= https://buydiflucan.../]diflucan buy online[/url] [url= https://atarax10.com/]generic for atarax[/url] [url= https://vardenafilbuy.com/]buy vardenafil canada[/url] [url= https://tetracycline..com/]order tetracycline online[/url] [url= https://lisinoprilbuy.com/]no prescription lisinopril[/url]
2019-06-30, 17:30:58
anonymous from Russian Federation  
rating
2019-06-30, 17:53:21
anonymous from Russian Federation  
rating
2019-06-30, 19:16:06
anonymous from Russian Federation  
rating
[url= https://cafergot100...egot[/url] [url= https://sildenafil10..sildenafil drug[/url] [url= https://hydrochlorot..rothiazide 25 mg price[/url] [url= https://generictadal..]tadalafil tablets 20 mg[/url] [url= https://wellbutrin30..wellbutrin sr 150[/url] [url= https://femaleviagra..om/]viagra for females[/url] [url= https://doxycycline0..line[/url] [url= https://atarax10.com/]atarax tablets[/url] [url= https://vardenafilbu..com/]where to buy vardenafil[/url] [url= https://allopurinolz..llopurinol buy[/url] [url= https://sildalis120.../]sildalis without prescription[/url] [url= https://tetracycline..tracycline orders without a prescription[/url] [url= https://atenolol25.c..olol[/url] [url= https://buydiflucan.com/]can i buy fluconazole online[/url] [url= https://levitrasale.com/]buy cheap levitra[/url]
2019-06-30, 19:59:18
anonymous from Russian Federation  
rating
2019-06-30, 20:32:12
anonymous from Russian Federation  
rating
2019-06-30, 20:36:11
anonymous from Russian Federation  
rating
2019-06-30, 21:02:15
anonymous from Russian Federation  
rating
2019-06-30, 21:27:35
anonymous from Russian Federation  
rating
2019-06-30, 21:59:59
anonymous from Russian Federation  
rating
[url= https://generictadal..afil[/url] [url= https://tetracycline..tracycline orders without a prescription[/url] [url= https://azithromycin..ithromycin 250 mg[/url] [url= https://cafergot100...m/]generic cafergot[/url] [url= https://doxycycline0..com/]order doxycycline[/url]
2019-06-30, 22:10:42
anonymous from Russian Federation  
rating
You are on page 28 of 29, other pages: 1 2 3 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: