Re: Call to undefined function mcrypt_module_open() in PHP5 on Windows 2003



Phillip,


The phpinfo() produces this line:

Configuration File (php.ini) Path 	C:\WINDOWS

And I have no idea why that is the case. I do not have the php.ini file there, but according to the documentation, this is the last place that the file is searched for, after the PATH. However, "c:\php" is in my path, so there should be no issue with this. The reason why I added those lines as extensions related to the user comment at the bottom of the page http://www.php.net/manual/en/install.windows.manual.php: "on windows 2003 and iis 6. you have to add php5isapi.dll extension and also php-cgi.exe( php.exe or php-win.exe does not work on my machine), and allow both."

I wasn't trying random things; rather, those that were suggested by other users.  But it apparently still didn't work, so I am looking for different suggestions.

So... to get the ball rolling, I have replaced the recommended ini file with ONLY these changes (this is an UltraCompare text difference):


Comparing: C:\php\php.ini To: C:\php\php.ini-recommended ======= 501 * doc_root = c:\inetpub\wwwroot * doc_root = 508 * ;extension_dir = "./" * extension_dir = "./" 509 <! extension_dir = c:\php\ext 520 * cgi.force_redirect = 0 * ; cgi.force_redirect = 1


Yet, I still get the output with the phpinfo() to show: Configuration File (php.ini) Path C:\WINDOWS

And, this was following the windows.manual.php and install.windows.iis.php pages a second time.  So, I am not even attempting to enable any extensions.  When I stop the IIS webserver, I use these commands:

NET STOP iisadmin
NET START w3svc

And I run these every time I make a change to the php.ini; I do not make the mistake of thinking that a reboot is good enough.

So, in what I described, I cannot see my error...

P.S.  For funsies, I even changed the system PATH so that c:\php comes before the windows system path:
C:\php;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;

But I see the same line output from the phpinfo() function.
.