note 83148 deleted from features.commandline by nlopess
| From: | nlopess@php.net | Date: | Sun, 25 May 2008 09:01:10 +0000 |
| Subject: | note 83148 deleted from features.commandline by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-139726@lists.php.net to get a copy of this message | ||
Note Submitter: the_bloke AT norway.no
----
An informational post in the hope that others might save some frustration:
(Keywords: mod_rewrite, rewritemap, extension not present )
After upgrading from 5.0.x -> 5.2.5 -> 5.2.6 my rewritemaps in apache (PHP scripts loaded
through httpd.conf) became useless.
These use PHPCLI to execute.
I got the error:
Extension 'inputfilenamehere.php' not present.
First I had the --q param, (-q caused errors back in 2005 when the server was set up), removed this,
replaced with -q, didn't work.
When editing the bashline options in the file, cli would sporadically give me either:
-bash: ./inputfilenamehere.php: /usr/bin/php^M: bad interpreter: No such file or directory
or an error along the lines of:
Cannot find the input file: *blankspacehere*
After creating a new .php file and typing the bashline manually then copying the text from one of
the broken files into the new one, everything worked.
See also these posts for somewhat similar errors:
goalain eat gmail dont com
21-Aug-2006 09:20
If your php script doesn't run with shebang (#!/usr/bin/php).....
&&
db at digitalmediacreation dot ch
22-Feb-2005 08:49
A very important point missing...