[nylug-talk] VirtualDocumentRoot and PHP

Tim Gales tgales at tgaconnect.com
Fri Feb 16 03:12:05 EST 2007


Seth Rothenberg wrote:
>> OH! dotdeb.  The source of gnashing of teeth everywhere.   It's no
>> wonder you're having problems.
> 
> Thanks, Ron and others...
> I removed what I could, still have the behaviour that
> "mass hosting" works, but not php - it offers to download the file.
> (logged in, running "php test.php" works)
> 
You have to do (at a minimum) two things:
    1) tell Apache that files ending in php are
       to be specially processed
e.g.   AddType application/x-httpd-php .php

    2) load a suitable module for that special processing
e.g.   LoadModule php5_module  modules/libphp5.so
        your module may be named:
        libapache2-mod*
        (rc  libapache2-mod 0.5.2-3 Apache2 module to run php scriptso --
         taken from your earlier post)
-- 

T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com


More information about the nylug-talk mailing list