Re: [SLUG] Localhost PHP and Iceweasel

From: Aaron Steimle (asteimle@washpat.com)
Date: Mon Dec 11 2006 - 23:58:26 EST


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();'

-----------------------------------------------------------------------
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:23 EDT