DelphiFAQ Home Search:

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

 

comments45 comments. Current rating: 2 stars (44 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 3 of 3, other pages: 1 2 [3]
2019-04-09, 00:17:36
anonymous from Russian Federation  
rating
2019-04-09, 00:28:47
anonymous from Russian Federation  
rating
[url= https://buydoxycycli..n.com/]buy doxycycline online without prescription[/url]
2019-04-09, 00:34:56
anonymous from Russian Federation  
rating
2019-04-09, 00:50:16
anonymous from Russian Federation  
rating
[url= https://lisinopril0...lisinopril without prescription[/url]
2019-04-09, 01:18:29
anonymous from Russian Federation  
rating
[url= https://freelivesexc..site/]free live sex cams[/url]
2019-04-09, 01:35:56
anonymous from Russian Federation  
rating
2019-04-09, 01:37:25
anonymous from Russian Federation  
rating
2019-04-09, 01:47:06
anonymous from Russian Federation  
rating
2019-04-09, 03:22:13
anonymous from Russian Federation  
rating
2019-04-09, 04:35:23
anonymous from Russian Federation  
rating
2019-04-09, 04:35:37
anonymous from Russian Federation  
rating
[url= https://liveporncams.fun/]free webcam chat rooms[/url]
2019-04-09, 04:46:41
anonymous from Russian Federation  
rating
2019-04-09, 05:04:07
anonymous from Russian Federation  
rating
2019-04-09, 05:08:19
anonymous from Russian Federation  
rating
[url= https://celebrex100...brex[/url] [url= https://buydoxycycli..n.com/]buy doxycycline without prescription[/url] [url= https://synthroid1.com/]buy synthroid[/url] [url= https://viagrasofton..om/]viagra soft tablets[/url] [url= https://ventolinhfai..s.com/]buy ventolin inhaler without prescription[/url] [url= https://lisinoprilze..pril[/url] [url= https://tadalafil20t..com/]cheap tadalafil 20mg[/url] [url= https://zithromax500..]zithromax buying[/url] [url= https://buysildenafi..sildenafil 50[/url] [url= https://doxycycline2.com/]cost of doxycycline[/url]
2019-04-09, 06:08:56
anonymous from Russian Federation  
rating
You are on page 3 of 3, other pages: 1 2 [3]

 

 

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: