1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-01-16 21:58:21 +01:00

fix: early warning if file permission problem (#3944)

This commit is contained in:
Dag 2024-02-02 18:06:08 +01:00 committed by GitHub
parent 81be72ea04
commit b964dcd936
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View File

@ -255,6 +255,12 @@ Learn more in
## How-to
### How to fix "Access denied."
Output is from php-fpm. It is unable to read index.php.
chown rss-bridge:rss-bridge /var/www/rss-bridge/index.php
### How to password-protect the instance (token)
Modify `config.ini.php`:

View File

@ -6,6 +6,12 @@ if (version_compare(\PHP_VERSION, '7.4.0') === -1) {
exit;
}
if (! is_readable(__DIR__ . '/lib/bootstrap.php')) {
http_response_code(500);
print 'Unable to read lib/bootstrap.php. Check file permissions.';
exit;
}
require_once __DIR__ . '/lib/bootstrap.php';
set_exception_handler(function (\Throwable $e) {