Aaron Steimle wrote:
> Paul M Foster wrote:
>> Scenario:
>>
>> My wife's Linux machine, Debian Sid. Installed apache2, php5,
>> apache2-mod-php5, etc. I have a localhost PHP program installed in
>> /var/www (the proper place). I'd like her to be able to run it.
>>
>> When I bring up the URL for the program in Lynx, it works find, though
>> of course in Lynx is looks like crap.
>>
>> In Iceweasel (Firefox 2.0), when I bring up this same URL, it thinks I
>> want to *download* the script, and opens the download window.
>> Apache2's been restarted, just in case.
>>
>> I don't understand this. Works fine on my machine, nearly identical
>> setup. Apache2 should be feeding the browser the data, not marking the
>> file for download. It works in Lynx, but not in Iceweasel. Iceweasel
>> shouldn't even care what kind of file it is. It should just call for
>> Apache2 to load the file, and Apache2 should send the contents, as
>> preprocessed by it.
>>
>> Am I missing or not understanding something here?
>>
>> Paul
>>
> If it is a php file: I usually have the *download* issue when I have bad
> PHP code. Create a test.php file and put phpinfo(); in it. you can even
> run from shell to see if php is install correctly ( cli is install by
> default I believe) php -r 'print phpinfo();'
>
(No, cli is a separate package. But it's also installed.)
I've never had that problem. I just get PHP errors in the browser.
However, I put my standard "phpinfo.php" into the document root for that
machine, and it ran fine. But the main PHP code I was attempting to run
runs fine on *my* machine (localhost) and it ran fine in Lynx on her
machine.
See, there's too much contrary data. It still doesn't make sense.
Paul
-- Paul M. Foster ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:06:33 EDT