DelphiFAQ Home Search:

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

 

comments555 comments. Current rating: 2 stars (554 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 37 of 37, other pages: 1 2 3 34 35 36 [37]
2019-07-02, 09:09:41
anonymous from Russian Federation  
rating
[url= https://sildenafil10..0.com/]buy sildenafil citrate[/url] [url= https://xenical120mg..m/]xenical 120 mg[/url] [url= https://hydrochlorot..rothiazide 25mg tablets[/url] [url= https://atenolol25.c../]atenolol 50 mg[/url] [url= https://vardenafilbu..vardenafil professional[/url] [url= https://zoviraxacycl..]acyclovir zovirax[/url]
2019-07-02, 09:10:17
anonymous from Russian Federation  
rating
2019-07-02, 09:13:09
anonymous from Russian Federation  
rating
[url= https://azithromycin..0.com/]buy zithromax azithromycin[/url]
2019-07-02, 09:27:48
anonymous from Russian Federation  
rating
2019-07-02, 10:05:23
anonymous from Russian Federation  
rating
[url= https://femaleviagra..om/]viagra for females[/url]
2019-07-02, 10:11:56
anonymous from Russian Federation  
rating
[url= https://femaleviagra..4.com/]buy female viagra pills[/url]
2019-07-02, 10:12:42
anonymous from Russian Federation  
rating
2019-07-02, 10:54:16
anonymous from Russian Federation  
rating
[url= https://wellbutrin30..wellbutrin sr 150 mg[/url] [url= https://lisinoprilbuy.com/]no prescription lisinopril[/url] [url= https://cafergot100...rgot[/url] [url= https://sildalis120.com/]buy sildalis[/url] [url= https://buydiflucan.com/]buy diflucan[/url]
2019-07-02, 10:57:59
anonymous from Russian Federation  
rating
[url= https://tetracycline..tracycline antibiotic[/url]
2019-07-02, 11:10:34
anonymous from Russian Federation  
rating
2019-07-02, 11:15:44
anonymous from Russian Federation  
rating
2019-07-02, 12:05:46
anonymous from Russian Federation  
rating
2019-07-02, 12:15:12
anonymous from Russian Federation  
rating
2019-07-02, 12:16:03
anonymous from Russian Federation  
rating
2019-07-02, 12:25:26
anonymous from Russian Federation  
rating
[url= https://doxycycline02.com/]buy doxycycline online[/url] [url= https://sildenafil10..0.com/]buy sildenafil online[/url] [url= https://allopurinolz..inol[/url] [url= https://zoviraxacycl..com/]where to buy zovirax[/url] [url= https://vardenafilbu..com/]where to buy vardenafil[/url] [url= https://sildalis120.com/]buy sildalis[/url] [url= https://xenical120mg..m/]xenical 120[/url] [url= https://lisinoprilbu..lisinopril without prescription[/url] [url= https://cafergot100...rgot[/url] [url= https://femaleviagra..om/]female viagra cream[/url] [url= https://hydrochlorot..5.com/]buy hydrochlorothiazide online[/url] [url= https://azithromycin..ithromycin 250 mg tablets[/url] [url= https://levitrasale.com/]cheap levitra online[/url] [url= https://atenolol25.c../]atenolol 50 mg[/url] [url= https://wellbutrin30..trin[/url]
You are on page 37 of 37, other pages: 1 2 3 34 35 36 [37]

 

 

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: