Description of problem:
PHP applications that use the Smarty template engine ceased to work.
My php applications work perfectly in Fedora Core 2, not in
Fedora Core 3 with exactly the identical setup.
Don't know whether it is a Apache or php problem. Don't think
it's my fault.
Version-Release number of selected component (if applicable):
Fedora Core 3
Steps to Reproduce:
setup a php application that uses the Smarty template
engine (all versions). I even tried the demo script that
comes with the Smarty documentation
php is unable to save the compiled scripts in compile_dir = /templates_c/
I set correctly the write access, I used the identical
configuration files of Fedora Core 2 (php.ini etc...)
I reinstalles Fedora Core 2 in my server and instantly
everything worked again as usual!
Lost two days work
This is likely to be due to SELinux, such issues are relatively simple
to resolve or work around; please give the output of:
# grep audit /var/log/messages
as root; see also the SELinux/Apache documentation at:
Sorry I cannot give you the grep ouput you requested because
I went back to Fedora C2 as soon as I realized I could not
fix the problem of Smarty not working myself.
Somebody, that has a spare PC with FC3 on it should try the
demo that comes with the Smarty template engine and tell me
Daniel S. Liscia
Yes this is not a bug. You have one of three options.
1 Label the smarty directory properly to get it to work with SELinux
2 Turn off apache protection for selinux
3 Turn off selinux.
Has the best desctiption on how to handle this.