Hello,
I’m trying to set-up Invoice Ninja self-hosted (nginx; php7)
I followed the guides and arrive at the point where https://192.168.100.32:444/setup yields a 404.
The artisan commands succeeded.
When looking at the error.log of nginx I see following errors:
2017/12/02 22:18:10 [error] 21427#21427: *16231 open() “/volume1/web/ninja/public/setup” failed (2: No such file or directory), client: 192.168.100.127, server: _, request: “GET /setup HTTP/1.1”, host: “192.168.100.32:444”
2017/12/02 22:18:10 [error] 21427#21427: *16231 open() “/volume1/web/ninja/public/missing” failed (2: No such file or directory), client: 192.168.100.127, server: _, request: “GET /missing HTTP/1.1”, host: “192.168.100.32:444”, referrer: “https://192.168.100.32:444/setup”
I ensured step 2 of the guide:
chmod -R 755 storage
sudo chown -R www-data:www-data storage bootstrap public/logo
See nginx config file for this site below.
All help appreciated.
br,
Ruben
server {
listen 444 default;
server_name 127.0.0.1 localhost 192.168.100.32
# examle.com www.example.com;
ssl on;
ssl_certificate /etc/nginx/ssl/ininja.crt;
ssl_certificate_key /etc/nginx/ssl/ininja.key;
ssl_session_timeout 5m;
ssl_ciphers 'AES128+EECDH:AES128+EDH:!aNULL';
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
root /volume1/web/ninja/public;
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
try_files $uri $uri/ /index.php?$args;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log /var/log/nginx/ininja.access.log;
error_log /var/log/nginx/ininja.error.log;
sendfile off;
location ~ .php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass unix:/var/run/php71-fpm-ninja.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors off;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
}
location ~ /.ht {
deny all;
}
}
server {
listen 81;
server_name 127.0.0.1 localhost 192.168.100.32
# example.com www.example.com;
add_header Strict-Transport-Security max-age=2592000;
rewrite ^ https://$server_name$request_uri? permanent;
}