Page 1 of 1

Lỗi No input file specified khi up code lên.

PostPosted:14 Aug 2018 17:09
by ruaconx11
No input file specified. một số folder vào đc, 1 số không vào được . Mặc dù em đã chỉnh số 11: Fix Loi Chmod, Chown ,

Re: Lỗi No input file specified khi up code lên.

PostPosted:14 Aug 2018 17:15
by nguyenoanh
Lỗi này do rule nginx dành cho code chưa chính xác.
Em chỉnh lại rule trong vhost /etc/nginx/conf.d/domain.com.conf nhé !

Re: Lỗi No input file specified khi up code lên.

PostPosted:15 Aug 2018 10:05
by ruaconx11
:( hok biết code mà gặp cái này là ngu luôn hix. bên kia nó gửi cái link hix. em xài vesta cp thì nó chạy bình thường vpssim thì bị chặn :(
https://kb.mailwizz.com/articles/apache ... -mailwizz/

Re: Lỗi No input file specified khi up code lên.

PostPosted:15 Aug 2018 10:09
by nguyenoanh
Vesta cp dùng apache, vpssim dùng nginx mà.

Re: Lỗi No input file specified khi up code lên.

PostPosted:15 Aug 2018 10:51
by ruaconx11
https://kb.mailwizz.com/articles/nginx- ... -mailwizz/

nó gửi thêm cái này, thì mình vào " Em chỉnh lại rule trong vhost /etc/nginx/conf.d/domain.com.conf nhé ! " sửa sau thế anh ??

Re: Lỗi No input file specified khi up code lên.

PostPosted:15 Aug 2018 14:41
by nguyenoanh
Code: Select all
location / {
         if (!-e $request_filename){
         rewrite ^(/)?api/.*$ /api/index.php;
         }
         if (!-e $request_filename){
         rewrite ^(/)?customer/.*$ /customer/index.php;
         }
         if (!-e $request_filename){
         rewrite ^(/)?backend/.*$ /backend/index.php;
         }
         if (!-e $request_filename){
         rewrite ^(.*)$ /index.php;
         }
      }
Em sử dụng đoạn này nhé !

Edit vhost, uncomment tất cả các config AAA, BBB, CCC, DDD , EEE (nếu có)

thay bằng config trên.