ISPConfig error after login

Discussion in 'Installation/Configuration' started by periclesferreira, Jan 31, 2006.

  1. periclesferreira

    periclesferreira New Member

    Hi,

    please help me about the error after login (https://localhost:81). The message is:

    Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /home/admispconfig/ispconfig/lib/classes/ispconfig_db_mysql.lib.php on line 76

    Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /home/admispconfig/ispconfig/lib/classes/ispconfig_db_mysql.lib.php on line 76

    Warning: Cannot modify header information - headers already sent by (output started at /home/admispconfig/ispconfig/lib/classes/ispconfig_db_mysql.lib.php:76) in /home/admispconfig/ispconfig/web/login/login.php on line 56

    please help me... I'm a new user and i needed activates my webserver.

    Sorry but my english is bad.

    Thank's
    http://www.howtoforge.com/forums/images/smilies/biggrin.gif
    Pericles Ferreira
    Brasil - Maceio - ALAGOAS
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This looks like ISPConfig has not been installed correctly. Did you got any errors during installation? You can find the ispconfig_install.log in the directory /var/log/
     
  3. periclesferreira

    periclesferreira New Member

    No errors in ispconfig_install.log. Please help me

    my job is for a wire

    thank you
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Is the mysql database server running and listening on localhost? Please post the output of:

    netstat -tap | grep mysql

    Does your mysql my.cnf file contains skip-networking? If yes, disable it.
     
  5. periclesferreira

    periclesferreira New Member

    the netstat outoput is:

    ***********************
    spider:/home/pericles # netstat -tap
    Conexões Internet Ativas (servidores e estabelecidas)
    Proto Recv-Q Send-Q Endereço Local Endereço Remoto Estado PID/Program name
    tcp 0 0 *:mysql *:* OUÇA 7661/mysqld
    tcp 0 0 localhost:1004 *:* OUÇA 5492/fam
    tcp 0 0 *:sunrpc *:* OUÇA 4798/portmap
    tcp 0 0 *:ftp *:* OUÇA 5106/proftpd: (acce
    tcp 0 0 spider.servipa.c:domain *:* OUÇA 5066/named
    tcp 0 0 spider.servipa.c:domain *:* OUÇA 5066/named
    tcp 0 0 localhost:domain *:* OUÇA 5066/named
    tcp 0 0 *:ipp *:* OUÇA 5164/cupsd
    tcp 0 0 *:smtp *:* OUÇA 5537/master
    tcp 0 0 localhost:953 *:* OUÇA 5066/named
    tcp 0 0 localhost:37435 *:* OUÇA 5385/kded [kdeinit]
    tcp 0 0 spider.servipa.co:25730 64.233.161.99:www-http ESTABELECIDA7575/firefox-bin
    tcp 0 0 spider.servipa.co:25729 64.233.161.99:www-http ESTABELECIDA7575/firefox-bin
    tcp 0 0 spider.servipa.co:29200 www.pollmonkey:www-http ESTABELECIDA7575/firefox-bin
    tcp 0 0 spider.servipa.com:6769 www.novell.com:www-http ESTABELECIDA7575/firefox-bin
    tcp 0 0 *:www-http *:* OUÇA 5800/httpd2-prefork
    tcp 0 0 *:domain *:* OUÇA 5066/named
    tcp 0 0 *:ssh *:* OUÇA 5063/sshd
    tcp 0 0 *:smtp *:* OUÇA 5537/master
    tcp 0 0 localhost:953 *:* OUÇA 5066/named

    ********************

    and my.cnf not contain skip-networking

    thanks for your attencion
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Does the socket /var/lib/mysql/mysql.sock exist? Did you follow one of the installation howtos?
     
  7. periclesferreira

    periclesferreira New Member

  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check in the file /home/admispconfig/ispconfig/lib/config.inc.php if the login data (host, db name, username and password) is correct.
     
  9. periclesferreira

    periclesferreira New Member

    i checking the file and no errors found (host, dbname, username and password).

    what more we can try?

    thank you one more time
     
  10. periclesferreira

    periclesferreira New Member

    Please, help me.

    I obtain to open and to visualize the data base ispconfigdb without problems, but, when effecting login in the respective web page, I get the error already posted.

    They help me
     
  11. falko

    falko Super Moderator Howtoforge Staff

Share This Page