[imp] incorrect installation?

Lito A. Lampitoc ral@codewan.com.ph
23 Apr 2002 11:55:22 +0800


AddType application/x-httpd-php .php is enabled.
and also "DirectoryIndex index.html index.htm index.php"

but it still not parsed correctly.

Pls. help as I am very new to this.

Thanks.



On Mon, 2002-04-22 at 19:08, Miroslaw Jaworski wrote:
> * Lito A. Lampitoc (ral@codewan.com.ph) [020422 12:56] wrote:
> > After following all the instructions in the INSTALL file, I managed to
> > install all the prerequisites of IMP. but when accessing 
> > mydomain.com/horde/imp my browser return the content of index.php like
> > this one:
> > -----------------
> > <?php
> > /*
> >  * $Horde: imp/index.php,v 2.58.2.1 2002/01/02 17:05:26 jan Exp $
> >  *
> >  * Copyright 1999-2002 Charles J. Hagenbuch <chuck@horde.org>
> >  * Copyright 1999-2002 Jon Parise <jon@horde.org>
> >  *
> >  * See the enclosed file COPYING for license information (GPL).  If you
> >  * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
> >  */ define('IMP_BASE', dirname(__FILE__));
> > $imp_configured = (@is_readable(IMP_BASE . '/config/conf.php') &&
> >                    @is_readable(IMP_BASE . '/config/html.php') &&
> >                    @is_readable(IMP_BASE . '/config/mime_drivers.php')
> > &&
> >                    @is_readable(IMP_BASE . '/config/prefs.php') &&
> >                    @is_readable(IMP_BASE . '/config/servers.php')); if
> > ($imp_configured) {
> >     include_once IMP_BASE . '/lib/base.php';
> >    
> >     $uri = 'redirect.php';
> >     if (!empty($HTTP_SERVER_VARS['QUERY_STRING'])) {
> >         $uri .= '?' . $HTTP_SERVER_VARS['QUERY_STRING'];
> >     }
> >    
> >     header('Location: ' . Horde::applicationUrl($uri, true));
> >     exit;
> >    
> > /* IMP isn't configured */
> > } else {
> >     include IMP_BASE . '/templates/index/notconfigured.inc';
> > } ?>
> > 
> > 
> > --------------
> > 
> > I think my apache support php4 because i compiled with php support
> > statically and doing httpd -l:
> > 
> > Compiled-in modules:
> >   http_core.c
> >   mod_env.c
> >   mod_log_config.c
> >   mod_mime.c
> >   mod_negotiation.c
> >   mod_status.c
> >   mod_include.c
> >   mod_autoindex.c
> >   mod_dir.c
> >   mod_cgi.c
> >   mod_asis.c
> >   mod_imap.c
> >   mod_actions.c
> >   mod_userdir.c
> >   mod_alias.c
> >   mod_access.c
> >   mod_auth.c
> >   mod_so.c
> >   mod_setenvif.c
> >   mod_php4.c
> > suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
> > 
> > mod_php4.c is enabled.
> > 
> > accessing mydomain.com/horde has the same effect.
> > 
> > What do you think I am missing here?  Any help is greatly appreciated.
> > 
> > Thank you.
> 
> Files with .php extension are not parsed using php module.
> Check if line 
> 
> AddType application/x-httpd-php .php
> 
> is uncommented in your httpd.conf
> 
> MJ.
> 
> -- 
> Miroslaw.Jaworski@ipartners.pl  ( Psyborg )  MJ102-RIPE  Internet Partners
> Server Administration Department Manager
> 
> 
-- 
Lito A. Lampitoc		
Foundation for Communication Initiatives		phone:+63(2)8941345
CodeWAN Project					http://www.codewan.com.ph
--
Things which matter most must not be in the mercy of things which
 matter least" - Goethe.