Re: Install PHP4 on a Apache2 + PHP5 system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a server on which Apache2 and PHP5 are functioning well, but I also want to build in support for PHP4 because the webmail package I use isn't compatible with PHP5... So, I need to install PHP4 next to PHP5, and make my <Directory> in httpd.include use PHP4 for my webmail directory...

I've never run this setup myself, but I just test this out and it worked for me. (I put it inside a VirtualHost, but you should be ok to put it in the Default server context too)


# set up an alias to the php4 cgi binary
ScriptAlias /cgi-bin/php4 /path/to/php4cgi

# i want files in http://example.com/mail/ to be parsed with php4
<Location /mail/>
   Action php4-script /cgi-bin/php4
   AddHandler php4-script .php
</Location>

You could use <Directory> too, but give it a file path, not a url.

--Rick

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux