It’s probably permission issue with /etc/krb5.conf , your web server might not have the same as you in this /etc/ folder , change it to 755

chmod 755 /etc/krb5.conf