[wplug] php scripts won't run
Tom Rhodes
trhodes at FreeBSD.org
Wed Feb 20 20:07:01 EST 2008
On Wed, 20 Feb 2008 06:43:26 -0500
"Jonathan S. Billings" <wbanguna at gmail.com> wrote:
> On Tue, Feb 19, 2008 at 07:46:49PM -0500, Zach wrote:
> > I'm having a vexing problem getting php scripts to load.
> >
> > When I try to load one locally such as /var/www/phpsysinfo/index.php
> > it opens a dialog box asking me whether I'd like to download it or
> > open with an editor, it never renders the PHP script. I also tried
> > remotely by loading http://www.club.cc.cmu.edu/~chaos/foo.php in my
> > browser and it just prints out the file contents.
>
> Well, PHP doesn't work unless it's sent through a parser, so just
> loading the php file through the filesystem with a browser isn't going
> to work.
>
> It looks like the computer club's web server isn't running PHP,
> either:
> Server: Apache/2.0.58 (Unix) mod_ssl/2.0.58 OpenSSL/0.9.7e
> mod_pubcookie/3.2.1a
For a normal test, I usually create a simple file:
<?
phpinfo()
?>
and attempt to load it from the web.
--
Tom Rhodes
More information about the wplug
mailing list