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

---

Comment

  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,
    Regards,
    Andy,,,,,….

    andycraft · Dec 31, 09:26 PM · #

---
 
---