Jump to content

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" 
Edited by Roberto_Decurnex
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.