Jump to content

where is php.ini ?


marmite

Recommended Posts

I've lost it, or I never had it.

 

I'm taking over a site from a developer, and have discovered that none of my mailtos work on my local server. Apparently this is configured in the php.ini file, which I can't locate.

 

I can't find it on the Prod server, either (although I only have access to one folder of this, so it could be further up)

 

Anyone know where this file is usually kept? Is there a protocol?

 

Thanks...!

Link to comment
https://forums.phpfreaks.com/topic/47907-where-is-phpini/
Share on other sites

Depends on the system, in windows it can be located in the following:

 

c:\windows

C:\winnt

c:\windows\system32

c:\winnt\system32

c:\php

c:\apache\php

c:\program files\apache 2\apache 2\php

 

 

For linux it varies quite a bit, the phpinfo is the best way to figure it out.

 

Link to comment
https://forums.phpfreaks.com/topic/47907-where-is-phpini/#findComment-234117
Share on other sites

Well, I can't change it on the server anyway - I guess I don't need to, because it's working on the live site!

 

The question is why

 <? mail( 

function isn't working on my localhost. Do you know whether I need to change something in the ini file, and if so, what?

 

Thanks  ???

Link to comment
https://forums.phpfreaks.com/topic/47907-where-is-phpini/#findComment-234141
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.