skygremlin Posted August 15, 2013 Share Posted August 15, 2013 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 Scan this dir for additional .ini filesOn 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 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. Quote Link to comment https://forums.phpfreaks.com/topic/281209-how-to-config-%E2%80%9Cscan-this-dir-for-additional-ini-files%E2%80%9D/ Share on other sites More sharing options...
requinix Posted August 15, 2013 Share Posted August 15, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/281209-how-to-config-%E2%80%9Cscan-this-dir-for-additional-ini-files%E2%80%9D/#findComment-1445194 Share on other sites More sharing options...
skygremlin Posted August 15, 2013 Author Share Posted August 15, 2013 thank you Quote Link to comment https://forums.phpfreaks.com/topic/281209-how-to-config-%E2%80%9Cscan-this-dir-for-additional-ini-files%E2%80%9D/#findComment-1445200 Share on other sites More sharing options...
Roberto_Decurnex Posted May 23, 2014 Share Posted May 23, 2014 (edited) 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" Edited May 23, 2014 by Roberto_Decurnex Quote Link to comment https://forums.phpfreaks.com/topic/281209-how-to-config-%E2%80%9Cscan-this-dir-for-additional-ini-files%E2%80%9D/#findComment-1480653 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.