Hi,
I use nginx 1.4.6 on Ubuntu 14.04.1 LTS, PHP 5.5.9.
To install PHP with nginx I use direction on http://wiki.ubuntuusers.de/nginx.
kirby I installit on my local mashin, the first calling is ok, but if I calling the panel (http://localhost/kirby/panel/login) or calling http://localhost/kirby/index.php/projects/project-b: I get follow massage
404 Not Found
Tho complete folder /var/www/kirby is on 777.
Here a part of the log file:
2015/01/20 20:50:55 [error] 13565#0: *1 open() "/var/www/kirby/panel/login" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /kirby/panel/login HTTP/1.1", host: "localhost", referrer: "http://localhost/kirby/"
2015/01/20 20:50:55 [error] 13565#0: *1 open() "/var/www/404.html" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /kirby/panel/login HTTP/1.1", host: "localhost", referrer: "http://localhost/kirby/"
2015/01/20 20:50:58 [error] 13565#0: *1 open() "/var/www/kirby/index.php/projects/project-b" failed (20: Not a directory), client: 127.0.0.1, server: localhost, request: "GET /kirby/index.php/projects/project-b HTTP/1.1", host: "localhost", referrer: "http://localhost/kirby/"
2015/01/20 20:50:58 [error] 13565#0: *1 open() "/var/www/404.html" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /kirby/index.php/projects/project-b HTTP/1.1", host: "localhost", referrer: "http://localhost/kirby/"
/etc/nginx/nginx.conf:
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
/etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/;
index index.html index.htm index.php;
# Make site accessible from http://localhost/
server_name localhost;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
charset utf-8;
}
/etc/nginx/sites-enabled$
lrwxrwxrwx 1 root root 34 dec 25 16:48 default -> /etc/nginx/sites-available/default
Have someone idea, what is wrong?
I use nginx 1.4.6 on Ubuntu 14.04.1 LTS, PHP 5.5.9.
To install PHP with nginx I use direction on http://wiki.ubuntuusers.de/nginx.
kirby I installit on my local mashin, the first calling is ok, but if I calling the panel (http://localhost/kirby/panel/login) or calling http://localhost/kirby/index.php/projects/project-b: I get follow massage
404 Not Found
Tho complete folder /var/www/kirby is on 777.
Here a part of the log file:
2015/01/20 20:50:55 [error] 13565#0: *1 open() "/var/www/kirby/panel/login" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /kirby/panel/login HTTP/1.1", host: "localhost", referrer: "http://localhost/kirby/"
2015/01/20 20:50:55 [error] 13565#0: *1 open() "/var/www/404.html" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /kirby/panel/login HTTP/1.1", host: "localhost", referrer: "http://localhost/kirby/"
2015/01/20 20:50:58 [error] 13565#0: *1 open() "/var/www/kirby/index.php/projects/project-b" failed (20: Not a directory), client: 127.0.0.1, server: localhost, request: "GET /kirby/index.php/projects/project-b HTTP/1.1", host: "localhost", referrer: "http://localhost/kirby/"
2015/01/20 20:50:58 [error] 13565#0: *1 open() "/var/www/404.html" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /kirby/index.php/projects/project-b HTTP/1.1", host: "localhost", referrer: "http://localhost/kirby/"
/etc/nginx/nginx.conf:
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
/etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/;
index index.html index.htm index.php;
# Make site accessible from http://localhost/
server_name localhost;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
charset utf-8;
}
/etc/nginx/sites-enabled$
lrwxrwxrwx 1 root root 34 dec 25 16:48 default -> /etc/nginx/sites-available/default
Have someone idea, what is wrong?