"File not found" after Manual Install on Debian Server #257

Closed
opened 2026-02-04 18:07:38 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @TribuneX on GitHub (Feb 5, 2017).

I installed BookStack following the steps here: https://www.bookstackapp.com/docs/admin/installation/#ubuntu-1604

When I access the following site to login:
https://mydomain.net/bookstack/public/login
The pages shows:
File not found.

My nginx log shows me an php error, which I am unable to track down:
2017/02/05 11:50:31 [error] 23703#23703: *169 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.XXX.XXX, server: mydomain.net, request: "GET /bookstack/public/login HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "mydomain.net"
Any idea how to debug?

PHP Version: PHP 7.0.14-2
MySQL Version: 5.5.54-0+deb8u1

Extract of my nginx config:

location /bookstack/ {
root /var/www/bookstack/public;
try_files $uri $uri/ /index.php?$query_string;
}

location ~ ^(.+.php)(.) {
try_files $fastcgi_script_name =404;
fastcgi_split_path_info ^(.+.php)(.
)$;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_index index.php;
include fastcgi_params;
}

Originally created by @TribuneX on GitHub (Feb 5, 2017). I installed BookStack following the steps here: https://www.bookstackapp.com/docs/admin/installation/#ubuntu-1604 When I access the following site to login: https://mydomain.net/bookstack/public/login The pages shows: `File not found.` My nginx log shows me an php error, which I am unable to track down: `2017/02/05 11:50:31 [error] 23703#23703: *169 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.XXX.XXX, server: mydomain.net, request: "GET /bookstack/public/login HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "mydomain.net" ` Any idea how to debug? PHP Version: PHP 7.0.14-2 MySQL Version: 5.5.54-0+deb8u1 Extract of my nginx config: > location /bookstack/ { root /var/www/bookstack/public; try_files $uri $uri/ /index.php?$query_string; } >location ~ ^(.+\.php)(.*) { try_files $fastcgi_script_name =404; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_pass unix:/run/php/php7.0-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_index index.php; include fastcgi_params; }
OVERLORD added the 🐕 Support label 2026-02-04 18:07:38 +03:00
Author
Owner

@TribuneX commented on GitHub (Feb 5, 2017):

Got it work. I removed the root setting from my location block.

@TribuneX commented on GitHub (Feb 5, 2017): Got it work. I removed the root setting from my location block.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#257