Re: Call to undefined function mcrypt_module_open() in PHP5 on Windows 2003
- From: Clifford Racz <racz.junk@xxxxxxxxx>
- Date: Tue, 26 Apr 2005 14:09:24 -0500
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. .
- Follow-Ups:
- Re: Call to undefined function mcrypt_module_open() in PHP5 on Windows 2003
- From: Philip Olson
- Re: Call to undefined function mcrypt_module_open() in PHP5 on Windows 2003
- References:
- Call to undefined function mcrypt_module_open() in PHP5 on Windows 2003
- From: Clifford Racz
- Re: Call to undefined function mcrypt_module_open() in PHP5 on Windows 2003
- From: Philip Olson
- Call to undefined function mcrypt_module_open() in PHP5 on Windows 2003
- Prev by Date: Re: PHP variables are always empty
- Next by Date: Re: PHP vs. Perl
- Previous by thread: Re: Call to undefined function mcrypt_module_open() in PHP5 on Windows 2003
- Next by thread: Re: Call to undefined function mcrypt_module_open() in PHP5 on Windows 2003
- Index(es):