I am running web2py on Centos and used the fedora shell script to do the installation. It did set all my folder/files as apache:apache, did the selinux configuration and such. I have the welcome and examples applications loaded. When I run the examples application locally I get no errors (here this makes me think the DAL is set up fine and working) But when I access it online I get the internal error : unknown ticket created message. Here is the error log it generates. It looks like a permissions issue but I already verified that all files as set as apache:apache , as it is in my httpd config and the folder/files have write and read permissions. What could be the reason for this?
[Tue Sep 04 23:12:49 2012] [error] ERROR:web2py.cache:corrupted file /opt/web-apps/web2py/applications/examples/cache/cache.shelve, will try delete it! [Tue Sep 04 23:12:49 2012] [error] WARNING:web2py.cache:unable to delete file /opt/web-apps/web2py/applications/examples/cache/cache.shelve [Tue Sep 04 23:12:49 2012] [error] ERROR:web2py:Traceback (most recent call last): [Tue Sep 04 23:12:49 2012] [error] File "/opt/web-apps/web2py/gluon/restricted.py", line 205, in restricted [Tue Sep 04 23:12:49 2012] [error] exec ccode in environment [Tue Sep 04 23:12:49 2012] [error] File "/opt/web-apps/web2py/applications/examples/compiled/models/menu.py", line 63, in <module> [Tue Sep 04 23:12:49 2012] [error] File "/opt/web-apps/web2py/gluon/dal.py", line 6320, in define_table [Tue Sep 04 23:12:49 2012] [error] polymodel=polymodel) [Tue Sep 04 23:12:49 2012] [error] File "/opt/web-apps/web2py/gluon/dal.py", line 710, in create_table [Tue Sep 04 23:12:49 2012] [error] logfile = self.file_open(table._loggername, 'a') [Tue Sep 04 23:12:49 2012] [error] File "/opt/web-apps/web2py/gluon/dal.py", line 545, in file_open [Tue Sep 04 23:12:49 2012] [error] fileobj = portalocker.LockedFile(filename,mode) [Tue Sep 04 23:12:49 2012] [error] File "/opt/web-apps/web2py/gluon/portalocker.py", line 120, in __init__ [Tue Sep 04 23:12:49 2012] [error] self.file = open(filename,mode.replace('w','a')) [Tue Sep 04 23:12:49 2012] [error] IOError: [Errno 13] Permission denied: '/opt/web-apps/web2py/applications/examples/databases/sql.log' --