DelphiFAQ Home Search:

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

 

comments585 comments. Current rating: 2 stars (584 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 39 of 39, other pages: 1 2 3 36 37 38 [39]
2019-07-02, 15:53:47
anonymous from Russian Federation  
rating
2019-07-02, 15:54:36
anonymous from Russian Federation  
rating
[url= https://doxycycline0..oxycycline 100 mg[/url] [url= https://hydrochlorot..rothiazide 25mg tablets[/url] [url= https://lisinoprilbu..lisinopril 40 mg[/url] [url= https://cafergot100.../]cafergot medication[/url] [url= https://xenical120mg.com/]buy xenical orlistat[/url] [url= https://femaleviagra..om/]female viagra pills[/url] [url= https://vardenafilbuy.com/]buy vardenafil canada[/url] [url= https://atarax10.com/]atarax 25mg[/url] [url= https://allopurinolz..llopurinol no prescription[/url] [url= https://atenolol25.c../]atenolol 25 mg[/url]
2019-07-02, 16:24:31
anonymous from Russian Federation  
rating
[url= https://lisinoprilbu..lisinopril 20mg tablets[/url] [url= https://allopurinolz..llopurinol without prescription[/url] [url= https://levitrasale...itra[/url] [url= https://vardenafilbu..com/]where to buy vardenafil[/url] [url= https://femaleviagra..4.com/]buy female viagra[/url] [url= https://buydiflucan.com/]buy diflucan over the counter[/url]
2019-07-02, 16:35:12
anonymous from Russian Federation  
rating
2019-07-02, 16:44:37
anonymous from Russian Federation  
rating
2019-07-02, 16:48:48
anonymous from Russian Federation  
rating
2019-07-02, 17:52:00
anonymous from Russian Federation  
rating
[url= https://hydrochlorot../]losartan hydrochlorothiazide[/url] [url= https://atenolol25.com/]buy atenolol[/url] [url= https://femaleviagra..om/]female viagra cream[/url] [url= https://atarax10.com/]buy atarax online[/url] [url= https://generictadal..]tadalafil 20[/url]
2019-07-02, 17:59:58
anonymous from Russian Federation  
rating
2019-07-02, 18:07:41
anonymous from Russian Federation  
rating
2019-07-02, 18:08:38
anonymous from Russian Federation  
rating
2019-07-02, 18:16:08
anonymous from Russian Federation  
rating
[url= https://tetracycline..tracycline antibiotics[/url] [url= https://levitrasale.com/]buy generic levitra[/url] [url= https://doxycycline0..oxycycline online[/url] [url= https://lisinoprilbu..lisinopril 20 mg no prescription[/url] [url= https://zoviraxacycl..r.com/]buy acyclovir[/url] [url= https://azithromycin..ithromycin buy[/url]
2019-07-02, 19:00:48
anonymous from Russian Federation  
rating
[url= https://xenical120mg.com/]buy xenical[/url] [url= https://hydrochlorot..rothiazide 25 mg for sale[/url] [url= https://allopurinolz../]purchase allopurinol online[/url] [url= https://levitrasale...m/]levitra 20 mg cost[/url]
2019-07-02, 19:08:45
anonymous from Russian Federation  
rating
2019-07-02, 19:12:24
anonymous from Russian Federation  
rating
2019-07-02, 19:44:59
anonymous from Russian Federation  
rating
[url= https://lisinoprilbu..lisinopril tablets[/url] [url= https://buydiflucan.com/]buy diflucan without prescription[/url] [url= https://hydrochlorot..rothiazide 25[/url] [url= https://doxycycline0..oxycycline 100 mg[/url] [url= https://allopurinolz..com/]order allopurinol[/url]
You are on page 39 of 39, other pages: 1 2 3 36 37 38 [39]

 

 

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: