Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

[Nginx] invalid number of arguments in "fastcgi_pass" directive

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
phunkb
Posts: 4
Joined: Wed Jan 23, 2019 7:55 pm

Os: Ubuntu 17x
Web: nginx + php-fpm
[Nginx] invalid number of arguments in "fastcgi_pass" directive
  • Quote

Post by phunkb » Wed Jan 23, 2019 8:00 pm

Code: Select all

user@server:~$ sudo nginx -t
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /home/admin/conf/web/domain.com.nginx.conf:22
I get the above, then in config i check and its like this;

Code: Select all

 location ~ [^/]\.php(/|$) {
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            if (!-f $document_root$fastcgi_script_name) {
                return  404;
            }

            fastcgi_pass;
            fastcgi_index   index.php;
            include         /etc/nginx/fastcgi_params;
        }
Any ideas? Thanks!
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: [Nginx] invalid number of arguments in "fastcgi_pass" directive
  • Quote

Post by grayfolk » Wed Jan 23, 2019 10:32 pm

http://nginx.org/docs/http/ngx_http_fas ... stcgi_pass
Top

phunkb
Posts: 4
Joined: Wed Jan 23, 2019 7:55 pm

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: [Nginx] invalid number of arguments in "fastcgi_pass" directive
  • Quote

Post by phunkb » Wed Jan 23, 2019 10:47 pm

grayfolk wrote: ↑
Wed Jan 23, 2019 10:32 pm
http://nginx.org/docs/http/ngx_http_fas ... stcgi_pass
Hi! Thanks, I have put localhost:9000 in there and rebooted but the problem is still there.
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: [Nginx] invalid number of arguments in "fastcgi_pass" directive
  • Quote

Post by grayfolk » Wed Jan 23, 2019 10:59 pm

Your config are corrupted. Try to rebuild web-config via Vesta panel.
Top

phunkb
Posts: 4
Joined: Wed Jan 23, 2019 7:55 pm

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: [Nginx] invalid number of arguments in "fastcgi_pass" directive
  • Quote

Post by phunkb » Wed Jan 23, 2019 11:01 pm

grayfolk wrote: ↑
Wed Jan 23, 2019 10:59 pm
Your config are corrupted. Try to rebuild web-config via Vesta panel.
Will do, although, where is that option? :P thanks
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password