DelphiFAQ Home Search:

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

 

comments570 comments. Current rating: 2 stars (569 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 38 of 38, other pages: 1 2 3 35 36 37 [38]
2019-07-02, 12:27:16
anonymous from Russian Federation  
rating
[url= https://buydiflucan.com/]buy diflucan[/url]
2019-07-02, 12:47:39
anonymous from Russian Federation  
rating
[url= https://levitrasale.com/]where to buy levitra[/url]
2019-07-02, 13:06:59
anonymous from Russian Federation  
rating
[url= https://atenolol25.c../]atenolol 25 mg tablets[/url]
2019-07-02, 13:07:34
anonymous from Russian Federation  
rating
2019-07-02, 13:27:11
anonymous from Russian Federation  
rating
2019-07-02, 13:37:14
anonymous from Russian Federation  
rating
[url= https://hydrochlorot...com/]cost of hydrochlorothiazide[/url] [url= https://azithromycin..ithromycin generic[/url] [url= https://femaleviagra..om/]female viagra[/url] [url= https://atenolol25.c..olol[/url] [url= https://zoviraxacycl..r.com/]buy aciclovir[/url] [url= https://doxycycline02.com/]buy doxycycline online[/url]
2019-07-02, 14:00:29
anonymous from Russian Federation  
rating
2019-07-02, 14:13:46
anonymous from Russian Federation  
rating
2019-07-02, 14:23:10
anonymous from Russian Federation  
rating
[url= https://generictadal..]tadalafil generic[/url] [url= https://tetracycline..antibiotic tetracycline[/url] [url= https://femaleviagra..om/]female viagra[/url] [url= https://wellbutrin30..wellbutrin 150 xl[/url] [url= https://allopurinolz..llopurinol online purchase[/url]
2019-07-02, 14:32:15
anonymous from Russian Federation  
rating
2019-07-02, 14:34:28
anonymous from Russian Federation  
rating
2019-07-02, 14:47:04
anonymous from Russian Federation  
rating
2019-07-02, 15:02:49
anonymous from Russian Federation  
rating
[url= https://doxycycline02.com/]buy doxycycline online[/url]
2019-07-02, 15:03:48
anonymous from Russian Federation  
rating
2019-07-02, 15:10:59
anonymous from Russian Federation  
rating
[url= https://sildenafil10..sildenafil citrate online[/url]
You are on page 38 of 38, other pages: 1 2 3 35 36 37 [38]

 

 

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: