ERROR: The requested document type does not exist.

Discussion in 'Installation/Configuration' started by SupuS, May 5, 2006.

  1. martinmuc

    martinmuc New Member

    Solved!

    Hi,

    i had exactly the same errors...
    The thing is gentoo has switched mysql to UTF-8 by default and
    on another thread here in the forum is written that ispconfig is not compatible with UTF-8.

    I have completely removed ISPconfig from my Server
    /home/admispconfig
    /root/ispconfig/
    /etc/init.d/ispconfig_*
    /var/lib/mysql/db_ispconfig (i think this is the most important to solve the problem, because of UTF-8 incompability with ispconfig)

    Now i have edited my mysql-Settings to: latin1 (not utf8 which is default at gentoo) and restarted mysql.

    Now phpMyAdmin shows me in the main-screen UTF-8 as charset?!?
    I dont know if it is a bug from phpmyadmin or something else?

    Anyway...I have reinstalled ISPconfig and

    after install edited the following 3 files /root/ispconfig/scripts/lib/classes/ispconfig_db_mysql.lib.php
    /home/admispconfig/ispconfig/lib/classes/ispconfig_db_mysql.lib.php
    /home/admispconfig/ispconfig/lib/classes/ispconfig_db_mysqli.lib.php (not sure if required with mysqli)

    and
    inserted the 3 lines...
    mysql_query("SET character_set_client = 'latin1'");
    mysql_query("SET character_set_results = latin1");
    mysql_query("SET character_set_connection = latin1");

    on the end of the function db_mysql()
    Now it looks:

    function db_mysql()
    {

    global $go_info;
    $this->dbHost = $go_info["server"]["db_host"];
    $this->dbName = $go_info["server"]["db_name"];
    $this->dbUser = $go_info["server"]["db_user"];
    $this->dbPass = $go_info["server"]["db_password"];
    $this->connect();
    mysql_query("SET character_set_client = 'latin1'");
    mysql_query("SET character_set_results = latin1");
    mysql_query("SET character_set_connection = latin1");
    }


    Now ISPconfig works on gentoo! :)

    If anybody needs my my.cnf i will post it here...

    But i dont know if there are other things which doesn't run...
    But we well see...

    Best regards,

    Sorry for my bad english...

    Martin
     

Share This Page