BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

File does not exist: /var/www/bookstack/public/login

Open wforumw opened this issue 4 years ago • 7 comments

Attempted Debugging

  • [X] I have read the debugging page

Searched GitHub Issues

  • [X] I have searched GitHub for the issue.

Describe the Scenario

I have a fresh install, following https://www.bookstackapp.com/docs/admin/installation/, on a Debian Bullseye. The first time I access my page via https://my-server, I got the The requested URL was not found on this server

In our apache logs we see File does not exist: /var/www/bookstack/public/login

As a test I put a phpinfo.php file under /var/www/bookstack/public and I call it via https://my-server/phpinfo.php I get the outputs information about PHP's configuration

Any idee what could be wrong?

Many thanks

Exact BookStack Version

v22.09.1

Log Content

No response

PHP Version

7.4

Hosting Environment

Debian Bullseye

wforumw avatar Sep 23 '22 13:09 wforumw

Is mod_rewrite enabled for the apache?

Commonly:

sudo a2enmod rewrite
sudo systemctl restart apache2.service

Also, just as a prior warning, we'll likely be dropping PHP7.4 support later this year, for a php8.0 minimum.

ssddanbrown avatar Sep 23 '22 13:09 ssddanbrown

Is enabled yes

wforumw avatar Sep 23 '22 13:09 wforumw

@wforumw Okay. Could you share any apache configuration that's been setup for this install?

ssddanbrown avatar Sep 23 '22 23:09 ssddanbrown

We have only port 443 open.

apache.txt

wforumw avatar Sep 24 '22 07:09 wforumw

@wforumw I noticed the first apache configuration you shared did not have the rewrite rules included. Is that something you've now added afterwards? If so, does that change the scenario or errors received upon access?

ssddanbrown avatar Sep 24 '22 12:09 ssddanbrown

@ssddanbrown The first apache config was an old one. The latest one works now. I don't know why the same config did not work before. Many thanks for your help. Will close it.

wforumw avatar Sep 24 '22 15:09 wforumw

With the latest apache config attached it works now.

wforumw avatar Sep 24 '22 15:09 wforumw