Fatal Error :- on line 338

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
poise

Fatal Error :- on line 338

Post by poise »

IM useing

xp pro
apache2
php5
mysq 4.1.12
smarty

I have dl this twice, when I run the install package I recieve the following

fatal error: call to undefined function mysql_connect() in
root\htdocs\lib\adodb\drivers\adodb-mysql.inc.php on line 338

I have tried the OLD_PASSWORD reset and tried installing with the Mysql ver 3/4 option. Im not sure whether im missing some file or its a path error, Ive only been useing php/apache/mysql a week so im a real noob.

any help would be appreciated as Im getting dizzy :P
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Fatal Error :- on line 338

Post by Ted »

How did you install php?  What package are you using?
poise

Re: Fatal Error :- on line 338

Post by poise »

the package I have  installed is version 5.0.4. which I DL 'ed from php.org. I did a manual install as that was the method recommended by the included install instruction.

I did origannly have mysql ver5 as well, but due to problems I have changed that to ver 4.1.12
Last edited by poise on Mon May 23, 2005 10:31 am, edited 1 time in total.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Fatal Error :- on line 338

Post by Ted »

It looks like the mysql driver isn't installed, which seems weird, because I'm pretty sure the php.org packages have it by default.

Best thing to do is a make a new php page called phpinfo.php.  In there, put the following code:

Code: Select all

<?php phpinfo(); ?>
Then load the page in your browser.  Search for mysql.  If nothing comes up, then it's not installed for some strange reason or another.
poise

Re: Fatal Error :- on line 338

Post by poise »

I have used the phpinfo() call, and it works fine,and I have also so used php with no prob following various tutorials in a book I bought. However, after doing some reading at phpnet and mysql, it appears that I have a experimental setup, I went for these packages php5/mysql5/apache2 because of the book I have on php5 web development, so I took my setup from there.
( lol I should know better, than to use the latest releases, especially when its an area thats new to me, but I wanted to follow the exersises in the book without getting errors)

I am going to uninstall it all and start again, this time with stable releases php 4.3.11 / mysql 4.1.12, I may just take apache2 off as well as I have read that some applications have reported errors using it.

Ill get back to you and let you know how I get on after I have re-installed it all.

thx for your time :)
poise

Re: Fatal Error :- on line 338

Post by poise »

just an update Wishy, so you know that it wasnt the cms package at fault

ok, Ive reinstalled php/apache/mysql and installed cms, cms installed smoothly.

nice package, off to play :P
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Fatal Error :- on line 338

Post by Ted »

*whew*  That's what I like to hear.  :)
Locked

Return to “[locked] Installation, Setup and Upgrade”