Re: Call to undefined function mcrypt_module_open() in PHP5 on Windows 2003
Phillip,
Ok. I misunderstood the page http://php.net/manual/en/install.windows.manual.php, thinking that where it says this:
Directory of PHP (for CLI), or the web server's directory (for SAPI modules)
It meant the directory of PHP found in the PATH, since that is where the CLI would be found (was my thinking). Otherwise, how would it know where php was? I guess that was my error.
So, I tried to set the PHPRC but that failed as well... However, I did set the Reg key with regedit.exe to C:\php in this key:
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath
That worked like a charm. Thanks... you have been a tremendous help!
Philip Olson wrote:
The manual explains how to set the location of php.ini so have another
look.
* http://php.net/manual/en/install.windows.manual.php
I suggest you set PHPRC. The docs do not say php.ini is looked for in
PATH, so, this is indeed the main issue here.
....
The fact that the php.ini location says "C:\WINDOWS" is telling us that
php.ini is not being read at all. It looked in the various places as
mentioned in the documentation and could not find a php.ini and
C:\WINDOWS is the last location it looked. So, all default values are
used as no php.ini is being read.
.
Relevant Pages
- Re: [PHP] PHP-CLI and the "less" command (kubuntu)
... I thought at first it's a problem with Konsole, my terminal program, or with "less" itself. ... But I've now tried in different terminal programs, and reading output other than output from PHP, and the ONLY time it happens is when I pipe output from PHP to "less". ... It may work well the first time, but when repeating the same command a second time, the "weird" behavior starts. ... It could very well be some kind of problem with "less", but since I can only reproduce the problem with output from PHP CLI, I thought it's worth asking here. ... (php.general) - PHP-CLI and the "less" command (kubuntu)
... I have a CLI application that produces lots of output to the terminal, so I like to send the output along to the "less" command. ... But I've now tried in different terminal programs, and reading output other than output from PHP, and the ONLY time it happens is when I pipe output from PHP to "less". ... It may work well the first time, but when repeating the same command a second time, the "weird" behavior starts. ... It could very well be some kind of problem with "less", but since I can only reproduce the problem with output from PHP CLI, I thought it's worth asking here. ... (php.general) - apc and cli
... Setting this enables APC for the ... CLI version of PHP. ... does php recompile the code in 'SomeClass' ( ... (php.general) - Re: [PHP] PHP-CLI and the "less" command (kubuntu)
... I have a CLI application that produces lots of output to the terminal, so I like to send the output along to the "less" command. ... But I've now tried in different terminal programs, and reading output other than output from PHP, and the ONLY time it happens is when I pipe output from PHP to "less". ... It could very well be some kind of problem with "less", but since I can only reproduce the problem with output from PHP CLI, I thought it's worth asking here. ... The keystrokes are processed by less so your problem lies there or more likely with the terminal emulation you're using. ... (php.general) - Re: [PHP] php cli and mysql
... It sounds like the PHP module for Apache is using ... It also looks like the CLI versions php.ini is not pointing to the ... Do I change the mysql settings so that mysql.sock is at ... (php.general) |
|