LinuxQuestions.org
Help answer threads with 0 replies.
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, 03: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, 06:26 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
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 04:05 PM
Nginx Error mrnothersan Linux - Server 3 06-30-2012 12:44 PM
error in nginx HariharanV Linux - Software 2 08-30-2011 05:11 AM
Nginx experts help me-problem when using Nginx php-fpm !!! HuMan-BiEnG Linux - Server 2 04-17-2011 03:30 PM
NGINX with PHP-FPM vis NGINX with Spawn-FCGI WhisperiN Linux - Server 1 03-15-2011 07:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:45 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
Open Source Consulting | Domain Registration