Yes, this kind of script is working in my pervious old server. But
after I have upgraded the OS to Fedora 3 with PHP 5.0.2 and Apache 2.
Then as I mentioned in my previous mail SELinux is to blame. Uninstall it or disable it. (pass selinux=0 when you boot).