2012-02-16, Thu

Symfony2 "No input file specified."

When getting started with Symfony2 using Apache and fast-cgi for PHP, you may get the following message come up when trying to open up the /app_dev.php/demo URL.

    No input file specified.

This occurs because the url rewrite module isn’t passing along the pathinfo details properly to the fcgi php. Here’s how you can fix it.

  1. Open the relavent php.ini file
  2. Look for the cgi.fix_pathinfo setting.
  3. You’ll most likely find it set to 0.
  4. Change it so that it reads cgi.fix_pathinfo=1
  5. Save the changes. Restart Apache.

Try loading up /app_dev.php/demo/. It should work now.

Isaac Su

tags: apache fastcgi fcgi php symfony2



  1. It works!!! but only in app_dev.php, no with app.php. Why???

    — roversanz · Mar 28, 10:39 AM · #

  2. Ahhh, you saved my life. This cgi.fix_pathinfo thing was my problem. Stupid nginx, comes with a comment that tells you to set it to 0

    — Anon · May 22, 08:52 PM · #

  3. Thanks, my problem is solved now on goDaddy ;)

    — Denes · Oct 26, 03:33 AM · #

  4. After banging my head on this for 6 hours I finally worked a solution to NO INPUT FILE SPECIFIED that included thoughts from this thread and more. The process was to 1: use the full upgrade file set less a few key folders, 2: upgrade the database via command line 3: Modify the php ini (which is hard, but is far from obvious on GoDaddy hosting).

    See: https://www.urtech.ca/2018/12/solved-updating-phpbb-no-input-file-specified

    I hope this helps. I was minutes away from rolling back and fnding a different BB platform.

    Ian Matthews · Dec 31, 04:17 PM · #

  5. Hi Dear!
    I am Andy, and i can provide you Guest post on high quality sites with live post and dofollow link, my all sites quality and DA is very healthy, all these available in discounted price, if want guest post on any sites please let me know,

    Sites DA Mozrank
    Site: https://www.theengineeringprojects.com 61 4.30
    Daily Visitors: 26,029 (+753)
    Examaple: https://www.theengineeringprojects.com/2018/09/how-to-install-outdoor-projector.html

    Site: https://techvaidya.com/the-major-perks-of-search-engine-optimization/ DA 44 4.10
    Daily Visitors: 2,058 (-1,051)

    Site: https://www.thetrentonline.com 64 4.60
    Daily Visitors: 12,026 (+1,183)
    Example: https://www.thetrentonline.com/3-steps-maintain-beard/

    Site: Www.EXEIdeas.Com 69 4.70
    Daily Visitors: 12,026 (+1,183)
    Example: http://www.exeideas.com/2018/10/celebrate-blogging-on-instagram.html

    Site: http://www.broowaha.com 71 4.90
    Daily Visitors: 5,933 (-170)

    Example: http://www.broowaha.com/articles/31758/ways-businesses-can-lower-their-utility-bills

    Sitehttps://augustafreepress.com/ 61 5.00
    Daily Visitors: 4,148 (+16)
    Examples can be found here: https://augustafreepress.com/business-front-page/

    Site: https://www.noobpreneur.com 60 4.50
    Daily Visitors: 7,819 (-76)
    Example: We publish natively, so paid posts will look and read the same as our non paid content

    Waiting your positive response,

    andycraft · Dec 31, 09:26 PM · #

  6. A land legal counselor will work with you and guarantee that each legitimate prerequisite is met. You would prefer not to wake up one day and get a warning that you have not gained your property lawfully. Most likely; a land attorney will give you the significant serenity, something that is extremely valuable in the present economy.

    majestic villas emaar · May 17, 12:44 AM · #

  7. Thanks for your sharing

    casino online · Dec 27, 05:02 PM · #

  8. Baccarat betting players do not need to spend money in their pockets at all, just we take advantage of the initial promotion we will get from signing up. And

    gclub · Mar 30, 07:08 PM · #