Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7553079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:57:04+00:00 2026-05-30T10:57:04+00:00

I’m setting up a new Ubuntu server running nginx, and I’m trying to run

  • 0

I’m setting up a new Ubuntu server running nginx, and I’m trying to run a small WordPress blog on the site. I cannot seem to get the configuration for this part right, and I’ve looked closely at all the docs and online help I could find.

I’m running the blog at http://www.example.com/blog, and I don’t care about any higher location blocks, I just want to get the config right for this one area. I am trying to use:

location /blog/ {
         root /usr/local/www/data;

         try_files $uri $uri/ index.php?$args;
         index index.php;
         location ~ \.php$ {
                  fastcgi_pass 127.0.0.1:9000;
                  fastcgi_index index.php;
                  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                  fastcgi_split_path_info ^(/blog)(/.*)$;
                  include fastcgi_params;
         }
}

I have php-cgi running on 127.0.0.1:9000.

When I try to go to http://www.example.com/blog, or blog/ or blog/index.php, I get the “No input file specified” error. As a test, I created a phpinfo.php file and put that into /usr/local/www/data/blog/, but that gives the same error.

However, as a further test, I put the phpinfo.php file at /, and then changed the param line to “fastcgi_param SCRIPT_FILENAME /phpinfo.php;”, and that did work, so it seems that my FastCGI process is correctly running, but for some reason I’m not getting the path set correctly in nginx.

I’ve looked closely at the discussion of this issue at http://blog.martinfjordvald.com/2011/01/no-input-file-specified-with-php-and-nginx/, and I have looked at the file permissions, and as far as I can tell, it’s all OK. Every directory in the /usr/local/www/data/blog tree has execute permissions, and everything from /usr/local/www on down is owned by, and readable to, the www-data user that runs both nginx and FastCGI.

The logs are not helpful on this; I don’t get anything in the error logs even when I set the level to info.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:57:06+00:00Added an answer on May 30, 2026 at 10:57 am

    Remove this from your configuration

    fastcgi_split_path_info ^(/blog)(/.*)$;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.