Jump to content

How to config “Scan this dir for additional .ini files”


Recommended Posts

Moving site from a CentOS PHP 5.3.3 and apache (someone else set up for me) to a Windows 2008R2 running IIS (Replacing a site here).  I PHP 5.4.18.  A couple things I can’t get working / or figured out and am wondering if they are connected


 


  1. Scan this dir for additional .ini files
    • On my CentOS:
      • phpinfo.php reads:  /etc/php.d 
      • Contains about 30 files
      • Can’t find this config in the php.ini file.  From what I’ve read this is set when PHP is compiled...

    • On my Windows server it reads (none) - How can I config this on my windows box


  2. Mail:


    I have a Send us a message php page that on my CentOS server works, on my Windows it doesn’t.  No error, the form is cleared (redirect back to the blank page) like everything is working, but nothing is received.  


    The Send us a message page posts the user input values to another php page that packages up the info and sends an e-mail out.



1. It's not really documented but the --with-config-file-scan-dir compile option. Meaning you'd have to build your own version of PHP to set that directory.

2. You have to install a "sendmail"-type client on Windows. Unix and Linux almost always have one to begin with while Windows (desktop versions at least) don't.

  • 9 months later...

Kind of late but the compiler option will just set the default location.

 

Compiling PHP every time you want to change that would be painful.

 

You can use the PHP_INI_SCAN_DIR env variable to make it happen.

export PHP_INI_SCAN_DIR="/etc/php.d" 

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.