|
|
| Author |
Message |
iugis Initiate
Joined: 20 May 2005 Posts: 1 Location: bog
|
Posted: Fri May 20, 2005 7:55 pm Post subject: DB_ERROR:: Cannot connect to the database server. |
|
|
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
|
Posted: Fri May 20, 2005 9:18 pm Post subject: |
|
|
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 |
|
 |
|