#7 Help with install

closed
nobody
5
2005-02-23
2005-02-23
Anonymous
No

Durinig the install i get error:

Unkown error type: [2] mysql_connect(): Can't connect
to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (13)
Failed to connect to database

Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (13)

just after i submit for new installation running
schemacreate.php

I am very new to linux. Any help would be appreciated.

Thanks

Discussion

  • Logged In: NO

    I found the problem:

    Solved... selinux was enabled

    This is my first experience with apache on a Linux Kernel
    with Security-Enhanced Linux.

    Additional clue was this syslog entry I missed first go round:

    Dec 30 20:36:45 jeeves kernel: audit(1104467805.371:0):
    avc: denied { write } for pid=9459 exe=/usr/sbin/httpd
    name=mysql.sock dev=md0 ino=1035590
    scontext=root:system_r:httpd_t
    tcontext=root:object_r:var_lib_t tclass=sock_fileApache
    (httpd) doesn't have sufficient rights to access mysql.sock.

    My server isn't in an environment that's subject to attack so
    my solution was to completely shut off selinux with setenforce
    (8). I don't recommend my fix without thorough consideration
    of your own security needs. A proper solution would be to
    correctly set the selinux security contexts so htttpd can
    access mysql.sock. But for me, this was supposed to be an
    exercise in trying the latest drupal, not in learning security-
    enhanced Linux.

    login or register to post comments

     
    • status: open --> closed