MyDNS with MyDNSConfig Control Panel and DNSMasq on Ubuntu 6.10

Discussion in 'HOWTO-Related Questions' started by curiogeo, Mar 21, 2007.

  1. curiogeo

    curiogeo New Member

    After running through the tutorial I tried to log in to the myconfig interface and I was presented the following error.

    Fatal error: Call to undefined function mysql_connect() in /usr/share/mydnsconfig/lib/classes/db_mysql.inc.php on line 75

    I have tried to reinstall php5-mysqli using the aptitude method and it is a no go.

    Has anyone else seen this error and can you direct me to a solution?
     
  2. slapper

    slapper New Member

    yep!!!

    exactly the same problem here
    here is the screen shot

    any ideas??
     

    Attached Files:

    Last edited: Mar 21, 2007
  3. curiogeo

    curiogeo New Member

    Found it

    It seems the /etc/php5/apache2/php.ini file needs to be updated for this tutorial to work.

    Uncomment:
    extension=mysql.so

    This worked to eliminate the error for me.

    Found this in the following post:
    http://www.idealog.us/2005/01/howto_fix_fatal.html

    Hope this helps you.

    Hopefully the tutorial will be updated to mention this potential failure point.
     
  4. slapper

    slapper New Member

    unfortunately the same problem:( :(

    i had already uncomment extension=mysql.so
    from some previously configurations..
     
  5. falko

    falko Super Moderator

    Please install php5_mysql:
    Code:
    apt-get install php5_mysql
    and restart Apache.
     
  6. slapper

    slapper New Member

    i have already install php5-mysql
    but i remove it and install it again the same problem..:rolleyes: :rolleyes:

    I will try to follow again the how to..
    Is it possible to have problem because of the virtual hosts??
    i have a symbolic link in /var/www/mainsite

    mydnsconfig -> /usr/share/mydnsconfig/web/
    but i don't thing is a problem..

    Thanks o lot for the answer!!
     
  7. falko

    falko Super Moderator

    Then make sure you have
    Code:
    extension=mysql.so
    in your php.ini. Don't forget to restart Apache.
    Create a PHP script like this:
    PHP:
    <?php
    phpinfo
    ();
    ?>
    and call it in your browser. Do you see MySQL support in the output?
     
  8. slapper

    slapper New Member

    yes mysql support is ok from the output
    moreover i already run successful jinzora , gallery2, cmsmadesimple
    and postfix with virtual users.

    i will try to reinstall mydns and i will come back:D :D :D
     

Share This Page