[imp] test.php3 on Debian

James james@james-web.net
Tue, 5 Mar 2002 10:27:10 -0500


You can apt-get php:

#apt-get install php4

You also have to make sure that these two lines are in your httpd.conf:
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
AddType application/x-httpd-php .php

- James

> -----Original Message-----
> From: sebastian segeth [mailto:sebastian.segeth@fernuni-hagen.de] 
> Sent: Tuesday, March 05, 2002 6:50 AM
> To: imp@lists.horde.org
> Subject: Re: [imp] test.php3 on Debian
> 
> 
> 
> 
> Jan Schneider wrote:
> 
> > Zitat von sebastian segeth <sebastian.segeth@fernuni-hagen.de>:
> >
> > > Hi all,
> > >
> > > when i want to call the "test.php3" or any php files
> > > then my browser would like to downlad a file
> > > i get then a message "you have startet to download a file of type 
> > > application/x-httpd-php".
> >
> > You didn't configure your webserver to run PHP files.
> 
> I have to do them.
> How can i install the php-modules with Debian?
> 
> >
> >
> > Jan.
> >
> > --
> > http://www.horde.org - The Horde Project
> > http://www.ammma.de - discover your knowledge 
http://www.tip4all.de - 
> Deine private Tippgemeinschaft
>
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org



>From eculp@encontacto.net Date: Tue,  5 Mar 2002 07:38:46 -0800
Return-Path: <eculp@encontacto.net>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 93676 invoked from network); 5 Mar 2002 15:38:47 -0000
Received: from adsl-64-173-182-158.dsl.mtry01.pacbell.net (HELO encontacto.net) (64.173.182.158)
  by clark.horde.org with SMTP; 5 Mar 2002 15:38:47 -0000
Received: from localhost (localhost [127.0.0.1])
  (uid 0)
  by encontacto.net with local; Tue, 05 Mar 2002 07:38:46 -0800
Received: from 64.173.182.155 ( [64.173.182.155])
	as user eculp@encontacto.net@mail.encontacto.net by Mail.EnContacto.Net with HTTP;
	Tue,  5 Mar 2002 07:38:46 -0800
Message-ID: <1015342726.3c84e686592e7@Mail.EnContacto.Net>
Date: Tue,  5 Mar 2002 07:38:46 -0800
From: eculp@encontacto.net
To: imp@lists.horde.org
References: <01a001c1b081$d03a5c80$e200a8c0@ibmhule> <3C653596.7060504@sunnmore.net> <3C73E71B.9AB75A7F@sgi.es> <3C75F80F.4E72F3C4@sgi.es> <20020225194827.GD31809@horde.org> <3C7CCFA7.1BD88F80@sgi.es> <1014865918.3c7d9ffeac165@marina.horde.org> <3C84DCB5.494B0E10@sgi.es>
In-Reply-To: <3C84DCB5.494B0E10@sgi.es>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Originating-IP: 64.173.182.155
Subject: Re: [imp] IMP 3.0 checking for IMAP server on LDAP

Quoting Jorge Izquierdo <jizquierdo@sgi.es>:

> Thanks for your help but know I´m writing my php code and I have a doubt:
> what´s
> the varible I have to set with my LDAP lookup? I only want that the
> information
> taken from the LDAP will be the server name of the IMAP server for the user
> but I
> would like that all other parameters of the server would be taken from the
> rservers.php file. Is this possible ? What would be the varible? I used
> $imp['server']  but this seems not to work.

I'm not sure that I understand the question, Jorge.  You can always "pirate"
the code from horde/imp/config/conf.php and modify it to your needs or just
uncomment it add the name of the function and use it as documented.  It is
actually applied in login.inc if my memory serves me right.
The following code from that file may do what you are after.

         $vdomain = getenv('HTTP_HOST');
         $vdomain = preg_replace('|^mail\.|i', '', $vdomain);
         $vdomain = strtolower($vdomain);

If this isn't what you are looking for an explanation of what you can't
get to work or what you want to do specifically would help.

provecho y suerte,

ed
> 
> Thanks
> 
> 
> 
> Chuck Hagenbuch wrote:
> 
> > Quoting Jorge Izquierdo <jizquierdo@sgi.es>:
> >
> > > I hope not to disturb anybody but I have some problems with my webmail
> IMP
> > > installation and I´ll be very pleased if anyone could help me. I´m trying
> to
> > > obtain the IMAP server to connect from IMP with an LDAP session. I would
> like
> > > my IMP to do an ldapsearch to my LDAP server and looking for an
> attribute
> > > that shows the IMAP server for the user is trying to log in.
> >
> > You ought to be able to use the 'vinfo' hook to do this - just put the
> custom
> > LDAP code to select the mailserver in there.
> >
> > -chuck
> >
> > --
> > Charles Hagenbuch, <chuck@horde.org>
> > "A dream which helps you to live your reality with dignity
> >  and justice is a good dream." - Tariq Ramadan
> >
> > --
> > IMP mailing list: http://horde.org/imp/
> > Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> 
> --
> ----------------------------------------------------------
> Jorge Izquierdo Alonso
> e-mail: jizquierdo@sgi.es
> Tfn: +34 91 806 16 00 (switchboard)
> Fax: +34 91 806 16 99
> SGI Soluciones Globales Internet
> C/Isaac Newton nº 11
> 28760 Tres Cantos,  Madrid
> http://www.sgi.es
> 
> 
> 
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> 
> 




-------------------------------------------------