MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: jvnadr on 2013-03-16, 12:22:16

Title: Weird webmail problem! Not choices, if type, php text file!
Post by: jvnadr on 2013-03-16, 12:22:16
Hello all!
 :cry: Sad I installed kloxo-mr and all working nice, except webmail. When i try to have the webmail client selection page (webmail.corfusports.cu.cc) I get a page with kloxo-mr logo but anything else on it. If I type manually a webmail client (ex. webmail.corfusports.cu.cc/horde) I get a plain php file

Code: [Select]
<?php
/**
 * $Horde: horde/index.php,v 2.105.4.13 2009/01/06 15:13:50 jan Exp $
 *
 * Copyright 1999-2009 The Horde Project (www.horde.org/)
 *
 * See the enclosed file COPYING for license information (LGPL). If you
 * did not receive this file, see www.fsf.org/copyleft/lgpl.html.
 *
 * @author Chuck Hagenbuch <chuck@horde.org>
 */

@define('AUTH_HANDLER'true);
@
define('HORDE_BASE'dirname(__FILE__));
$horde_configured = (is_readable(HORDE_BASE '/config/conf.php') &&
                     
is_readable(HORDE_BASE '/config/mime_drivers.php') &&
                     
is_readable(HORDE_BASE '/config/nls.php') &&
                     
is_readable(HORDE_BASE '/config/prefs.php') &&
                     
is_readable(HORDE_BASE '/config/registry.php'));



The thing is getting more weird: If I type roundcube (webmail.corfusports.cu.cc/roundcube) I get the login page for roundcube and when i try to login, then I get to plain php text file!
I run fix scripts, try to restart services, reboot but nothing.

Any ideas? I'm loosing my mind!
Title: Re: Weird webmail problem! Not choices, if type, php text fi
Post by: MRatWork on 2013-03-16, 13:02:21
Read viewtopic.php?f=4&t=684 (http://forum.mratwork.com/viewtopic.php?f=4&t=684) first and inform here your 'sh /script/sysinfo'.
Title: Re: Weird webmail problem! Not choices, if type, php text fi
Post by: insanity on 2013-03-16, 15:01:52
@jvnadr i face the same problem first time using nginxproxy with php5.4 and php-fpm.

I switch php version to 5.3 then back again to 5.4 and run sh /script/fixphp; sh /script/fixweb; sh /script/fixwebmail
And problem was solved.
Title: Re: Weird webmail problem! Not choices, if type, php text fi
Post by: robg on 2013-03-16, 23:17:58
I'm having the same issue, after switching to suphp.

I've tried adding a .htaccess file into the webmail directory to set the php version, but without luck. (As well as running the fix scripts for webmail/web/php  and restarting, also without luck.)

Sysinfo

Code: [Select]
# sh /script/sysinfo

A. Kloxo-MR: 6.5.0.c.2013022801

B. OS: CentOS release 6.3 (Final) i686

C. Apps:
   1. MySQL: mysql-5.5.29-1.el6.i686
   2. PHP: php-5.3.21-1.el6.i686
   3. Httpd: httpd-2.2.23-1.el6.i686
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.22.mr.el6.i686
   7. Dns: bind-9.9.2-2.P1.el6.i686

D. Php-type (for Httpd/proxy): suphp_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          1006        963         42          0        124        491
   -/+ buffers/cache:        347        659
   Swap:         2015         51       1964
Title: Re: Weird webmail problem! Not choices, if type, php text fi
Post by: MRatWork on 2013-03-17, 15:19:04
Have you enable secondary too?. If yes, read .htaccess content inside domain root directory. Better run 'sh /script/fixphp' to make sure your .htaccess as the latest.
Title: Re: Weird webmail problem! Not choices, if type, php text fi
Post by: robg on 2013-03-19, 03:09:45
Secondary php is enabled, and i've run the fixphp script without any luck. Also tried setting an .htaccess file in /home/kloxo/httpd, but also doesn't seem to work..

Any ideas?
Title: Re: Weird webmail problem! Not choices, if type, php text fi
Post by: thegost on 2013-03-29, 19:05:19
i'm faced to the same problem , my php version is 5.2.17 i tried to fixweb fixmail ... but that dosen't work