|
Posted by Mike Scougall on 02/05/06 22:28
"AquAvia" <a@b.c> wrote in message
news:43e640da$0$11074$e4fe514c@news.xs4all.nl...
> I have installed php5 (windows 2000 environment) and am trying to load
> modules for it.
> I have uncommented extension=php_mysql.dll
> My extension_dir is "c:\phpextensions" and has been verified as being the
> correct path.
>
> However, when starting apache (sucesfully) I cannot connect to mysql using
> mysql_connect();
>
> The application logfile shows me php wasn't able to load the modyle, since
> it can't find it.
>
> I renamed the extension directory to see what the error message would be.
> Apache now refused to start.
> Added the extension path to windows PATH variable... no results
>
I run PHP 4.3.7 on Win2k so what I have may differ a bit.
Here's a comment from my php.ini --
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for
it.
.... so it doesn't sound like you're on the right trail.
Let's step back.
Can you run a basic "Hello World" PHP page without error?
Can you log in MySQL from a command line? Is the MySql server running?
mysql_connect() requires hostname, username and password parameters. Do
those work from the command-line?
Also, php.ini should be in the same dir as the php.exe or edits to it aren't
picked up. That seems obvious but it caught me up early on.. .
------------------------------------
Mike S
Copywriting for the IT Professional
www.redmaplesoftware.com
Navigation:
[Reply to this message]
|