DelphiFAQ Home Search:

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

 

comments120 comments. Current rating: 2 stars (119 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 8 of 8, other pages: 1 2 3 4 5 6 7 [8]
2019-06-10, 04:16:46
anonymous from Russian Federation  
rating
2019-06-10, 04:28:22
anonymous from Russian Federation  
rating
[url= https://furosemide10..furosemide 40 mg diuretic[/url]
2019-06-10, 05:23:42
anonymous from Russian Federation  
rating
[url= https://viagra25.com/]cheap viagra from india[/url] [url= https://metformin850.com/]buy metformin er[/url] [url= https://lasixiv.com/]40 mg lasix[/url] [url= https://suhagra50.co..agra[/url] [url= https://prednisoneta..prednisone 20 mg tablets[/url] [url= https://ventolin100.com/]no prescription ventolin inhaler[/url] [url= https://antabusedisu../]antabuse disulfiram[/url] [url= https://prednisolone..om/]online prednisolone[/url]
2019-06-10, 05:50:36
anonymous from Russian Federation  
rating
[url= https://antabusedisu..m.com/]buy antabuse[/url] [url= https://prednisolone4.com/]buy prednisolone[/url] [url= https://metformin850.com/]buy metformin er[/url] [url= https://lasixiv.com/]order lasix with no prescription[/url] [url= https://viagra25.com/]viagra cost per pill[/url] [url= https://prednisoneta..sone[/url] [url= https://ventolin100.../]ventolin inhaler no prescription[/url] [url= https://suhagra50.com/]generic suhagra[/url] [url= https://furosemide10..mide[/url] [url= https://trazodone100.com/]buy trazadone non generic on line without a prescription[/url]
2019-06-10, 06:13:02
anonymous from Russian Federation  
rating
[url= https://prednisolone..om/]buying prednisoline tablets[/url] [url= https://trazodone100..]trazodone hydrochloride 100mg[/url] [url= https://furosemide10..furosemide 40 mg cheap[/url] [url= https://suhagra50.co..agra[/url] [url= https://ventolin100.../]ventolin spray[/url] [url= https://lasixiv.com/]buy lasix 40 mg[/url] [url= https://prednisoneta..prednisone 5mg tablets[/url] [url= https://viagra25.com..agra[/url] [url= https://antabusedisu..disulfiram antabuse[/url] [url= https://metformin850.com/]buy metformin without prescription[/url]
2019-06-10, 06:54:26
anonymous from Russian Federation  
rating
[url= https://antabusedisu..m.com/]buy cheap antabuse[/url]
2019-06-10, 07:06:05
anonymous from Russian Federation  
rating
2019-06-10, 07:28:14
anonymous from Russian Federation  
rating
2019-06-10, 07:36:40
anonymous from Russian Federation  
rating
2019-06-10, 09:21:03
anonymous from Russian Federation  
rating
2019-06-10, 10:13:31
anonymous from Russian Federation  
rating
[url= https://furosemide10..m/]generic furosemide[/url] [url= https://ventolin100.../]ventolin online pharmacy[/url] [url= https://suhagra50.com/]generic suhagra[/url] [url= https://trazodone100.com/]buy trazodone online[/url] [url= https://prednisoneta..sone[/url] [url= https://lasixiv.com/..asix[/url] [url= https://viagra25.com/]buy female viagra online[/url] [url= https://metformin850.com/]buy metfornin without prescription drugs online[/url] [url= https://antabusedisu../]antabuse disulfiram[/url] [url= https://prednisolone..om/]buying prednisolone 5mg online without prescription[/url]
2019-06-10, 10:17:04
anonymous from Russian Federation  
rating
2019-06-10, 10:24:48
anonymous from Russian Federation  
rating
[url= https://furosemide10...com/]drug furosemide[/url]
2019-06-10, 10:37:38
anonymous from Russian Federation  
rating
2019-06-10, 10:38:41
anonymous from Russian Federation  
rating
[url= https://lasixiv.com/]lasix buy[/url] [url= https://metformin850..com/]where i can buy metformin without a prescription drugs[/url] [url= https://suhagra50.com/]suhagra generic[/url] [url= https://ventolin100.com/]buy cheap ventolin[/url] [url= https://trazodone100.com/]buy trazodone[/url] [url= https://furosemide10..furosemide 40 mg without prescription[/url] [url= https://prednisolone..lone[/url] [url= https://prednisoneta..prednisone 5 mg tablets[/url] [url= https://antabusedisu../]antabuse to buy[/url] [url= https://viagra25.com/]viagra price comparison[/url]
You are on page 8 of 8, other pages: 1 2 3 4 5 6 7 [8]

 

 

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: