Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > php.ini in php5.2.1
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 3rd November 18:20
jekillen
External User
 
Posts: 1
Default php.ini in php5.2.1



Hello;
I have not had the necessity to deal with php.ini files for some time.
Now, because I switch from Sendmail to Postfix on one system I
need to adjust the sendmail path variable. I cannot find a php.ini file
in the specified location. That is not a problem because I can use
ini_set(). What is puzzling is that my system,
I built and installed from source on a number of different systems and
seem to remember that the process creates a php.ini file. Maybe I have
it wrong but in the past I seem to remember being able to find one to
make sure register variables was set to off. (or maybe I ignored it
because
that is the default now). So, is the fact that this file is missing
something
I should be concerned about?
PS; I have subscribed to the php-install list and get not responses to
my posts, or e-mails my ISP says contain viruses, possibly from a user
who requested I contact him (of her) off list.
Thanks
Jeff K
  Reply With Quote


 


2 3rd November 18:20
jochem
External User
 
Posts: 1
Default php.ini in php5.2.1



jekillen schreef:

are you sure you need to change it? doesn't postfix come with some kind of
compatibility wrapper [script] that takes the place of sendmail itself ...
IIRC most MTAs are sendmail compatible in that way.


php uses it's defaults if it can't load an .ini file - the only concern
is whether this bothers you.

note that you can also set .ini settings via webserver configurations files
(e.g. in apache's httpd.conf or .htaccess files)
  Reply With Quote
3 3rd November 18:25
jekillen
External User
 
Posts: 1
Default php.ini in php5.2.1


No, it does not bother me accept if I should have had a file created by
the install.
I can create on with all the values I want to change, right? I have
been looking
at my copy of the manual. Postfix sendmail path is different than
default sendmail
path in php (at least on my system) and does not use options to invoke
it.
This is to send a confirmation message to an address entered into a
registration from.
Thanks for your reply.
Jeff K
  Reply With Quote


 


4 4th November 09:56
ceo
External User
 
Posts: 1
Default php.ini in php5.2.1


make install should install one, but may be putting it in some place
that it's not expected.

If you are using some kind of package manager like apt-get or RedHat
rpms or whatever, you are in duck soup for where some package-maker
THINKS they should put the php.ini file, and where their binary
actually looks for it...

You can always just COPY the php.ini-dist file to where phpinfo() says
it should be and then edit it.

If PHP cannot find the file, it just uses all the defaults, so it's no
real shock that there's nothing there.


--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?
  Reply With Quote
Reply


Thread Tools
Display Modes




666