Friday, June 24, 2005

Apache/PHP/email failing on FC4

I was having a problem with FC4 becase SELinux was enabled and preventing a php webapp in apache from sending email.


The log in /var/log/messages was reporting:


avc: denied { write } for pid=6608 exe=/usr/sbin/sendmail.sendmail name=clientmqueue
dev=dm-0 ino=2343033 scontext=user_u:system_r:system_mail_t
tcontext=system_u:object_r:var_spool_t tclass=dir



I didn't want to disable SELinux as this was a external facing machine, but fortunately I was able to find a fix for this problem here



To summarize, the following command fixed the problem for me.:


rpm -q -l sendmail | /sbin/restorecon -R -f -


Tuesday, June 21, 2005

JDK 1.4 on Fedora Core 4


For anyone using FC4, it seems that JDK 1.4 is unable to make any network connections due to IPV6 being enabled in the kernel - 1.5.0_03 works fine.



Fortunately, disabling IPV6 seems to fix it (reboot needed).


/etc/modprobe.conf:
# Disable IPV6 to allow java networking to work
alias net-pf-10 off