|
Posted by Jerry Stuckle on 08/21/07 11:06
Alan Silver wrote:
> In article <qOv3MNfwfryGFwmJ@nospamthankyou.spam>, Alan Silver
> <alan-silver@nospam.thanx.invalid> writes
>> Hello,
>
> Quick follow-up to my question...
>
> I noticed that the phpinfo() shows you the path that PHP uses to look
> for the php.ini file. This currently shows as C:\Windows, which is where
> php.ini lives, but when run from IIS, the next line down says:
>
> Loaded Configuration File (none)
>
> ...which looks like it is the problem. If IIS isn't loading php.ini when
> it runs PHP, then it will use the default configuration, which doesn't
> load the MySql extension.
>
> When I run phpinfo() from a command line, the configuration file is
> loaded OK, which is presumably why PHP can connect to MySql from command
> line scripts.
>
> So, I think I've found the problem, but I'm not sure how to fix it.
>
> TIA again for any help
>
It should be loaded as long as C:\Windows is in your path. Is that the
case?
The reason I ask - C:\Windows is not necessarily the default path for a
Windows installation. And if it isn't on your system, that could be
your problem.
If it is in your path, does the IIS user have permission to access the file?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|