Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
“No input file specified.” with default .htaccess under FCGId on Apache
  • I just spent quite a bit of time troubleshooting a switch to a new server and after pulling my hair out found the solution so I want to share it for anyone else that runs into this...  In my case I'm running on the Amazon EC2 Linux AMI with Virtualmin and all the latest software.  This only happens running under FCGId.  Running under standard CGI there is no problem with the default .htaccess.

    My Apache with fcgid does NOT like the standard .htaccess line:
    RewriteRule ^(.*)$ index.php/$1 [L]

    I had to change it to the following else I would only get the error "No input file specified.":
    RewriteRule ^(.*)$ index.php?/$1 [L]

    Not the question mark after "index.php" and before the slash "/".  I do not know why my setup required this change but I imagine someone somewhere has ran into this issue or will in the future besides me.  I hope my hours of frustration over this simple question mark can save others some time. :)
  • I don't know what .htaccess you've been using.

    The default one, supplied with FuelPHP in the /public folder, contains:

        # deal with php5-cgi first
        <IfModule mod_fcgid.c>
            RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
        </IfModule>

    which includes the question mark.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion