Re: php web pages with apache

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jay Jacobson
Date:  
To: plug-discuss
Subject: Re: php web pages with apache
On Fri, 23 Jul 2004, ShieldX wrote:

> How would one go about making apache serve php files as pages
> instead of 'downloads?'
> I do believe I have php modules running in apache,
> but when I try to access the files [in /var/www] with konqueror,
> I am only asked if I want to save "index.php" to disk.



Do you have Apache configured to use the PHP interpreter for PHP pages?
Your httpd.conf file is probably missing something like:

AddType application/x-httpd-php .php

You will probably also want to add "index.php" to your "DirectoryIndex"
directive.

~Jay

--
..
.. Jay Jacobson
.. Edgeos, Inc. - 480.961.5996 - http://www.edgeos.com
..
.. Network Security Auditing and
.. Vulnerability Assessment Managed Services
..

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss