lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

DB_ERROR:: Cannot connect to the database server.

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
iugis
Initiate


Joined: 20 May 2005
Posts: 1
Location: bog

PostPosted: Fri May 20, 2005 7:55 pm    Post subject: DB_ERROR:: Cannot connect to the database server. Reply with quote

Greetings,

I have Fedora 3 and I have completed the requirements to install netmrg and the compilation was ok; but when I try to access the web http://<host>/netmrg an error is showed:

DB_ERROR:: Cannot connect to the database server.

I see errors in the terminal console like:
audit(1116618437.502:0): avc: denied { write } for pid=2470 exe=/usr/sbin/httpd name=mysql.sock dev=dm-0 ino=416320 scontext=root:system_r:httpd_t tcontext=usr_u:object_r:var_lib_t tclass=sock_file

Each time that I do a refresh to http://<host>/netmrg a new audit log is showed with other pid.

How can I fix this problem?

Thanks a lot,

Andres
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Fri May 20, 2005 9:18 pm    Post subject: Reply with quote

This is because SELinux in FC3 (and RHEL4, for that matter) is denying the Apache process from accessing a file on the filesystem that's not in its policy.
We typically disable SELinux. You can do this by typing setenforce 0 at the console (as root). You'll also need to modify your grub.conf and add selinux=0 on your kernel line so it's disabled at boot.

-Doug
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group