DelphiFAQ Home Search:

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

 

comments628 comments. Current rating: 2 stars (627 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 11 of 42, other pages: 1 2 3 8 9 10 [11] 12 13 14 39 40 41 42
2019-06-14, 14:51:15
anonymous from Russian Federation  
rating
2019-06-14, 15:27:59
anonymous from Russian Federation  
rating
2019-06-14, 15:32:49
anonymous from Russian Federation  
rating
[url= https://ventolin100.com/]no prescription proventil inhaler[/url] [url= https://antabusedisu../]antabuse disulfiram[/url] [url= https://viagra25.com..agra[/url] [url= https://prednisonetab.com/]buy prednisone[/url] [url= https://furosemide10..furosemide 20mg[/url] [url= https://prednisolone..lone[/url] [url= https://lasixiv.com/]buy cheap lasix without prescription[/url] [url= https://metformin850..]metformin 850[/url] [url= https://suhagra50.com/]suhagra online[/url] [url= https://trazodone100..m/]generic trazodone[/url]
2019-06-14, 15:57:45
anonymous from Russian Federation  
rating
[url= https://prednisolone..ednisolone 20mg[/url] [url= https://lasixiv.com/]buy generic lasix[/url]
2019-06-14, 16:19:06
anonymous from Russian Federation  
rating
2019-06-14, 17:03:33
anonymous from Russian Federation  
rating
2019-06-14, 18:57:37
anonymous from Russian Federation  
rating
2019-06-14, 19:05:03
anonymous from Russian Federation  
rating
2019-06-14, 19:32:21
anonymous from Russian Federation  
rating
2019-06-14, 19:40:17
anonymous from Russian Federation  
rating
2019-06-14, 21:18:28
anonymous from Russian Federation  
rating
2019-06-22, 21:14:22
anonymous from Russian Federation  
rating
[url= https://tadalafil20m..]tadalafil dosage 40 mg[/url]
2019-06-22, 22:21:32
anonymous from Russian Federation  
rating
2019-06-27, 11:48:02
anonymous from Russian Federation  
rating
[url= https://sildalis120.com/]buy sildalis[/url] [url= https://wellbutrin30..wellbutrin 300mg[/url] [url= https://vardenafilbu..vardenafil buy[/url] [url= https://levitrasale.com/]buy cheap levitra online[/url] [url= https://atenolol25.c../]atenolol online[/url]
2019-06-27, 12:18:47
anonymous from Russian Federation  
rating
You are on page 11 of 42, other pages: 1 2 3 8 9 10 [11] 12 13 14 39 40 41 42

 

 

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: