I’m trying to setting up a tt-rss server on Centos 7, i’m getting this error after the database configuration :
Startup failed
Tiny Tiny RSS was unable to start properly. This usually means a misconfiguration or an incomplete upgrade. Please fix errors indicated by the following messages:
Image cache is not writable (chmod -R 777 cache/images)
Upload cache is not writable (chmod -R 777 cache/upload)
Data export cache is not writable (chmod -R 777 cache/export)
Javascript cache is not writable (chmod -R 777 cache/js)
ICONS_DIR defined in config.php is not writable (chmod -R 777 feed-icons).
LOCK_DIRECTORY defined in config.php is not writable (chmod -R 777 lock).
Actually these are a little too much of 777 Maybe you should consider removing execute rights from the files and restrict write to directories which really need it.
Apart from this, are there any errors logged in the webserver logs?
Now that you have tested that it is SELinux (as expected), you should fix your problem and not keep it turned off! It is trivially easy to fix: just changer permissions: chcon -v --type=httpd_sys_content_t … is all you need to make it work.
Good. But change them to something that makes sense or it will stop working again…
The context type should be httpd_sys_rw_content_t. After applying it to each folder in the cache folder I realised there was a recursive option. I haven’t tried it but I think this should work: