eZ Community » Forums » Install & configuration » [solved] composer-clean-install (per...
expandshrink

[solved] composer-clean-install (per INSTALL.md) of ezplatform, FAILs display of root URI ("No input file specified."), ok if "/app.php" appended

[solved] composer-clean-install (per INSTALL.md) of ezplatform, FAILs display of root URI ("No input file specified."), ok if "/app.php" appended

Thursday 24 December 2015 7:02:41 pm - 2 replies

I've installed ezplatform (nginx + phpfpm + mariadb on linux)
I've configured a simple nginx vhost, based on provided "doc/nginx/etc/nginx/sites-available/mysite.com",
    server {
        client_max_body_size 20m;
        server_name dev.loc;
        server_tokens off;
        listen 10.10.1.17:443 ssl http2;
        index app.php;
        autoindex  on;
        root /srv/www/eztest/ezplatform/web/;
        access_log  /var/log/nginx/dev.loc.443.access.log   main;
        error_log   /var/log/nginx/dev.loc.443.error.log    notice;
        rewrite_log on;
        ssl on;
        include includes/ssl_protocol.conf;
        ssl_verify_client off;
        ssl_certificate         "ssl/my.crt";
        ssl_trusted_certificate "ssl/my.crt";
        ssl_certificate_key     "ssl/my.key";
        add_header Strict-Transport-Security "max-age=315360000; includeSubdomains";
        add_header X-Frame-Options DENY;
        gzip on;
    #    include includes/ez_params.d/ez_prod_rewrite_params;
        include includes/ez_params.d/ez_rewrite_params;
        location / {
            location ~ ^/app\.php(/|$) {
                include includes/ez_params.d/ez_fastcgi_params;
                fastcgi_pass phpfpm;
                fastcgi_param SYMFONY_ENV dev;
                fastcgi_param SYMFONY_DEBUG 1;
                fastcgi_param SYMFONY_HTTP_CACHE 0;
            }
        }
        include includes/ez_params.d/ez_server_params;
    }
On nav to
    https://dev.loc
I see in browser
    "No input file specified."
In logs, I see "[error] FastCGI sent in stderr: "Unable to open primary script",
    ==> /var/log/nginx/dev.loc.443.error.log <==
    2015/12/24 09:42:22 [notice] 14739#0: *1 "^/var/([^/]+/)?storage/images(-versioned)?/(.*)" does not match "/", client: 10.10.1.17, server: dev.loc, request: "GET / HTTP/2.0", host: "dev.loc"
    2015/12/24 09:42:22 [notice] 14739#0: *1 "^/favicon\.ico" does not match "/", client: 10.10.1.17, server: dev.loc, request: "GET / HTTP/2.0", host: "dev.loc"
    2015/12/24 09:42:22 [notice] 14739#0: *1 "^/robots\.txt" does not match "/", client: 10.10.1.17, server: dev.loc, request: "GET / HTTP/2.0", host: "dev.loc"
    2015/12/24 09:42:22 [notice] 14739#0: *1 "^/w3c/p3p\.xml" does not match "/", client: 10.10.1.17, server: dev.loc, request: "GET / HTTP/2.0", host: "dev.loc"
    2015/12/24 09:42:22 [notice] 14739#0: *1 "^/bundles/(.*)" does not match "/", client: 10.10.1.17, server: dev.loc, request: "GET / HTTP/2.0", host: "dev.loc"
    2015/12/24 09:42:22 [notice] 14739#0: *1 "^(.*)$" matches "/", client: 10.10.1.17, server: dev.loc, request: "GET / HTTP/2.0", host: "dev.loc"
    2015/12/24 09:42:22 [notice] 14739#0: *1 rewritten data: "/app.php/", args: "", client: 10.10.1.17, server: dev.loc, request: "GET / HTTP/2.0", host: "dev.loc"
    2015/12/24 09:42:22 [notice] 14739#0: *1 "^/(.*\.php)" matches "/app.php/", client: 10.10.1.17, server: dev.loc, request: "GET / HTTP/2.0", host: "dev.loc"
!!!    2015/12/24 09:42:22 [error] 14739#0: *1 FastCGI sent in stderr: "Unable to open primary script: /srv/www/eztest/ezplatform/web (Success)" while reading response header from upstream, client: 10.10.1.17, server: dev.loc, request: "GET / HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "dev.loc"
But on nav to
    https://dev.loc/app.php
all's well.  In browser,
    eZ Platform
    name
    Welcome to eZ Platform
    short_description
    This is the clean install coming with eZ Platform. It’s a barebone setup of the platform, an excellent foundation to build upon if you want to build from scratch. For more ready to go base designs or demo sites, please check the documentation.
and in logs,
    ==> /var/log/nginx/dev.loc.443.error.log <==
    2015/12/24 09:35:10 [notice] 13931#0: *3 "^/var/([^/]+/)?storage/images(-versioned)?/(.*)" does not match "/app.php", client: 10.10.1.17, server: dev.loc, request: "GET /app.php HTTP/2.0", host: "dev.loc"
    2015/12/24 09:35:10 [notice] 13931#0: *3 "^/favicon\.ico" does not match "/app.php", client: 10.10.1.17, server: dev.loc, request: "GET /app.php HTTP/2.0", host: "dev.loc"
    2015/12/24 09:35:10 [notice] 13931#0: *3 "^/robots\.txt" does not match "/app.php", client: 10.10.1.17, server: dev.loc, request: "GET /app.php HTTP/2.0", host: "dev.loc"
    2015/12/24 09:35:10 [notice] 13931#0: *3 "^/w3c/p3p\.xml" does not match "/app.php", client: 10.10.1.17, server: dev.loc, request: "GET /app.php HTTP/2.0", host: "dev.loc"
    2015/12/24 09:35:10 [notice] 13931#0: *3 "^/bundles/(.*)" does not match "/app.php", client: 10.10.1.17, server: dev.loc, request: "GET /app.php HTTP/2.0", host: "dev.loc"
    2015/12/24 09:35:10 [notice] 13931#0: *3 "^(.*)$" matches "/app.php", client: 10.10.1.17, server: dev.loc, request: "GET /app.php HTTP/2.0", host: "dev.loc"
    2015/12/24 09:35:10 [notice] 13931#0: *3 rewritten data: "/app.php/app.php", args: "", client: 10.10.1.17, server: dev.loc, request: "GET /app.php HTTP/2.0", host: "dev.loc"
    2015/12/24 09:35:10 [notice] 13931#0: *3 "^/(.*\.php)" matches "/app.php/app.php", client: 10.10.1.17, server: dev.loc, request: "GET /app.php HTTP/2.0", host: "dev.loc"
Same/similar error if I attempt to nav to
    https://dev.loc/ez
What's missing/wrong in the conf to get 'app.php' properly handled?

Modified on Monday 28 December 2015 4:27:56 am by anon _

Friday 25 December 2015 12:23:30 am

No issue here with (nginx + phpfpm + mariadb on linux. I did notice there are some differences in the ez_params.d conf files because of the change from index.php to app.php (and also various other changes), but i get a 404 when i use the old version ( < 2015.12). In ez_fastcgi_params the line

 set $fc_script_name "index.php";

is now

 set $fc_script_name "app.php";

I copied the 2015.12 ez_params.d to ezp_params.d to run next to previous version.

My vhost:

 server {
    listen       8000;
    server_name  ezplatform.yourdomain.com;

    root /srv/ezvhosts/ezplatform/web;

    include ezp_params.d/ez_prod_rewrite_params;
    include ezp_params.d/ez_rewrite_params;

    client_max_body_size 20m;

    location / {
        location ~ ^/app\.php(/|$) {
            include ezp_params.d/ez_fastcgi_params;
            fastcgi_pass unix:/var/run/php5-fpm.sock;
        }
    }

    access_log /var/log/nginx/ezplatform-access.log;
    error_log  /var/log/nginx/ezplatform-error.log notice;

    include ezp_params.d/ez_server_params;
}

Sunday 27 December 2015 3:02:47 am

Full details of example/install @:

"EZP-25336  composer-clean-install (per INSTALL.md) of ezplatform, FAILs display of root URI ("No input file specified."blunk.gif Emoticon, ok if "/app.php" appended"

https://jira.ez.no/browse/EZP-25336

Modified on Monday 28 December 2015 12:57:52 am by anon _

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from