PHP cannot connect to mysql server

dragoran dragoran at feuerpokemon.de
Thu Nov 11 06:10:32 UTC 2004


no it sitill don't work... after a reboot i now get this messages in demsg:
audit(1100152360.021:0): avc:  denied  { write } for  pid=2635 
exe=/usr/sbin/httpd name=mysql.sock dev=hda3 ino=309535 
scontext=user_u:system_r:httpd_t tcontext=user_u:object_r:var_lib_t 
tclass=sock_file
audit(1100152677.098:0): avc:  denied  { append } for  pid=4078 
exe=/usr/libexec/mysqld path=/var/log/mysqld.log dev=hda3 ino=765672 
scontext=root:system_r:mysqld_t tcontext=system_u:object_r:var_log_t 
tclass=file
audit(1100152677.099:0): avc:  denied  { append } for  pid=4078 
exe=/usr/libexec/mysqld path=/var/log/mysqld.log dev=hda3 ino=765672 
scontext=root:system_r:mysqld_t tcontext=system_u:object_r:var_log_t 
tclass=file
audit(1100152682.751:0): avc:  denied  { write } for  pid=2636 
exe=/usr/sbin/httpd name=mysql.sock dev=hda3 ino=309535 
scontext=user_u:system_r:httpd_t tcontext=root:object_r:mysqld_var_run_t 
tclass=sock_file
audit(1100152683.427:0): avc:  denied  { write } for  pid=2636 
exe=/usr/sbin/httpd name=mysql.sock dev=hda3 ino=309535 
scontext=user_u:system_r:httpd_t tcontext=root:object_r:mysqld_var_run_t 
tclass=sock_file
audit(1100152683.978:0): avc:  denied  { write } for  pid=2636 
exe=/usr/sbin/httpd name=mysql.sock dev=hda3 ino=309535 
scontext=user_u:system_r:httpd_t tcontext=root:object_r:mysqld_var_run_t 
tclass=sock_file
audit(1100152755.278:0): avc:  denied  { write } for  pid=2637 
exe=/usr/sbin/httpd name=mysql.sock dev=hda3 ino=309535 
scontext=user_u:system_r:httpd_t tcontext=root:object_r:mysqld_var_run_t 
tclass=sock_file
audit(1100152756.063:0): avc:  denied  { write } for  pid=2637 
exe=/usr/sbin/httpd name=mysql.sock dev=hda3 ino=309535 
scontext=user_u:system_r:httpd_t tcontext=root:object_r:mysqld_var_run_t 
tclass=sock_file
mysql cannot access the log file and httpd still canncot connect to the 
mysql socket ...




More information about the fedora-selinux-list mailing list