Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > MyDNSConfig > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd June 2006, 04:50
alexnz alexnz is offline
Member
 
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
Default 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?
Reply With Quote
  #2  
Old 23rd June 2006, 07:06
geek.de.nz geek.de.nz is offline
Member
 
Join Date: Feb 2006
Posts: 65
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to geek.de.nz Send a message via MSN to geek.de.nz
Default

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):
Code:
extension=mysql.so
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
Reply With Quote
  #3  
Old 23rd June 2006, 08:17
alexnz alexnz is offline
Member
 
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 23rd June 2006, 08:24
alexnz alexnz is offline
Member
 
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #5  
Old 23rd June 2006, 08:38
geek.de.nz geek.de.nz is offline
Member
 
Join Date: Feb 2006
Posts: 65
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to geek.de.nz Send a message via MSN to geek.de.nz
Default

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
Reply With Quote
  #6  
Old 23rd June 2006, 18:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

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...
__________________
Falko
--
Follow me on:
Reply With Quote
  #7  
Old 26th June 2006, 02:50
alexnz alexnz is offline
Member
 
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #8  
Old 26th June 2006, 05:32
geek.de.nz geek.de.nz is offline
Member
 
Join Date: Feb 2006
Posts: 65
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to geek.de.nz Send a message via MSN to geek.de.nz
Default

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
Reply With Quote
  #9  
Old 21st April 2009, 08:35
donjoaoresort donjoaoresort is offline
Junior Member
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I too have the same problem.


John
www.donjoaoresortgoa.com
Reply With Quote
  #10  
Old 22nd April 2009, 15:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

Which MyDNSConfig version did you install? On which distribution?
__________________
Falko
--
Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"unknown filter" growing apache log. wwparrish Installation/Configuration 6 1st September 2006 19:40
2 domains, 1 site wadims Installation/Configuration 13 31st May 2006 01:21
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 14th March 2006 00:58
all my site go to /var/www/ Absolusteph Installation/Configuration 14 11th March 2006 22:27
Total Frustration-HELP palkat Installation/Configuration 17 3rd September 2005 18:28


All times are GMT +2. The time now is 11:45.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com

IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com

Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com

Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com

Red Hat Virtual Experience - a free virtual event. Dec. 9th