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:
parent
81be72ea04
commit
b964dcd936
@ -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`:
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user