DelphiFAQ Home Search:

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

 

comments600 comments. Current rating: 2 stars (599 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 40 of 40, other pages: 1 2 3 37 38 39 [40]
2019-07-02, 20:04:42
anonymous from Russian Federation  
rating
2019-07-02, 21:00:57
anonymous from Russian Federation  
rating
2019-07-02, 21:14:19
anonymous from Russian Federation  
rating
2019-07-02, 21:24:22
anonymous from Russian Federation  
rating
2019-07-02, 21:32:56
anonymous from Russian Federation  
rating
2019-07-02, 21:41:33
anonymous from Russian Federation  
rating
[url= https://atarax10.com/]atarax online[/url] [url= https://levitrasale...m/]levitra 20 mg cost[/url] [url= https://sildalis120...alis[/url] [url= https://sildenafil10..0.com/]buy sildenafil online[/url] [url= https://femaleviagra..om/]viagra for females[/url] [url= https://buydiflucan.../]diflucan online[/url] [url= https://allopurinolz..m.com/]buy allopurinol[/url] [url= https://xenical120mg.com/]buy xenical orlistat[/url] [url= https://tetracycline..tracycline antibiotics[/url] [url= https://doxycycline0..oxycycline 100 mg[/url]
2019-07-02, 22:10:40
anonymous from Russian Federation  
rating
[url= https://femaleviagra..4.com/]buy female viagra online[/url]
2019-07-02, 22:33:39
anonymous from Russian Federation  
rating
2019-07-10, 06:01:26
anonymous from Ukraine  
rating
canadian online pharmacy viagra [url= http://canadianonli..legitimate canadian online pharmacy[/url] reputable canadian online pharmacy <a href=' http://canadianonli..t;canadian pharmacy online</a> buy cialis online canadian pharmacy http://canadianonli..ydazc.com/
2019-07-10, 06:02:35
anonymous from Ukraine  
rating
cheap canadian pharmacy online [url= http://canadianonli..]reputable canadian online pharmacy[/url] purchase <a href=' http://canadianonli..#'>best canadian online pharmacy</a> best canadian pharmacy online http://canadianonli..ydazc.com/
2019-07-10, 08:29:20
anonymous from Ukraine  
rating
generic viagra [url= http://canadianonli...com/]best canadian online pharmacy reviews[/url] legit canadian pharmacy online <a href=' http://canadianonli..t;canadian pharmacy online</a> online canadian pharmacy reviews http://canadianonli..ydazc.com/
2019-07-10, 11:29:49
anonymous from Ukraine  
rating
legitimate canadian online pharmacy [url= http://canadianonli..om/]viagra online canadian pharmacy[/url] canadian online pharmacy no prescription <a href=' http://canadianonli..</a> online canadian pharmacy reviews http://canadianonli..ydazc.com/
2019-07-10, 12:37:25
anonymous from Ukraine  
rating
canadian online pharmacy cialis [url= http://canadianonli..c.com/]buy viagra[/url] canadian online pharmacy cialis <a href=' http://canadianonli..legitimate canadian online pharmacy</a> buy viagra http://canadianonli..ydazc.com/
2019-07-10, 14:18:55
anonymous from Ukraine  
rating
best canadian pharmacy online [url= http://canadianonli..om/]viagra online[/url] canadian online pharmacy cialis <a href=' http://canadianonli..t;canadian online pharmacy reviews</a> canadian pharmacy online cialis http://canadianonli..ydazc.com/
2019-07-10, 14:22:30
anonymous from Ukraine  
rating
cheap viagra online canadian pharmacy [url= http://canadianonli..agra[/url] canadian pharmacy online <a href=' http://canadianonli../#'>buy cialis online canadian pharmacy</a> brand viagra online canadian pharmacy http://canadianonli..ydazc.com/
You are on page 40 of 40, other pages: 1 2 3 37 38 39 [40]

 

 

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: