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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

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

Post 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 !
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

php5 doesn't have mysql built-in anymore, you need to enable the extension in your php.ini..
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

...

Post by Calimero »

never did it that way ... any help where to find it in php.ini - what serach string ?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

php_mysql.dll I think...
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

Post 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.
Last edited by Calimero on Mon Aug 09, 2004 4:08 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

remove the semicolon.. and copy libmysql.dll to your windows directories... then restart apache
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

Post 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 ?
Last edited by Calimero on Mon Aug 09, 2004 4:13 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

not entirely sure, did you restart apache and see if it loaded?
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

Post by Calimero »

I think I did, but, I'll restart my computer - that will surely check this point.
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

Post 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
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

Post 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 ???
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

Post 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.
Post Reply