DelphiFAQ Home Search:

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

 

comments105 comments. Current rating: 2 stars (104 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 7 of 7, other pages: 1 2 3 4 5 6 [7]
2019-06-09, 13:36:42
anonymous from Russian Federation  
rating
2019-06-09, 17:45:09
anonymous from Russian Federation  
rating
2019-06-09, 19:44:58
anonymous from Russian Federation  
rating
[url= https://lasixiv.com/]lasix 100mg online[/url] [url= https://prednisoneta..prednisone 20 mg tablets[/url] [url= https://metformin850..]metformin 850[/url]
2019-06-09, 19:59:58
anonymous from Russian Federation  
rating
[url= https://suhagra50.com/]buy suhagra online[/url]
2019-06-09, 20:58:57
anonymous from Russian Federation  
rating
2019-06-09, 22:18:04
anonymous from Russian Federation  
rating
2019-06-09, 22:18:21
anonymous from Russian Federation  
rating
2019-06-09, 22:42:12
anonymous from Russian Federation  
rating
2019-06-09, 23:04:43
anonymous from Russian Federation  
rating
2019-06-09, 23:07:08
anonymous from Russian Federation  
rating
2019-06-10, 00:09:18
anonymous from Russian Federation  
rating
2019-06-10, 00:58:45
anonymous from Russian Federation  
rating
[url= https://prednisoneta..com/]where to buy prednisone tablets[/url] [url= https://antabusedisu../]antabuse disulfiram[/url] [url= https://metformin850.com/]buy metformin no prescription[/url] [url= https://viagra25.com/]viagra generics[/url] [url= https://lasixiv.com/]lasix 40mg to buy[/url] [url= https://ventolin100.com/]buy ventolin inhaler[/url] [url= https://suhagra50.co..agra[/url]
2019-06-10, 01:37:45
anonymous from Russian Federation  
rating
[url= https://ventolin100.../]ventolin inhaler no prescription[/url] [url= https://suhagra50.com/]suhagra generic[/url] [url= https://lasixiv.com/..asix[/url] [url= https://prednisolone../]purchase prednisolone[/url] [url= https://viagra25.com/]viagra price comparison[/url]
2019-06-10, 03:04:13
anonymous from Russian Federation  
rating
[url= https://antabusedisu../]antabuse to buy[/url] [url= https://ventolin100...olin[/url] [url= https://lasixiv.com/]lasix 40mg to buy[/url] [url= https://viagra25.com..agra[/url] [url= https://suhagra50.com/]suhagra online[/url] [url= https://prednisolone4.com/]buy online 10mg prednisolone[/url] [url= https://trazodone100.com/]buy trazodone not generic without a prescription[/url] [url= https://metformin850..]metformin 1000 mg[/url] [url= https://prednisonetab.com/]buy prednisone without a prescription[/url] [url= https://furosemide10...com/]drug furosemide[/url]
2019-06-10, 03:59:11
anonymous from Russian Federation  
rating
[url= https://furosemide10../]purchase furosemide 20 mg[/url] [url= https://viagra25.com/]viagra pills for men[/url] [url= https://prednisonetab.com/]60 mg prednisone[/url] [url= https://antabusedisu..m.com/]buy antabuse uk[/url] [url= https://lasixiv.com/]lasix 20mg[/url]
You are on page 7 of 7, other pages: 1 2 3 4 5 6 [7]

 

 

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: