You are here: Re: Newbie: MySql is loaded when PHP runs from command line, but not through IIS « PHP Programming Language « IT news, forums, messages
Re: Newbie: MySql is loaded when PHP runs from command line, but not through IIS

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация