0

i have nginx and php-fpm installed and i have problem with css ans js files are being served by php-fpm this is strace for php-fpm process

    open("/home/user/public_html/he-2018-cache-v27.js", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
lseek(6, 0, SEEK_CUR)                   = 0
write(6, "!function(a,b){\"object\"==typeof "..., 8192) = 8192
write(6, "var e,f=a([],c.length,b),g=f.len"..., 8192) = 8192
write(6, "function(b){var c;do if(c=p?b.la"..., 8192) = 8192
write(6, "pe?(this.context=this[0]=a,this."..., 8192) = 8192
write(6, "d))return}(c||(delete g[h].data,"..., 8192) = 8192
write(6, "m(c,this).index(i)>=0:m.find(c,t"..., 8192) = 8192
write(6, "ltChecked=a.checked)}function wb"..., 8192) = 8192
write(6, ",h.left=d,f&&(e.left=f)),void 0="..., 8192) = 8192
write(6, "),h=1,i=20;if(g&&g[3]!==f){f=f||"..., 8192) = 8192
write(6, ">=0:void 0}},k.checkOn||(m.valHo"..., 8192) = 8192
write(6, "Fields[f]&&(c[a.responseFields[f"..., 8192) = 8192
write(6, "meout(b):f.onreadystatechange=Xc"..., 8192) = 8192
write(6, "(\"src\",image_verification.image_"..., 8192) = 8192
write(6, "ull_screen.file=$(\"#resize_file\""..., 8192) = 8192
write(6, "'s JavaScript requires jQuery\");"..., 8192) = 8192
write(6, "#'+b.id+'\"]'),this.transitioning"..., 8192) = 8192
write(6, "ar a=this;this.$element.hide(),t"..., 8192) = 8192
write(6, "ttom left right\")},c.prototype.h"..., 8192) = 8192
write(6, "d().find('[data-toggle=\"tab\"]')."..., 8192) = 8192
write(6, "$element.addClass(this.options.l"..., 8192) = 8192
write(6, "return a?0:this._clones.length/2"..., 8192) = 8192
write(6, "ngs.autoRefresh&&this.watch()},t"..., 8192) = 8192
write(6, "var b=c.fullscreenElement||c.moz"..., 8192) = 8192
write(6, "pe.draw=function(){var b,c=this."..., 8192) = 8192
write(6, "p: $(\"#links-panel\").offset().to"..., 2970) = 2970
close(6)                                = 0

The nginx php config is like this :

    # Pass PHP scripts on to PHP-FPM
    location ~* \.php$ {
    fastcgi_pass unix:/var/run/user.sock;
    fastcgi_index index.php;
    fastcgi_param  PATH_INFO          $fastcgi_path_info;
    fastcgi_param  SCRIPT_FILENAME  /home/user/public_html$fastcgi_script_name;
    include fastcgi_params;
    }

any ideas ?

  • 2
    Please show the full nginx configuration, and provide information where the files are located in the filesystem and what are the corresponding URLs for the files. – Tero Kilkanen Jan 6 at 18:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.