LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2012, 02:30 AM   #1
KaRt
LQ Newbie
 
Registered: Jul 2012
Location: india
Posts: 28

Rep: Reputation: Disabled
Red face nginx starting error


Quote:
* Starting web server nginx nginx: [emerg] invalid number of arguments in "fastcgi_param" directive in /etc/nginx/sites-enabled/indefero:23
the file is

Code:
server {
        listen 80;

        server_name www.mydomain.com;

        client_max_body_size 2m;

        access_log /home/myuser/public_html/mydomain.com/log/access.log;
        error_log /home/myuser/public_html/mydomain.com/log/error.log;

        root   /home/myuser/public_html/mydomain.com/public/;

        location / {

                        index  index.php;

                        try_files  / /index.php?_pluf_action=/&;
        }

        location = /index.php {
                        fastcgi_pass 127.0.0.1:9000;
                        fastcgi_index index.php;
                        fastcgi_param SCRIPT_FILENAME;
                        include /etc/nginx/sites-enabled/*;
                        #expires max
        }
}
 
Old 08-09-2012, 05:26 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,640

Rep: Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539
Hi,

Quote:
fastcgi_param SCRIPT_FILENAME;
The above is wrong. In a default php/fast-cgi setup, it should be
Code:
fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
And you also miss the rest of the fast-cgi parameters. Have a look at this for details

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem in starting nginx on Ubuntu 11.10 VPS dreamcoder Linux - Server 6 07-25-2012 03:05 PM
Nginx Error mrnothersan Linux - Server 3 06-30-2012 11:44 AM
error in nginx HariharanV Linux - Software 2 08-30-2011 04:11 AM
Nginx experts help me-problem when using Nginx php-fpm !!! HuMan-BiEnG Linux - Server 2 04-17-2011 02:30 PM
NGINX with PHP-FPM vis NGINX with Spawn-FCGI WhisperiN Linux - Server 1 03-15-2011 06:39 PM


All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration