Yes, I understand that. What I was trying to ask is how do you move/copy the original files (not the cache_config.php) to the web folder?
I am not sure about this but I guess the cache files use the SELinux settings of the php files writing them. Therefore, SELinux settings of the writing file determines the SELinux settings of the cache_config.php file.
Anyways, I changed the SELinux settings of the Forum folder and the files in it using the "chcon" command. It seems to solve my problem.
1 2007-02-21 01:42
Re: cache_config.php problem (7 replies, posted in PunBB 1.2 troubleshooting)
2 2007-02-20 23:32
Re: cache_config.php problem (7 replies, posted in PunBB 1.2 troubleshooting)
I have a problem with SELinux settings. When I disable the SELinux, I am able to see the Forum index php. What is the mechanism used to upload the files to web space?
3 2007-02-20 23:16
Re: cache_config.php problem (7 replies, posted in PunBB 1.2 troubleshooting)
If I am not mistaken "cache_config.php" file is created after the installation by PunBB. Since it is under "/Forum/cache", I presume no directory problem (root directory for PunBB is "Forum"). (If I remove the cache folder, PunBB reports an error "File: /www/html/Forum/include/cache.php line: 91 PunBB reported: Unable to write configuration cache file to cache directory. Please make sure PHP has write access to the directory 'cache') So it doesn't look like a directory problem.
Anyways, cache_config.php file is created with permissions 644. Might that have anything to tell on the nature of the problem?
thanks,
4 2007-02-20 22:30
Topic: cache_config.php problem (7 replies, posted in PunBB 1.2 troubleshooting)
I installed PunBB, however when I try to go to the Forum index page, I get a blank page. When I look at the httpd error_log, I see the following messages.
[Tue Feb 20 16:21:08 2007] [error] [client ::1] PHP Warning: require(./cache/cache_config.php) [<a href='function.require'>function.require</a>]: failed to open stream: Permission denied in /www/html/Forum/include/common.php on line 101
[Tue Feb 20 16:21:08 2007] [error] [client ::1] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required './cache/cache_config.php' (include_path='.:/usr/share/pear') in /www/html/Forum/include/common.php on line 101
Permissions set to 755 for cache directory and the cache_config.php file. (I have also tried to set the permissions to 777 but nothing changed)
Directory and files are owned by the apache user.
can anybody give me an idea on where to look at?
thanks,