DelphiFAQ Home Search:

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

 

comments427 comments. Current rating: 2 stars (426 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 26 of 29, other pages: 1 2 3 23 24 25 [26] 27 28 29
2019-06-30, 06:06:49
anonymous from Russian Federation  
rating
[url= https://sildenafil10..com/]where to buy sildenafil[/url] [url= https://wellbutrin30..wellbutrin sr 150mg[/url] [url= https://tetracycline..tracycline buy online[/url] [url= https://lisinoprilbu...com/]cost of lisinopril[/url] [url= https://doxycycline02.com/]buy doxycycline without prescription[/url] [url= https://levitrasale.com/]buy generic levitra online[/url] [url= https://allopurinolz..llopurinol 300 mg[/url]
2019-06-30, 06:07:31
anonymous from Russian Federation  
rating
2019-06-30, 07:45:03
anonymous from Russian Federation  
rating
[url= https://doxycycline02.com/]buy doxycycline[/url] [url= https://atarax10.com/]atarax cream[/url] [url= https://generictadal..]tadalafil - generic[/url] [url= https://femaleviagra..om/]female viagra[/url] [url= https://buydiflucan.com/]where can i buy diflucan without a prescription[/url] [url= https://hydrochlorot..rothiazide 25[/url] [url= https://sildalis120...alis[/url] [url= https://vardenafilbuy.com/]buy vardenafil uk[/url] [url= https://lisinoprilbu..lisinopril price[/url] [url= https://atenolol25.c../]atenolol 100 mg[/url] [url= https://azithromycin..ithromycin 500 mg[/url] [url= https://zoviraxacycl...com/]over the counter acyclovir[/url] [url= https://cafergot100.../]cafergot online[/url] [url= https://xenical120mg..ical[/url] [url= https://levitrasale.com/]buy levitra 20 mg[/url]
2019-06-30, 07:50:26
anonymous from Russian Federation  
rating
[url= https://sildalis120.com/]buy sildalis[/url]
2019-06-30, 08:01:37
anonymous from Russian Federation  
rating
2019-06-30, 08:22:23
anonymous from Russian Federation  
rating
2019-06-30, 08:29:53
anonymous from Russian Federation  
rating
2019-06-30, 08:46:47
anonymous from Russian Federation  
rating
2019-06-30, 08:47:17
anonymous from Russian Federation  
rating
[url= https://allopurinolz..com/]order allopurinol[/url]
2019-06-30, 09:30:43
anonymous from Russian Federation  
rating
2019-06-30, 09:46:25
anonymous from Russian Federation  
rating
2019-06-30, 10:05:34
anonymous from Russian Federation  
rating
[url= https://generictadal..m/]generic cialis tadalafil 20mg[/url]
2019-06-30, 10:41:13
anonymous from Russian Federation  
rating
2019-06-30, 10:47:50
anonymous from Russian Federation  
rating
2019-06-30, 10:55:02
anonymous from Russian Federation  
rating
You are on page 26 of 29, other pages: 1 2 3 23 24 25 [26] 27 28 29

 

 

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: