1 reputation
1
bio website
location
age
visits member for 2 years, 7 months
seen Jan 19 '12 at 19:17

Jan
18
comment Apache PHP on Ubuntu returning 'No input file specified.'
Okay, I'll done that and updated the original question with the results. There defnitely does seem to be something wrong. I don't think the /php-fastcgi/ path should be being matched at all.
Jan
18
awarded  Editor
Jan
18
revised Apache PHP on Ubuntu returning 'No input file specified.'
Added rewrite log and comments
Jan
17
comment Apache PHP on Ubuntu returning 'No input file specified.'
cyberx86, the access log reports 404 as I've stated above. THere's nothing in the apache error log.
Jan
17
comment Apache PHP on Ubuntu returning 'No input file specified.'
Interestingly, if I change the path to an unkonwn one RewriteRule /hello$ /home/www/mygarble.com/1.8.0/public_http/rubbish/helloworld.php [L] I get a different 404 error, the standard Apache 404 page. So the initial configuration does find the PHP file, but executes it incorrectly. Whether this is a problem with apache, fastcgi or PHP I just don't know.
Jan
17
comment Apache PHP on Ubuntu returning 'No input file specified.'
THanks for getting back to me, Time. THere's no need for a rewrite base, they're only allowed in per-directory configuration files. I've just double checked this. I also have already tried a full path RewriteRule /hello$ /home/www/mygarble.com/1.8.0/public_http/php/helloworld.php [L] and I get the same error.
Jan
17
comment Apache PHP on Ubuntu returning 'No input file specified.'
Another update: both the access log and http header give 404 Not Found.
Jan
17
comment Apache PHP on Ubuntu returning 'No input file specified.'
I've updated the config file...RewriteEngine on RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule /hello$ /php/helloworld.php [L] you can now see this yourself with http://173.45.226.110/hello
Jan
17
comment Apache PHP on Ubuntu returning 'No input file specified.'
I've checked that out. For some reason there was a very good reason why I left them all out (the config file you see here is much abrigded). The problem is definitely to do with the display of a php script as a result of a rewrite. Displaying a text file as the result of a rewrite or displaying the php file directly works fine. I'm beginning to think that this is a bug.
Jan
17
asked Apache PHP on Ubuntu returning 'No input file specified.'