On certain systems (eg. fedora 10, which comes with SELinux in enforcing mode), just setting the files/directories permissions per installation instructions is not enough. This is because SELinux is blocking write access to config.php. setup.php is checking if the file is_writable and the return is false.
After going through the man pages of SELinux, finally find the "right" way to pass the write permissions test, instead of simply disabling SELinux.
# su
# chcon -v -t httpd_sys_content_rw_t /var/www/phpfusion/config.php
where phpfusion is the installed directory. This tells selinux to allow rw on the file.
After a successful setup.php...
#chcon -v --reference=/var/www/phpfusion/setup.php /var/www/phpfusion/config.php
This will reset the file back to the previous setting... no writing.
0 replies