Click to See Complete Forum and Search --> : PHP with Apache 1.3.27 and Horde/IMP


nappy_d
01-02-2003, 02:36 PM
I am in the middle of implementing horde 2.1 and IMP 3.1( I have PHP 4.1.2 installed on my RedHat 7.3 box. All was fine til I attempted to connect to my horde installation. I try to connect to my virtual web and the following happens:

When I connect using the IP address 192.168.3.3:3000/horde/test.php instead of it loading the test php page, it loads the page showing the php code.

When I attemp to connect using the FQDN http://webmail.xxx.org:3000/horde/test.php it attempts to download the page to my workstation.

I am lost and looking for some insight. Below is the directive of the virtual site I created:

NameVirtualHost 192.168.3.3:3000

<VirtualHost 192.168.3.3:3000>
ServerAdmin email@domain.org
DocumentRoot /web/htdocs/webmail/horde/imp
ServerName webmail.xxx.org
Port 3000
ErrorLog /web/logs/mail/error_log
CustomLog /web/logs/mail/access_log combined
AddType Application/x-php .php

Alias /horde /web/htdocs/webmail/horde/
Alias /horde/ /web/htdocs/webmail/horde/
IndexOptions
</VirtualHost>
:confused:

nappy_d
01-20-2003, 01:02 PM
I found the answer to my own problem. I chagned my config for php applications from:

AddType application/x-php .php

to:

AddType application/x-httpd-php .php /* for PHP 4 */