DelphiFAQ Home Search:

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

 

comments163 comments. Current rating: 2 stars (162 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 10 of 11, other pages: 1 2 3 7 8 9 [10] 11
2019-06-10, 22:32:21
anonymous from Russian Federation  
rating
[url= https://lasixiv.com/..asix[/url] [url= https://antabusedisu../]antabuse disulfiram[/url] [url= https://prednisonetab.com/]buy prednisone without prescription[/url] [url= https://ventolin100.../]ventolin inhaler no prescription[/url] [url= https://prednisolone..lone[/url]
2019-06-11, 00:26:56
anonymous from Russian Federation  
rating
2019-06-11, 01:16:03
anonymous from Russian Federation  
rating
[url= https://trazodone100..]trazodone hydrochloride[/url]
2019-06-11, 01:56:26
anonymous from Russian Federation  
rating
[url= https://lasixiv.com/]lasix water pills for sale[/url] [url= https://prednisolone..com/]order prednisolone online[/url] [url= https://trazodone100.com/]buy trazodone[/url] [url= https://ventolin100...]proventil inhaler for sale[/url] [url= https://furosemide10..furosemide 40 mg without prescription[/url] [url= https://prednisoneta..prednisone 5mg tablets[/url]
2019-06-11, 02:12:33
anonymous from Russian Federation  
rating
[url= https://viagra25.com/]viagra 100mg pills[/url]
2019-06-11, 02:44:10
anonymous from Russian Federation  
rating
[url= https://furosemide10../]purchase furosemide 20 mg[/url]
2019-06-11, 04:33:09
anonymous from Russian Federation  
rating
[url= https://metformin850..]metformin 500mg[/url] [url= https://trazodone100..]trazodone 100mg[/url] [url= https://ventolin100.com/]buy ventolin on line[/url] [url= https://prednisonetab.com/]buy prednisone online canada without prescription[/url] [url= https://prednisolone..lone[/url] [url= https://suhagra50.com/]suhagra online[/url] [url= https://lasixiv.com/]lasix buy[/url] [url= https://furosemide10..furosemide 40 mg tablets[/url] [url= https://viagra25.com..agra[/url] [url= https://antabusedisu../]antabuse disulfiram[/url]
2019-06-11, 04:58:23
anonymous from Russian Federation  
rating
[url= https://viagra25.com/]price of viagra per pill[/url] [url= https://prednisonetab.com/]5mg prednisone[/url]
2019-06-11, 05:12:26
anonymous from Russian Federation  
rating
2019-06-14, 11:20:12
anonymous from Russian Federation  
rating
2019-06-14, 11:28:22
anonymous from Russian Federation  
rating
2019-06-14, 11:50:10
anonymous from Russian Federation  
rating
[url= https://metformin850..]metformin 850[/url] [url= https://suhagra50.com/]generic suhagra[/url] [url= https://viagra25.com/]viagra pills for sale[/url] [url= https://prednisolone4.com/]buy prednisolone online[/url] [url= https://furosemide10..furosemide 80 mg[/url]
2019-06-14, 12:49:00
anonymous from Russian Federation  
rating
2019-06-14, 14:25:44
anonymous from Russian Federation  
rating
2019-06-14, 14:30:22
anonymous from Russian Federation  
rating
You are on page 10 of 11, other pages: 1 2 3 7 8 9 [10] 11

 

 

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: