[rt-users] RT, Apache and PHP

Matt Disney mdisney at ecdev.fedex.com
Tue Feb 12 18:37:46 EST 2002


Actually, if you change the "SetHandler" line to :

AddHandler perl-script .html

That will fix the problem. It will only make Mason handle html files,
not PHP files. 

Does anyone know of anything else this breaks? Maybe it should be like
this in the docs and the README?

Matt

Rich Lafferty writes:
>On Fri, Feb 08, 2002 at 07:48:30PM -0500, Bolivar Geraldo (bgeraldo at sockeye.co
>m) wrote:
>> I'm running the RT 2.0.11
>> 
>> I have installed PHP4 on the server that is running my company's RT
>> instance, but I'm having trouble getting Apache to parse .php files.
>> When I comment the following out of my httpd.conf, everything works
>> fine:
>> 
>> PerlModule Apache::DBI
>> PerlFreshRestart On
>> PerlRequire /opt/rt2/bin/webmux.pl
>> <Location />
>>  SetHandler perl-script
>>  PerlHandler RT::Mason
>> </Location>
>> 
>> When I put it back in, I get asked to download the .php file instead of
>> parsing it. Can anyone tell me what exactly the code above does and/or
>> if there is a way around this?
>
>That <Location> block says to use the handler perl-script for
>everything under "/". Probably not what you want, but I'm not sure
>where the PHP-related stuff might reside to tell you how to fix it.
>
>  -Rich
>
>-- 
>Rich Lafferty --------------+-----------------------------------------------
> Ottawa, Ontario, Canada    |  Save the Pacific Northwest Tree Octopus!
> http://www.lafferty.ca/    |    http://zapatopi.net/treeoctopus.html
>rich at lafferty.ca -----------+-----------------------------------------------
>
>_______________________________________________
>rt-users mailing list
>rt-users at lists.fsck.com
>http://lists.fsck.com/mailman/listinfo/rt-users
>






More information about the rt-users mailing list