DelphiFAQ Home Search:

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

 

comments510 comments. Current rating: 2 stars (509 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 34 of 34, other pages: 1 2 3 31 32 33 [34]
2019-07-01, 21:37:43
anonymous from Russian Federation  
rating
2019-07-01, 21:41:48
anonymous from Russian Federation  
rating
2019-07-01, 21:54:55
anonymous from Russian Federation  
rating
[url= https://azithromycin..ithromycin 500 mg[/url] [url= https://atarax10.com/]atarax pills[/url] [url= https://allopurinolz..llopurinol no prescription[/url] [url= https://sildalis120...m/]generic sildalis[/url] [url= https://generictadal..m/]generic cialis tadalafil[/url] [url= https://tetracycline..tracycline antibiotic[/url] [url= https://sildenafil10..sildenafil online[/url] [url= https://vardenafilbuy.com/]buy vardenafil cheap[/url] [url= https://xenical120mg..m/]xenical online[/url] [url= https://femaleviagra..4.com/]buy female viagra online[/url]
2019-07-01, 22:00:16
anonymous from Russian Federation  
rating
2019-07-01, 22:33:13
anonymous from Russian Federation  
rating
[url= https://vardenafilbuy.com/]buy vardenafil canada[/url] [url= https://tetracycline..5.com/]buy tetracycline[/url] [url= https://hydrochlorot..rothiazide 25[/url] [url= https://lisinoprilbu..lisinopril 5mg tablets[/url] [url= https://atarax10.com/]atarax pills[/url] [url= https://sildenafil10..0.com/]buy sildenafil citrate[/url] [url= https://zoviraxacycl..m/]zovirax cream[/url] [url= https://cafergot100.com/]buy cafergot[/url] [url= https://atenolol25.c../]atenolol 50mg[/url] [url= https://allopurinolz..m.com/]buy allopurinol online[/url]
2019-07-01, 22:33:52
anonymous from Russian Federation  
rating
2019-07-01, 23:28:51
anonymous from Russian Federation  
rating
2019-07-01, 23:42:39
anonymous from Russian Federation  
rating
[url= https://sildalis120.../]sildalis online[/url] [url= https://hydrochlorot..rothiazide 25mg tablets[/url] [url= https://xenical120mg.com/]buy xenical online[/url] [url= https://atarax10.com/]atarax generic[/url] [url= https://wellbutrin30..wellbutrin 300 mg[/url] [url= https://cafergot100.../]cafergot pills[/url]
2019-07-01, 23:59:25
anonymous from Russian Federation  
rating
[url= https://lisinoprilbu..lisinopril 20mg tablets[/url]
2019-07-02, 00:08:08
anonymous from Russian Federation  
rating
[url= https://wellbutrin30..wellbutrin prescription[/url]
2019-07-02, 00:11:29
anonymous from Russian Federation  
rating
2019-07-02, 00:20:07
anonymous from Russian Federation  
rating
2019-07-02, 00:50:26
anonymous from Russian Federation  
rating
2019-07-02, 00:51:53
anonymous from Russian Federation  
rating
[url= https://tetracycline..5.com/]buy tetracycline online[/url] [url= https://cafergot100.../]cafergot online[/url] [url= https://lisinoprilbu..m/]generic drug for lisinopril[/url] [url= https://zoviraxacycl..m/]zovirax tablets[/url] [url= https://doxycycline0..oxycycline hyclate 100mg[/url] [url= https://xenical120mg..m/]xenical 120 mg[/url] [url= https://atarax10.com/]buy atarax online[/url] [url= https://femaleviagra..om/]female viagra pills[/url] [url= https://azithromycin..ithromycin 250 mg suppliers[/url] [url= https://wellbutrin300.com/]buy wellbutrin online[/url]
2019-07-02, 01:03:05
anonymous from Russian Federation  
rating
[url= https://levitrasale...m/]generic levitra online[/url]
You are on page 34 of 34, other pages: 1 2 3 31 32 33 [34]

 

 

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: