DelphiFAQ Home Search:

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

 

comments90 comments. Current rating: 3 stars (89 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 6 of 6, other pages: 1 2 3 4 5 [6]
2019-06-08, 23:49:45
anonymous from Russian Federation  
rating
[url= https://ventolin100...m/]generic for ventolin[/url]
2019-06-09, 01:25:04
anonymous from Russian Federation  
rating
2019-06-09, 01:59:45
anonymous from Russian Federation  
rating
2019-06-09, 02:37:48
anonymous from Russian Federation  
rating
[url= https://metformin850..com/]where i can buy metformin without a prescription drugs[/url] [url= https://trazodone100..com/]where to buy trazodone[/url] [url= https://antabusedisu..com/]order antabuse online[/url] [url= https://suhagra50.com/]generic suhagra[/url] [url= https://lasixiv.com/]lasix iv[/url] [url= https://furosemide10..mide[/url] [url= https://prednisolone..com/]cheap prednisolne[/url] [url= https://prednisonetab.com/]buy prednisone[/url] [url= https://ventolin100...olin[/url] [url= https://viagra25.com/]buy viagra pills[/url]
2019-06-09, 02:38:51
anonymous from Russian Federation  
rating
2019-06-09, 02:58:37
anonymous from Russian Federation  
rating
2019-06-09, 04:40:39
anonymous from Russian Federation  
rating
[url= https://prednisolone..lone[/url] [url= https://trazodone100.com/]buy trazodone online[/url] [url= https://suhagra50.com/]buy suhagra[/url] [url= https://ventolin100...olin[/url] [url= https://lasixiv.com/..asix[/url] [url= https://antabusedisu..om/]buying antabuse online[/url] [url= https://furosemide10..furosemide 40 mg without prescription[/url] [url= https://metformin850.com/]buy metformin er[/url] [url= https://viagra25.com/]viagra pills for sale[/url] [url= https://prednisoneta..prednisone over the counter[/url]
2019-06-09, 05:50:30
anonymous from Russian Federation  
rating
[url= https://trazodone100..om/]online trazodone[/url]
2019-06-09, 06:00:46
anonymous from Russian Federation  
rating
2019-06-09, 06:37:02
anonymous from Russian Federation  
rating
[url= https://ventolin100...olin[/url] [url= https://prednisoneta..prednisone 20 mg tablets[/url] [url= https://metformin850..]metformin 850[/url] [url= https://lasixiv.com/]buy lasix without a doctor's prescription[/url]
2019-06-09, 06:55:26
anonymous from Russian Federation  
rating
2019-06-09, 07:27:53
anonymous from Russian Federation  
rating
2019-06-09, 07:37:06
anonymous from Russian Federation  
rating
2019-06-09, 12:34:51
anonymous from Russian Federation  
rating
2019-06-09, 13:06:47
anonymous from Russian Federation  
rating
[url= https://antabusedisu../]antabuse disulfiram[/url] [url= https://prednisolone..ednisolone drug[/url] [url= https://prednisoneta..sone[/url] [url= https://trazodone100..]trazodone 100 mg[/url] [url= https://viagra25.com/]female viagra buy[/url] [url= https://ventolin100.com/]buy ventolin[/url] [url= https://lasixiv.com/..asix[/url] [url= https://suhagra50.com/]suhagra without prescription[/url] [url= https://furosemide10..furosemide 20 mg tab cost[/url] [url= https://metformin850..]metformin 500mg with out presciption[/url]
You are on page 6 of 6, other pages: 1 2 3 4 5 [6]

 

 

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: