
23rd June 2006, 04:50
|
|
Member
|
|
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
|
|
php error when trying too login
Fatal error: Call to undefined function: mysql_connect() in /var/www/lib/classes/db_mysql.inc.php on line 75
i have double checked all my settings but i cant seem too get rid of this error, can anyone help?
|

23rd June 2006, 07:06
|
|
Member
|
|
Join Date: Feb 2006
Posts: 65
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
If the function is not defined, this means that Apache/PHP cannot find the function in the libraries.
Are you sure you installed the php mysql module and enabled it in php.ini? If you got a Debian based Linux try:
Code:
apt-cache search php mysql
You should find something like 'php4-mysql' or similar. Then you can install it with
Code:
apt-get install php4-mysql
Oh, and add this to your php.ini (at the end):
That's what I usually forget ;-).
If you have php5 you install the corresponding module of course. ;-)
Always mention your distro when you submit questions!
__________________
Always mention at least your distribution/version! You can add it in your signature if you don't want to always type it. ;-)
Distributions:
Ubuntu 5.10 with custom kernel (2.6.16-suspend2),
Debian Sarge 3.1 and Etch
Please submit your ISP or Webhost to (free)
http://www.ihostnz.com
|

23rd June 2006, 08:17
|
|
Member
|
|
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
|
|
hi thanks for the reply
im using debian sarge
i have followed falko's perfect setup guide for debian 3.1,
ive added extension=mysql.so too my php.ini file in apache2.conf and restarted apache2
still getting the same error =/
Code:
dns:/var/www# apt-get install mysql-server
Reading Package Lists... Done
Building Dependency Tree... Done
mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
dns:/var/www# mysql -u mydns -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 14 to server version: 4.0.24_Debian-10sarge2-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
hmmmmmmmmm im thinking of formatting agian and starting from scratch, but i cant seem too find where i screwed up? ive basicly gone through the setups guides twice but yet she doesnt want too work =/
thanks for all the help, any more suggestions greatly appriacted
|

23rd June 2006, 08:24
|
|
Member
|
|
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
|
|
found this in apache2.logfile:
Code:
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/20020429/msql.so' - /usr/lib/php4/20020429/ms
[Fri Jun 23 17:18:12 2006] [notice] Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-16 mod_ssl/2.0.54 OpenSSL/0.9.7e mod
hmm the file is definatly there:
Code:
dns:/usr/lib/php4/20020429# ls
curl.so domxml.so gd.so imap.so ldap.so mcal.so mhash.so mysql.so odbc.so xslt.so
Last edited by alexnz; 23rd June 2006 at 08:28.
|

23rd June 2006, 08:38
|
|
Member
|
|
Join Date: Feb 2006
Posts: 65
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
I would try removing the mysql module first and reinstalling that instead of doing a total reformat.
__________________
Always mention at least your distribution/version! You can add it in your signature if you don't want to always type it. ;-)
Distributions:
Ubuntu 5.10 with custom kernel (2.6.16-suspend2),
Debian Sarge 3.1 and Etch
Please submit your ISP or Webhost to (free)
http://www.ihostnz.com
|

23rd June 2006, 18:47
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Quote:
|
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/20020429/msql.so' - /usr/lib/php4/20020429/ms
|
Make sure you didn't make a typo in php.ini. It must be
extension=mysql.so, not extension=msql.so...
|

26th June 2006, 02:50
|
|
Member
|
|
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
|
|
woops ok i fixed that up
now its coming up with the error:
Code:
DB::query(SELECT * FROM mb_sites WHERE name = '')
mysql_query
Table 'mydns.mb_sites' doesn't exist
Warning: Cannot modify header information - headers already sent in /var/www/web/login/index.php on line 56
i cant even see anywhere in the setup/installation guide where i even add mb_sites --- where have i gone wrong?
|

26th June 2006, 05:32
|
|
Member
|
|
Join Date: Feb 2006
Posts: 65
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Quote:
|
Warning: Cannot modify header information - headers already sent in /var/www/web/login/index.php on line 56
|
What is login/index.php? Did you write that yourself??
What is line 56?
MyDNS doesn't have that table (mb_sites), at least not in version 1.1.0, so it's no wonder it doesn't work.
__________________
Always mention at least your distribution/version! You can add it in your signature if you don't want to always type it. ;-)
Distributions:
Ubuntu 5.10 with custom kernel (2.6.16-suspend2),
Debian Sarge 3.1 and Etch
Please submit your ISP or Webhost to (free)
http://www.ihostnz.com
|

21st April 2009, 08:35
|
|
Junior Member
|
|
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I too have the same problem.
John
www.donjoaoresortgoa.com
|

22nd April 2009, 15:18
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Which MyDNSConfig version did you install? On which distribution?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 11:45.
|
Recent comments
1 day 3 hours ago
1 day 8 hours ago
1 day 8 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 11 hours ago
1 day 14 hours ago
1 day 14 hours ago
1 day 14 hours ago
1 day 16 hours ago