nginx configuration - sharetronix

Replace nginx-forum at
Mon Nov 3 06:40:33 UTC 2014

i try to setup sharetronix on my vps server, with nginx + php5-fpm. The
problem is (maybe) my nginx configuration, when i try to view website, i get
error 404 - No input file specified.

My configuration (at last)

    server {
    root /var/www/sharetronix.example;
    server_name sharetronix.example www.sharetronix.example;
    location / { 
        if (!-e $request_filename) { 
            rewrite ^(.*)$ /index.php?$request_uri break; 
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param HTTPS off;
    error_log /var/log/nginx/sharetronix.example.error.log;
    access_log /var/log/nginx/sharetronix.example.access.log;

but error log show this

    2014/11/02 06:40:59 [error] 18235#0: *3 FastCGI sent in stderr: "PHP
message: PH P Warning: Unknown: failed to open stream: Success in Unknown on
line 0 Unable to open primary script: /var/www/sharetronix.example/
(Success)" while rea ding response header from upstream, client:, server: share.z-latko .info, request: "GET / HTTP/1.1",
upstream: "fastcgi://unix:/var/run/ ck:", host:

Posted at Nginx Forum:,254533,254533#msg-254533

More information about the nginx mailing list