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 24 of 29, other pages: 1 2 3 21 22 23 [24] 25 26 27 28 29
2019-06-29, 22:32:46
anonymous from Russian Federation  
rating
2019-06-29, 22:56:17
anonymous from Russian Federation  
rating
2019-06-29, 22:57:43
anonymous from Russian Federation  
rating
2019-06-29, 23:05:53
anonymous from Russian Federation  
rating
2019-06-29, 23:14:27
anonymous from Russian Federation  
rating
[url= https://cafergot100.com/]buy cafergot[/url] [url= https://vardenafilbu...com/]cost of vardenafil[/url] [url= https://azithromycin..ithromycin z-pak[/url]
2019-06-29, 23:20:03
anonymous from Russian Federation  
rating
2019-06-29, 23:38:52
anonymous from Russian Federation  
rating
2019-06-29, 23:55:51
anonymous from Russian Federation  
rating
2019-06-30, 00:33:52
anonymous from Russian Federation  
rating
[url= https://atenolol25.c../]atenolol 25 mg tablets[/url] [url= https://buydiflucan.../]diflucan buy without prescription[/url] [url= https://lisinoprilbu..lisinopril no prescription[/url] [url= https://hydrochlorot..rothiazide 25 mg price[/url]
2019-06-30, 00:43:53
anonymous from Russian Federation  
rating
2019-06-30, 01:10:18
anonymous from Russian Federation  
rating
2019-06-30, 01:45:23
anonymous from Russian Federation  
rating
2019-06-30, 01:58:19
anonymous from Russian Federation  
rating
[url= https://zoviraxacycl..r.com/]buy aciclovir[/url]
2019-06-30, 02:02:02
anonymous from Russian Federation  
rating
2019-06-30, 02:21:53
anonymous from Russian Federation  
rating
[url= https://levitrasale.com/]cheap levitra pills[/url]
You are on page 24 of 29, other pages: 1 2 3 21 22 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: