You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Rob Saunders <ro...@saunders.yourideal.co.uk> on 2004/02/16 15:38:03 UTC
[users@httpd] Apache config with PHP and Mason
Hi,
I'm trying to configure PHP on an Apache 1.3.29 server that's already
using a Mason handler at the DocumentRoot level. As and when I try to
load a php script, I'm prompted to save the document, rather than the
php being executed. I guess that the problem lies in my httpd.conf, but
how do I get the .php file extension recognised? The line:
AddType application/x-httpd-php .php
is already included in the httpd.conf (as are the corresponding
LoadModule and AddModule lines for php4) but this seems to be
overridden by the perl-script/Mason handler that applies to the
DocumentRoot - how do I specify that this is
also still valid when the Mason handler is present also? Is this
possible? (I'd like to be able to include some php output into the
content of a Mason built page)
I'm running:
PHP 4.3.4
Apache 1.3.29
RH9
kernel 2.6.2
on intel 686 architecture.
(If the Mason handler is not applied to the document root, a script
containing the basic <?phpinfo()?> works just fine, so I don't think
that the php installation is suspect, just the configuration hopefully!)
Thanks in advance
Rob
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.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