Page 1 of 2

URGENT - PHP 5 ,apache 1.3x.x and Mysql 4.0.18 - not working

Posted: Mon Aug 09, 2004 4:01 pm
by Calimero
I just installed apache 1.36.x (not sure about the number, but definetely sure its not 2.x.x) mysql 4.0.18 (sure about this), on win 2003 server (older version). PHP 5.0

I did it with ZEND server installer - everytnig went ok, but this is the problem

when I try to connect to my db - I get this (insane message)

FATAL ERROR: CALL TO UNDEFINED FUNCTION: MYSQL_CONNECT() in .... on line 153 - for every mysql connection - they worked fine before the reinstallation of OS and 5 hours of work.

Guys and girls, HELP !

Posted: Mon Aug 09, 2004 4:02 pm
by feyd
php5 doesn't have mysql built-in anymore, you need to enable the extension in your php.ini..

...

Posted: Mon Aug 09, 2004 4:03 pm
by Calimero
never did it that way ... any help where to find it in php.ini - what serach string ?

Posted: Mon Aug 09, 2004 4:04 pm
by feyd
php_mysql.dll I think...

Posted: Mon Aug 09, 2004 4:06 pm
by Calimero
I found it in the list of extensions

;extension=php_mysql.dll

what do I do next (here, or down-in the file) ?

I look at doc's and there writes this :

Note that MySQl and ODBC support is now built in, so no dll is needed for it.

Posted: Mon Aug 09, 2004 4:07 pm
by feyd
remove the semicolon.. and copy libmysql.dll to your windows directories... then restart apache

Posted: Mon Aug 09, 2004 4:11 pm
by Calimero
my libmysql.dll already copied into windows\system32 and c:\program fies\zend\php besides mysql\bin and mysql\lib (twice)

where else to copy it ?

Posted: Mon Aug 09, 2004 4:13 pm
by feyd
not entirely sure, did you restart apache and see if it loaded?

Posted: Mon Aug 09, 2004 4:14 pm
by Calimero
I think I did, but, I'll restart my computer - that will surely check this point.

Posted: Mon Aug 09, 2004 4:18 pm
by Calimero
Nope, this I get reported on system starting - php can't load this module - ... for some reason I don't understand :)

Still trying

Posted: Mon Aug 09, 2004 4:25 pm
by Calimero
Reason why the PHP couldn't load mysql dynamic library - in some folder - The specified procedure could not be found


Where do I edit these procedures ???

Posted: Mon Aug 09, 2004 4:29 pm
by feyd

Posted: Mon Aug 09, 2004 4:35 pm
by Calimero
I did like you nad that fellow said, but this thing still tell's me that it can;'t load dll - it can't find the procedure

Posted: Mon Aug 09, 2004 5:02 pm
by feyd
hmm, I haven't installed php5 as yet on this machine.. maybe I will to see if I can figure something out.. you could potentially wait for lilPunkSkater to come on, as he's written his own tutorial for installing php5, and may know of what's the deal..

Posted: Mon Aug 09, 2004 5:20 pm
by Calimero
just to make it worse (to understand)
I installed all of this on the other machine some 10 - 15 days ago, and there is no php_mysql.dll in its php file ?!!?!?!

And it doesn't make any reports about these - fatal errors and mysql_connect as undefined function !


Now I'm really stunned in this problem ?!?

Thanks Anyway for your time.