You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chris Rehm <ch...@javadisciple.com> on 2009/02/01 18:49:57 UTC
[users@httpd] PHP files not being processed.
I have recently installed Apache 2.2 on Windows Vista. I followed a video
tutorial from the web, everything seemed to go fine and the server appears
to be functioning fine. I can use it to serve html files using the localhost
prefix and it functions as part of my web development process.
However, when I try to process a PHP file, even a simple "hello world" type
tutorial.php, the files are not processed but are treated as some other
type of object. That is, a download dialog is opened for them and I can
either "open" or "download". If I choose open, the file is opened for edit
in my web development software.
I've checked the error log and when Apache starts up, I get:
[Sun Feb 01 08:01:33 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.8
configured -- resuming normal operations
so it seems as though it is all running fine.
So to clarify, if I put my test.php file in the htdocs root folder and I
open a browser and put localhost/test.php in the address bar, I get a
download dialog. If I put any standard html documents there and open them
with localhost/index.html they work just fine.
I'm wondering if there is some setting on my machine I just am unaware of or
maybe I've set wrong. I'm grateful for any help.
Chris Rehm
chris@javadisciple.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] PHP files not being processed. SOLVED
Posted by Chris Rehm <ch...@javadisciple.com>.
Thank you so much. It was a typo in the addhandler statement and the
referenced article got me to it in minutes.
----- Original Message -----
From: "Eric Covener" <co...@gmail.com>
To: <us...@httpd.apache.org>
Sent: Sunday, February 01, 2009 9:59 AM
Subject: Re: [users@httpd] PHP files not being processed.
> On Sun, Feb 1, 2009 at 12:49 PM, Chris Rehm <ch...@javadisciple.com>
> wrote:
>> However, when I try to process a PHP file, even a simple "hello world"
>> type
>> tutorial.php, the files are not processed but are treated as some other
>> type of object. That is, a download dialog is opened for them and I can
>> either "open" or "download". If I choose open, the file is opened for
>> edit
>> in my web development software.
>
> http://wiki.apache.org/httpd/PHPDownload
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Chris Rehm
chris@javadisciple.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] PHP files not being processed.
Posted by Eric Covener <co...@gmail.com>.
On Sun, Feb 1, 2009 at 12:49 PM, Chris Rehm <ch...@javadisciple.com> wrote:
> However, when I try to process a PHP file, even a simple "hello world" type
> tutorial.php, the files are not processed but are treated as some other
> type of object. That is, a download dialog is opened for them and I can
> either "open" or "download". If I choose open, the file is opened for edit
> in my web development software.
http://wiki.apache.org/httpd/PHPDownload
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org